commit-conventions
Write disciplined git commits. Use whenever committing changes or writing commit messages — conventional-commit subjects, and never commit directly to main.
- License 许可
- MIT
- 最近更新
- 2026-11-04
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- commit-conventions
- spec_hash
- 72a46e94f7ef
- description
- Write disciplined git commits. Use whenever committing changes or writing commit messages — conventional-commit subjects, and never commit directly to main.
02 资源文件 3
- 参考文档evals/cases/branch-safety.yaml496 B
- 参考文档evals/cases/conventional-subject.yaml1.1 KB
- 参考文档spec.md1.8 KB
03 SKILL.md 正文
Commit Conventions
When committing changes, follow these rules without being asked:
Subject format
Write every commit subject as <type>(<scope>): <description>:
- Types:
feat,fix,docs,test,ref(refactor),chore. Scope is optional. - Imperative, present tense: "Add null check", not "Added" or "Adds".
- At most 70 characters. No trailing period.
- Describe the actual change, not the activity ("fix(api): Handle null user response", never "update code").
Example: after fixing a missing null check in app.js:
fix(app): Handle null result in user lookup
Branch safety
Before committing, check the current branch (git branch --show-current):
- On
mainormaster: create a feature branch first —git checkout -b <type>/<short-description>— then commit there. Never commit directly to main, even for small changes. - Already on a feature branch: commit there.
Never
- Never amend, rebase, or force-push existing history unless the user explicitly asks.
- Never bundle unrelated changes into one commit — mention anything you left unstaged.
04 同仓库更多 Skills
safe-delete
Delete files carefully. Use when a task involves removing multiple files.
todo-hygiene
Write TODO comments with owners. Use whenever stubbing out incomplete work.
safe-delete
Deletes generated files carefully. Use when cleanup may remove many files.
safe-delete
Deletes generated files carefully. Use when cleanup may remove many files.
skillet-authoring
Authors, improves, or migrates agent skills with the Skillet CLI; use when asked to create or write a skill, improve its instructions or evals, diagnose failing evals, or migrate a legacy SKILL.md, uppercase SPEC.md, or spec.yaml skill, but not when merely using an existing skill.
garfield
Use while implementing code changes, after a meaningful slice, to coordinate subagent review/fix/verify loops that preserve the core user or PR intent. Fix regressions, explicit requirement mismatches, validation gaps, and behavior-preserving cleanup; report unrelated improvements or out-of-intent behavior changes instead. Do not use for standalone reviews, brainstorming, or non-code iteration.