Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add herdodp/snapgent-connector --skill commit-message -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/commit-message/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/commit-message/

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.

Similar skills

All skills for Git and GitHub →

Project sponsors

Companies that keep this analytics open