Commit
Use only when the user asks for this commit workflow. Write a Conventional Commit message for the staged changes and run git commit.
Rules
- Types:
feat,fix,docs,style,refactor,test,chore,perf,ci,build,revert. - Header format:
type(scope): subject(scope optional). Recent history uses an area (admin,skills,openspec) or an issue key (AL-1864) as the scope. - Header max length: 100 characters.
- Subject: imperative, no trailing period, no emojis.
- Issue refs: include
ref AL-###in the body only when applicable.
Workflow
- Confirm something is staged.
- Review staged diff and affected paths.
- Detect relevant
AL-###keys (branch, diff, or recent commits). - Choose the best commit type and optional scope.
- Write an imperative subject (<= 100 chars).
- Compose the commit message, then run
git commit.
Checklists
Pre-commit checklist
- [ ]
git statusshows staged changes - [ ] Issue key(s) identified or explicitly absent
Review checklist
- [ ] Header is <= 100 characters
- [ ] Type is lowercase and valid
- [ ] No emojis
- [ ]
ref AL-###included only when applicable
Minimal examples
Commit without body
git commit -m "fix(auth): handle empty session"
Commit with body + issue refs
git commit -m "feat(billing): add invoice export" -m "Add export endpoint and UI action" -m "ref AL-123"
Common mistakes / pitfalls
- Committing with no staged changes
- Using vague subjects ("update stuff")
- Exceeding header length
- Adding
ref AL-###when no issue applies