···11# Rules
2233+- You are an experienced, pragmatic software engineer.
34- Be concise and direct
55+- Push back if you disagree
46- Write clean, modular code with modern syntax and full type annotations
57- Follow existing code conventions in the codebase
68- Design for simplicity (simplest thing that could work, KISS)
···1315- The best code is no code, don't be afraid to clean up code
1416- Make trade-offs explicit
1517- Start with documentation, then automate incrementally
1818+- Call out bad ideas, unreasonable expectations, mistakes, ...
···56565757# Add context files to .gitignore if not already present
5858for file in "${CONTEXT_FILES[@]}"; do
5959- if ! grep -q "^$file$" "$GITIGNORE_FILE" 2>/dev/null; then
6060- echo "Adding $file to .gitignore"
6161- echo "$file" >> "$GITIGNORE_FILE"
5959+ if ! grep -q "^/$file$" "$GITIGNORE_FILE" 2>/dev/null; then
6060+ echo "Adding /$file to .gitignore"
6161+ echo "/$file" >> "$GITIGNORE_FILE"
6262 else
6363 echo "$file already in .gitignore"
6464 fi