Commandgeneral
/commit Command
Create a git commit following the project conventions
Create a git commit following the project conventions
IMPORTANT: No Claude Attribution
NEVER add Claude Code attribution or Co-Authored-By lines to commits.
Reason: PRs use squash-and-merge, which concatenates all commit messages. Multiple Claude attributions would be duplicated in the final commit, creating noise.
Steps
- Format, build, test:
find src include test -name "*.cpp" -o -name "*.hpp" | xargs clang-format -i && bazel build //... && bazel test //... - Check status and style:
git status,git diff,git log --oneline -5,git show HEAD --stat - If on main branch, stop and ask user to switch to feature branch
- Stage files with
git addcommand - Create commit with separate
git commitcommand (do NOT concatenate add and commit) - Commit message format:
- Simple changes (1 file, doc updates): 1-2 bullets
- Medium changes (few files, features): 2-3 bullets
- Major changes (refactors, systems): 3-5 bullets
- Short summary line, bullet points using
- - Focus on what changed, not process or attribution