commit-message — Claude Code skill: what it does, how to install
commit-message is a Claude Code skill that enforces structured commit formatting. Activates when asking the agent to commit changes or draft a commit note.
GPL-3.0 ★ 325 updated 2026-11-17
npx skills add herdodp/snapgent-connector --skill commit-message -a claude-codeWhat commit-message does
The skill enforces a clear Git workflow before recording any changes. First, the agent inspects status and diffs. Next, it stages only relevant files instead of staging the entire workspace.
The summary line is capped at 72 characters in the imperative mood, followed by an optional description of what changed and why. Permitted prefixes are feat, fix, docs, refactor, test, and chore. The agent prints the draft and pauses for explicit approval before running the commit command.
What it helps with
- stage only modified relevant files without adding workspace clutter
- format commit headers under 72 characters in imperative mood
- enforce allowed type prefixes across project history
- require manual user approval before executing git commit
Example prompts for the agent
- Commit these fixes with a proper message
- Prepare a commit message for the refactored database module
- Check git diff and write the commit note for my tests
How to install commit-message
1Skills CLI (Vercel)
npx skills add herdodp/snapgent-connector --skill commit-message -a claude-code2Manually: put the files in place
~/.claude/skills/commit-message/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/commit-message/
1Skills CLI (Vercel)
npx skills add herdodp/snapgent-connector --skill commit-message -a codex2Manually: put the files in place
.agents/skills/commit-message/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add herdodp/snapgent-connector --skill commit-message -a cursor2Manually: put the files in place
.cursor/skills/commit-message/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install herdodp/snapgent-connector .snapgent/skills/commit-message2Manually: put the files in place
.github/skills/commit-message/SKILL.md1Skills CLI (Vercel)
npx skills add herdodp/snapgent-connector --skill commit-message -a gemini-cli2Platform CLI
gemini skills install https://github.com/herdodp/snapgent-connector --path .snapgent/skills/commit-messageManually: put the files in place
.devin/skills/commit-message/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about commit-message
How to install commit-message in Claude Code?
Run npx skills add herdodp/snapgent-connector --skill commit-message -a claude-code or place the specification in ~/.claude/skills/commit-message/SKILL.md.
What does commit-message do?
It guides the agent through inspecting diffs, selective file staging, and authoring a structured message that awaits user confirmation.
Which commit types are permitted?
The allowed types are feat, fix, docs, refactor, test, and chore.