commit-helper
从git差异生成清晰的常规提交信息。在编写提交信息、审查暂存更改或完成TDD周期后使用。
📖 中文导读:从git差异生成清晰的常规提交信息。在编写提交信息、审查暂存更改或完成TDD周期后使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: commit-helper description: Generate conventional commit messages from staged changes. Runs autonomously using Haiku model. Use after completing TDD cycles, after refactoring sessions, or when ready to commit. context: agent
Commit Helper
Autonomous commit message generation that analyses staged changes and generates conventional commit messages.
When to Use
- After completing a TDD cycle (tests pass)
- After a refactoring session
- After completing a task in the XP workflow
- Whenever you have staged changes ready to commit
What It Does
- Checks git status for staged changes
- Reads the staged diff
- Checks recent commits for style consistency
- Analyses change type and scope
- Generates a conventional commit message
Conventional Commit Format
<type>: <summary>
[optional body]
[optional footer]
Types
| Type | Use For |
|---|---|
feat |
New feature |
fix |
Bug fix |
refactor |
Code restructuring (no behaviour change) |
test |
Adding/updating tests |
docs |
Documentation only |
chore |
Build, tooling, dependencies |
Summary Rules
- Under 50 characters
- Imperative mood ("add" not "added")
- No period at end
- Capitalise first letter
Safety Rules
- NEVER add contributors unless explicitly requested
- NEVER commit files containing secrets
- NEVER use
--amendunless explicitly requested