commit
GitHub分析暂存区代码变更,生成符合 Conventional Commits 规范的提交信息。支持自动识别变更类型(如feat、fix等),并遵循特定格式规则生成标题、正文和脚注,最后建议执行 git commit 命令。
触发场景
需要为当前暂存区代码生成提交信息
用户询问如何规范编写 commit message
安装
npx skills add FlorianBruniaux/claude-code-ultimate-guide --skill commit -g -y
SKILL.md
Frontmatter
{
"name": "commit",
"effort": "low",
"description": "Generate a conventional commit message for staged changes",
"when_to_use": "Use when ready to commit staged changes and need a conventional commit message.",
"argument-hint": "[--amend] [message]",
"disable-model-invocation": true
}
Conventional commit
Generate a conventional commit message for staged changes.
Instructions
- Run
git diff --cachedto see staged changes - Analyze the nature of changes
- Generate a commit message following the format below
Commit format
<type>(<scope>): <subject>
[optional body]
[optional footer]
Types
feat: New featurefix: Bug fixdocs: Documentation onlystyle: Formatting, missing semicolons, etc.refactor: Code change that neither fixes nor adds featureperf: Performance improvementtest: Adding missing testschore: Maintenance tasks
Rules
- Subject: imperative mood, no period, max 50 chars
- Body: explain WHAT and WHY, not HOW
- Footer: breaking changes, issue references
Examples
feat(auth): add password reset functionality
Implement password reset flow with email verification.
Users can now request a reset link and set new password.
Closes #123
fix(api): prevent race condition in order processing
Add mutex lock to ensure orders are processed sequentially.
This fixes duplicate charge issues reported by users.
Fixes #456
refactor(cart): extract pricing logic to separate module
No functional changes. Improves testability and
separates concerns for future discount feature.
Execution
After analyzing staged changes, suggest a commit message.
Ask for confirmation before executing git commit -m "...".
$ARGUMENTS
版本历史
- f02545e 当前 2026-10-19 12:35
- fa57065 2026-07-25 10:17


