This project uses ADF for AI agent context management. All stack rules, constraints, and architectural guidance live in
.ai/. Do not duplicate ADF rules here.
See .ai/manifest.adf for the module routing manifest.
- NEVER stage whitespace-only or line-ending-only changes. Only intentional content modifications are allowed.
- Before staging, run
git diffto inspect changes. If a file contains only whitespace/formatting diffs, exclude it withgit reset HEAD <file>. - When in doubt, use
git diff --checkto detect whitespace errors.
When the working tree contains multiple untracked or modified files, follow this procedure:
- Survey: Run
git statusto see all changes. - Chunk: Group changes into logical atomic commits (e.g., one commit per doc page, one for config, one for components). Never lump unrelated changes into a single commit.
- Preview: For each proposed commit, output
git diff --statshowing exactly which files and how many lines are affected. - Propose: Present the commit message for user approval. Format:
Types:
<type>: <concise description>docs,feat,fix,refactor,chore,style. - Wait: Do NOT execute
git commituntil the user explicitly approves the message. - Commit: Stage only the files in the approved chunk, commit, then proceed to the next chunk if approved.
- Never run
git add -Aorgit add .without first reviewing every file in the diff. - Never amend a commit unless the user explicitly requests it.
- Never force-push to
main. - Never skip pre-commit hooks (
--no-verify).