
Commit
Creates scoped, diff-grounded Conventional Commit messages and commits them locally
Commit is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 6
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Commit
This skill has the agent create a local git commit from staged changes by default, or from a chosen set of unstaged tracked files. The commit message is built only from the hunks being committed, following Conventional Commits with a subject of at most 50 characters and an optional bulleted body wrapped at 72 characters.
The skill adds guardrails around the commit. It checks git status and the target diff just before committing, stops if the working tree or staged bytes have shifted, and never pushes or bypasses hooks unless the user explicitly asks. After committing, it reads the stored message back and removes identity trailers such as Co-authored-by or Signed-off-by, along with tool footers, unless the user requested them.
It expects a git repository and only needs git available in the shell. The instructions are written in English and contain no scripts; the agent runs Python or Node to inspect the commit message.
When your agent uses it
Create a local git commit from scoped staged or unstaged changes with a diff-grounded Conventional Commit message and strict trailer hygiene. Use whenever the user asks to commit, save their work in git, checkpoint changes, or write and apply a commit message, instead of running raw git commit directly. Never pushes or opens PRs (use make-pr) and never simplifies diffs first (use deslop).
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add prathamdby/skills
/plugin install skills@pratham-skillsOr copy only this skill to ~/.claude/skills/commit:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/commit &&
cp -R "$tmp/skills/engineering/commit" ~/.claude/skills/commit &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/commit inside it instead.
Copy the skill folder to ~/.agents/skills/commit to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/commit &&
cp -R "$tmp/skills/engineering/commit" ~/.agents/skills/commit &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/commit inside it instead.
Copy the skill folder to ~/.cursor/skills/commit to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/commit &&
cp -R "$tmp/skills/engineering/commit" ~/.cursor/skills/commit &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/commit inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/prathamdby/skills.git --path skills/engineering/commitOr copy the folder to ~/.gemini/skills/commit yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/commit:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/commit &&
cp -R "$tmp/skills/engineering/commit" ~/.copilot/skills/commit &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/commit inside it instead.
Get the folder:
git clone --depth 1 https://github.com/prathamdby/skills.gitThen copy skills/skills/engineering/commit into your agent's skills folder as commit. Agents that support SKILL.md read one folder per skill.
What it does
- Scoped staging control
- Commits only the staged changes by default and stages only intended tracked files when asked to commit unstaged work.
- Diff-grounded messages
- Builds the subject and body only from the diff hunks being committed, rejecting wording drawn from chat or review threads.
- Conventional Commit format
- Uses type prefixes such as feat, fix, or docs, with a short imperative subject and no scope notation.
- Trailer hygiene
- Removes unrequested identity trailers and tool footers, then re-reads the stored commit message to confirm.
- Pre-commit safety checks
- Rechecks git status and the target diff before committing and stops on mismatches or hook failures.
Good for
- Commit my staged changes with a clear message
- Save my current work in git as a checkpoint
- Write a commit message for the diff I have staged
- Commit only the tracked files I name, leaving other changes alone
Commit FAQ
Does this skill push commits or open pull requests?
No. The skill never pushes and does not open PRs; the instructions point to a separate make-pr skill for that work.
What does it commit by default?
Only the staged changes. For unstaged work it first makes sure the index is empty and stages only intended tracked files, never untracked ones.
Does Commit add Co-authored-by or Signed-off-by lines?
No, unless the user specifically asks for those trailers. It inspects the stored message after committing and removes unrequested identity trailers and tool footers.
What message format does Commit use?
Conventional Commits with a type such as feat, fix, or docs, a subject of at most 50 characters, and an optional body of 1 to 5 bullets.
How do I install Commit in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/commit to use it in all your projects, or to .claude/skills/commit in one project. Or install the skills plugin, which includes it: /plugin marketplace add prathamdby/skills, then /plugin install skills@pratham-skills.
Does Commit run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Commit?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Commit?
The closest alternatives to Commit are Conventional commit, Code commit, Commit, Commit and Conventional commit review.
Where this comes from
- Description: from the skill's own SKILL.md.
More from prathamdby/skills

Writes an evidence-backed implementation plan for a repo change without editing code
- Open source
- 6 GitHub stars
- Developer tools

Clones external Git repos locally and answers questions from their source code
- Open source
- 6 GitHub stars
- Developer tools

Simplifies a git diff's slop without changing behavior or staging unrelated work
- Open source
- 6 GitHub stars
- Developer tools

Works through PR review comments and failing CI checks, fixing and replying with evidence
- Open source
- 6 GitHub stars
- Developer tools

Lets your agent read GitHub PR status, reviews, and CI failures without editing code
- Open source
- 6 GitHub stars
- Developer tools

Saves a redacted session handoff file and resumes work from it later
- Open source
- 6 GitHub stars
- Developer tools





