Project rules file
Non-negotiables only: branching, PRs, decision records, testing. Same content either way; use the filename your agent reads.
CLAUDE.mdmarkdown · 34 lines
# Project rules
> Non-negotiables only: rules that must hold on every task. Procedures go in skills,
> code conventions in docs, project status and war stories in docs or memory. Don't pile them here.
## Before you start
- On long tasks, confirm five things: repo and branch, scope, open decisions, hard limits, how to split PRs.
- Where nothing was specified, use the defaults and say which ones in your first message.
## Hard limits
- Without explicit approval: don't merge PRs, deploy to production, or write to production data.
- Approval covers this task only. It doesn't carry over.
## Branches and PRs
- Branch from the latest [main]; keep branches under [N] days old.
- Every PR description has Validation / Risk / Rollback. Placeholders don't count.
- Split by risk: prompt, billing, and schema changes each get their own PR.
## Testing
- New features and bug fixes start with a failing test. Exempt: [docs, config, styling].
- Run [check command] before opening a PR.
## Decisions and follow-ups
- User-facing copy, pricing, restricting users, deleting data: go with the recommended option, then list it under "Open to veto".
- Follow-ups go in [docs/ledger/] and get committed. A note in chat doesn't count.
## Wrap-up report
- Write for someone who wasn't watching: the outcome and what you need from them first, the process after.
- Report what happened: paste failing output, name skipped steps, say what wasn't verified.
## Before adding a rule, ask
- If the agent missed this on some task, would anything break? If not, it doesn't belong here.
- Is it a rule or a status? Status goes stale; put it in docs.
- Could the agent work it out from the code? Then don't write it.