Skip to content
Skill

Commit

Guides an agent to make focused git commits with repo-matched messages

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
21
Last commit
License
MIT
Listing updated

Similar skills

About Commit

This skill walks an agent through creating a clean git commit once the code changes are already done. It asks the agent to inspect the working tree, confirm which files belong to the change, and stage only those files, avoiding unrelated edits.

Before writing a message, the agent looks for explicit commit rules in files such as contributing guides, agent instructions or commitlint configuration, and falls back to the style of recent history when none exist. It covers conventional prefixes, plain imperative subjects and multiline bodies, and avoids copying merge-commit style.

Safety rules cover pre-staged content, pre-commit hooks (fixing failures rather than bypassing them with no-verify unless asked) and not amending existing commits. It works with plain git in a repository and needs no scripts or extra tools.

When your agent uses it

Use this skill when an agent needs to prepare a focused commit, follow repository commit-message conventions, write a clear commit message, and create the git commit cleanly.

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 4 files (5 KB) on GitHub on 1 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 dd-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add denysdovhan/skills
/plugin install dd-skills@dd-skills

Or copy only this skill to ~/.claude/skills/commit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/commit &&
cp -R "$tmp/skills/commit" ~/.claude/skills/commit &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/commit inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/commit to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/commit &&
cp -R "$tmp/skills/commit" ~/.agents/skills/commit &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/commit inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/commit to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/commit &&
cp -R "$tmp/skills/commit" ~/.cursor/skills/commit &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/commit inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/denysdovhan/skills.git --path skills/commit

Or copy the folder to ~/.gemini/skills/commit yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/commit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/commit &&
cp -R "$tmp/skills/commit" ~/.copilot/skills/commit &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/commit inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/denysdovhan/skills.git

Then copy skills/skills/commit into your agent's skills folder as commit. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Scoped staging
Stages only the files tied to the requested change and flags unexpected modifications.
Repo-aware message style
Checks project rules and recent commit history to match the existing message format.
Conventional and plain subjects
Supports prefixed conventional commits as well as concise imperative sentence subjects.
Hook handling
Fixes failing pre-commit hooks and restages files a hook rewrote before retrying.
Safe history practices
Avoids amending or rewriting unrelated commits unless explicitly requested.

Good for

  • Commit the finished feature changes with a clear message
  • Write a commit message that matches the repo's existing style
  • Stage only the files for one change and leave other edits out
  • Recommit after a pre-commit hook reformatted files

Commit FAQ

Does Commit need any scripts or extra tools?

No scripts are included. It relies on git commands the agent runs directly, such as git log and git diff --cached.

Will it bypass failing pre-commit hooks?

No. It fixes the reported problem and retries, and only skips hooks with --no-verify if the user explicitly asks.

Which commit message format does it use?

It follows explicit repository rules first, then the dominant style of recent commits, which may be conventional prefixes or plain imperative subjects.

Will it amend previous commits?

Not unless explicitly requested.

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 dd-skills plugin, which includes it: /plugin marketplace add denysdovhan/skills, then /plugin install dd-skills@dd-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 Commit, Conventional commit, Git commit, Conventional commit review and Commit message storyteller.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from denysdovhan/skills

  1. Keeps a shared decision journal in .agents/log so agents remember why choices were made

    • Open source
    • 21 GitHub stars
    • Knowledge and memory
  2. Guides the agent through a hypothesis-driven runtime debugging loop with temporary probes

    • Open source
    • 21 GitHub stars
    • Developer tools
  3. Applies readability rules to code you write, review or refactor in any language

    • Open source
    • 21 GitHub stars
    • Developer tools