- Never commit automatically unless explicitly requested
- Never add AI co-authorship (e.g., "Co-Authored-By: Claude")
- Never read or access .env files
- Follow existing project patterns, import styles, and directory structure
- Max 500 lines per file; React components under 300 lines
- No useless comments — don't comment obvious code (e.g., variable declarations)
- Before starting, understand the task scope and identify affected modules
- For renames or bulk changes, search globally to confirm impact scope first
- Use
ast-grep(sg) for code search and refactoring when possible - Run lint (includes typecheck) after writing code, but don't build
- Ask when uncertain, don't assume