9 rules selected
# CLAUDE.md
This file provides guidance to Claude Code when working with code in this repository.
## Git & Version Control
- Never use `git push --force` on main or any shared branch. If a force-push seems necessary, stop and explain why before doing it.
- Never commit directly to main. Branch per task, open a PR, and let review or CI gate the merge.
## Code Quality
- Don't write comments that restate what well-named code already shows. Only comment a hidden constraint, a workaround for a specific bug, or something that would genuinely surprise a reader.
- Don't add config flags, abstractions, or error handling for scenarios that can't currently happen. Three similar lines beat a premature abstraction.
## Testing & Verification
- Before saying a change works, actually run the relevant tests or the app and read the real output. A diff that looks right is not the same as a diff that runs right.
## Security
- API keys, tokens, and passwords always come from environment variables or a secrets manager, never as literal strings in source.
## Deployment & Config
- After a change that could affect the build, run the actual build command and check for errors, not just a passing type-check or dev-server reload.
## Working With You
- Before deleting data, force-pushing, sending messages, posting publicly, or changing shared infrastructure, say what you’re about to do and confirm first.
## Planning & Task Tracking
- For any task with three or more distinct steps, keep an explicit task list and update it as each step finishes, rather than holding the plan only in context.
Built by the team behind Waymaker
An AI Cofounder that already works this way, from idea to income, not just a file generator.
See the Accelerator →