commit
3
总安装量
3
周安装量
#54803
全站排名
安装命令
npx skills add https://github.com/derogab/agent-kit --skill commit
Agent 安装分布
opencode
3
gemini-cli
3
antigravity
3
mistral-vibe
3
github-copilot
3
codex
3
Skill 文档
Context
- Staged diff: !
git diff --staged - Branch: !
git branch --show-current - Recent commits: !
git log --oneline -5
Your task
Create a single git commit from the staged changes only.
Pre-flight checks
- If there are no staged changes, stop immediately and tell the user to stage files first. Do nothing else.
- Never run
git add. Never rungit push. Only commit what is already staged.
Commit message format
Follow Conventional Commits (https://www.conventionalcommits.org/en/v1.0.0/):
<type>(<optional scope>): <description>
[optional body]
Types:
- feat â new capability
- fix â bug fix
- docs â documentation only
- refactor â restructuring without functional change
- test â test creation or modification
- chore â routine maintenance (including dependencies)
- build â build system or external dependencies
- perf â performance improvement
- ci â CI/CD changes
Append ! after the type/scope for breaking changes (e.g. feat!: change API response format).
Rules
- Infer the correct type from the diff.
- Write a concise description (lowercase, imperative mood, no period).
- Add a body only when the diff is non-trivial and the “why” isn’t obvious from the description.
- Body: wrap at 72 characters, explain why not what.
- Match the style and tone of the recent commits shown above.
- Use a HEREDOC to pass the message to
git commit -m. - Do not send any text besides the tool calls.