Skip to main content
skill CX Codex

commit · mitsuhiko — Claude Code skill: what it does, how to install

A skill that keeps the agent on Conventional Commits for git commit, with staging limited to the files you name.

Apache-2.0 1 installs ★ 3,224 updated 2026-09-27

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

What commit does

The skill is read before a commit and fixes the subject line to <type>(<scope>): <summary>. A type is mandatory: feat for new features, fix for bug fixes, plus docs, refactor, chore, test, perf. The scope in parentheses is optional. Summaries stay imperative, under 72 characters, no full stop.

It ships as a markdown file with a procedure, not as a script. Arguments come first: paths or globs narrow which files get committed, while free-form text steers the scope, summary and body. Then the agent looks at git status and git diff, optionally runs git log -n 50 --pretty=format:%s to see which scopes the project already uses, stages what belongs and calls git commit -m.

Pushing is out of scope. Sign-offs and breaking-change footers are forbidden too, so on a repo that requires Signed-off-by for DCO you will be appending it yourself after every run. A stray file that could go either way gets a question instead of a guess.

What it helps with

  • write a Conventional Commits subject without reminding the agent
  • stage only the files under a given path
  • review the diff before the commit, not after
  • stop the agent from pushing to the remote
  • check which scopes the project already uses

Example prompts for the agent

  • Commit the changes in src/parser.rs as a fix.
  • Make a commit with just the files in docs/, leave the rest alone.
  • Commit everything in the working tree and add a body explaining why.

How to install commit

1Skills CLI (Vercel)

npx skills add mitsuhiko/agent-stuff --skill commit -a claude-code

2Manually: put the files in place

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

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

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about commit

How do I install commit in Claude Code?

Run npx skills add mitsuhiko/agent-stuff --skill commit -a claude-code. The skill file ends up at ~/.claude/skills/commit/SKILL.md.

What does the commit skill do?

It tells the agent how to phrase a commit as <type>(<scope>): <summary> and in which order to work: read the arguments, inspect the diff, stage the intended files, commit.

Does it add a Signed-off-by line?

No. Sign-offs and breaking-change markers are left out, so a DCO repo means adding the line by hand.

Source text

SKILL.md · Apache-2.0
---
name: commit
description: "Read this skill before making git commits"
---

Create a git commit for the current changes using a concise Conventional Commits-style subject.

## Format

`<type>(<scope>): <summary>`

- `type` REQUIRED. Use `feat` for new features, `fix` for bug fixes. Other common types: `docs`, `refactor`, `chore`, `test`, `perf`.
- `scope` OPTIONAL. Short noun in parentheses for the affected area (e.g., `api`, `parser`, `ui`).
- `summary` REQUIRED. Short, imperative, <= 72 chars, no trailing period.

## Notes

- Body is OPTIONAL. If needed, add a blank line after the subject and write short paragraphs.
- Do NOT include breaking-change markers or footers.
- Do NOT add sign-offs (no `Signed-off-by`).
- Only commit; do NOT push.
- If it is unclear whether a file should be included, ask the user which files to commit.
- Treat any caller-provided arguments as additional commit guidance. Common patterns:
  - Freeform instructions should influence scope, summary, and body.
  - File paths or globs should limit which files to commit. If files are specified, only stage/commit those unless the user explicitly asks otherwise.
  - If arguments combine files and instructions, honor both.

## Steps

1. Infer from the prompt if the user provided specific file paths/globs and/or additional instructions.
2. Review `git status` and `git diff` to understand the current changes (limit to argument-specified files if provided).
3. (Optional) Run `git log -n 50 --pretty=format:%s` to see commonly used scopes.
4. If there are ambiguous extra files, ask the user for clarification before committing.
5. Stage only the intended files (all changes if no files specified).
6. Run `git commit -m "<subject>"` (and `-m "<body>"` if needed).

© mitsuhiko · Apache-2.0 · mitsuhiko/agent-stuff

Similar skills

All skills for Git and GitHub →

commit by other authors comes first.

commit getsentry Drafts Sentry-style conventional commits with issue references and blocks direct commits to main. CX Codex +1 4,900installs commit NeoLabHQ Automates Git commits using conventional commit messages and matching emojis. It checks the active branch, runs pre-commit linters, and suggests splitting complex diffs into atomic commits. CX Codex +1 1,300installs commit parcadei This skill turns session changes into git commits, shows you the plan first, and keeps Claude's name out of the messages. Handy when an agent has piled up edits. CX Codex +1 505installs commit FradSer This skill creates atomic conventional commits through git-agent. Use it when a short intent should become a focused Git commit. CX Codex +1 121installs commit PaulRBerg Composes the commit message from prepared evidence and hands the commit, index reconciliation and push to ai-commit. CX Codex +1 347installs git-commit official github A GitHub Copilot skill that turns a working diff into a commit: it reads the changes, stages the related files, writes a Conventional Commits message and runs git commit. CX Codex +1 47,165installs ce-commit EveryInc ce-commit is a Claude Code skill that automatically creates git commits with meaningful messages. It splits staged or unstaged changes into logical groups without pushing. CX Codex +1 3,600installs conventional-commit marcelorodrigo Makes AI coding agents write commits to the Conventional Commits spec: type, scope, imperative subject. CX Codex +1 964installs git-commit-helper davila7 Reads git diff --staged and drafts a commit message following Conventional Commits. It fires after every Bash tool call and appends a line to ~/.claude/git-commit-helper.log. CX Codex +1 7,093installs commit-message herdodp 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. CX Codex +1 ★ 325repo stars commit-pr ZaxbyHub commit-pr — a portable skill that verifies your code before push, writes conventional commits, and fills in a PR body. Guards against accidentally committing generated files or secrets. CX Codex +1 ★ 539repo stars

From the same set16

The whole set →
librarian librarian caches remote Git repositories locally and refreshes them when referenced again. Useful when an agent needs to inspect external source code. CX Codex +1 170installs sentry Connects your coding agent to the Sentry API to inspect production crashes, examine stack traces, check breadcrumbs, and query system logs. CX Codex +1 136installs native-web-search native-web-search — a skill that runs a fast model with built-in web search and returns a concise summary with full source URLs. Useful when you need current information while coding. CX Codex +1 134installs update-changelog update-changelog is a Claude Code skill that builds formatted CHANGELOG entries from commits between the latest release tag and the current version. CX Codex +1 130installs pi-share pi-share loads shared pi sessions and parses their conversation history. Use it to inspect messages, tool calls, or the human’s actions. CX Codex +1 125installs google-workspace Gives your agent access to Google Workspace services (Gmail, Drive, Docs, Calendar, Sheets and more) through local helper scripts. Use it to automate Google services directly from your IDE. CX Codex +1 108installs anachb The anachb skill for Claude Code searches stops, shows live departures, plans routes and checks disruptions across Austrian public transport. CX Codex +1 5installs oebb-scotty oebb-scotty plans train journeys across Austria through ÖBB's HAFAS endpoint: station lookup, connections with changes, departure boards and disruption notices. CX Codex +1 3installs

Project sponsors

Companies that keep this analytics open