name: commit description: Create a conventional commit disable-model-invocation: true allowed-tools: Bash(git *)
Create a conventional commit using the format:
<type>(<scope>): <subject>
Types: feat, fix, docs, style, refactor, perf, chore, ci, test
Steps:
- Run
git statusto see what's changed - Run
git diffto understand the nature of the changes - Stage files with
git add .(gitignore handles exclusions) - Analyze the changes to determine the best type, scope, and subject
- Run
git commit -m "<type>(<scope>): <subject>"
Rules:
- Subject is lowercase, no period at the end, max 72 chars
- Scope is optional but preferred (e.g. env, auth, webapp, tasks, db)
.env.exampleis safe to commit — it's a template with no secrets- Never stage
.envor.env.real— they contain real credentials - Never use --no-verify
- Never commit directly to main or staging