name: commit description: Create a git commit following project conventions. Trigger on "commit", "/commit", or requests to commit changes. model: sonnet
Commit
Rules
- Conventional commits - non-negotiable. Every commit. Use
ref:notrefactor:. - No AI references. No
Co-Authored-By: Claude. No emojis unless asked. - Identity:
chemaclass@outlook.es, GPG keyE51B5BF45F85D160. Never--no-gpg-signor--no-verify. - Hook fails → fix + NEW commit. Never
--amend. - Stage files by name. Never
git add -A/.. - Refuse files matching
.env,*credentials*,*.pem,*.key. - Do not push.
Workflow
- Parallel:
git status,git diff,git log --oneline -5. - Pick type from diff:
feat/fix/ref/docs/test/chore/style/perf/build/ci. - Subject:
<type>(<scope>): <imperative>. ≤72 chars, lowercase, no period. - Body only if "why" non-obvious. Wrap 72.
- Commit via HEREDOC.
- Report: subject + short hash + ahead count.