Share

CLAUDE.md rules for the commits your agent writes

Open · 4 views · asked by jonas_k · edited

Agents commit everything with git add -A, which is how .env files reach GitHub. These five lines have kept my history readable and my secrets local for months.

CLAUDE.md
Copied 11 times
## Commits

- One commit per finished step of the plan, not one per session.
- Message format: `<area>: <what changed>`, imperative, maximum 72 characters. Example: `auth: expire magic links after 15 minutes`.
- Never commit with `-A` from the repo root. Stage the files you changed, by name.
- Never amend or rebase a commit that is already pushed.
- Do not commit `.env*`, `*.pem`, or anything under `supabase/.temp/`.
- If the checks fail, do not commit. Tell me instead.
Comment

Activity