Commit changes
Requested message intent: $ARGUMENTS
Create a clean, conventional commit. Only commit when the user has asked you to.
Steps
git statusandgit diff(staged + unstaged) to see exactly what will be committed. Review it.Never stage secrets/local config:
**/.dev.vars,wrangler.local.jsonc,.env*,tests/e2e/.auth/. Thebash-guardhook blocks these, but check anyway.Branch first if on
main:git rev-parse --abbrev-ref HEAD; if it'smain, create a topic branch before committing.Stage intentionally (prefer explicit paths over
git add -Awhen the working tree is mixed).Commit with a message matching the repo style — a concise, sentence-case summary line ending in a period (see
git log, e.g. "Add binary asset uploads (images, PDFs, archives) via R2."). End the message with the trailer:Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>Do not push unless asked. If asked to open a PR, end the PR body with:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Before committing non-trivial changes
Consider running /preflight so you don't commit code that fails CI's gates.