# Commit

> Commit is an open-source agent skill for developer tools. Guides an agent to make focused git commits with repo-matched messages. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/denysdovhan/skills/tree/main/skills/commit
- **Repository:** https://github.com/denysdovhan/skills
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** commit
- **Collection:** https://github.com/denysdovhan/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/denysdovhan/skills/tree/HEAD/skills/commit)
- [Includes binary files](https://github.com/denysdovhan/skills/tree/HEAD/skills/commit)
- [License: MIT](https://github.com/denysdovhan/skills/tree/HEAD/skills/commit)

## Features

- **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

## Install

### Claude Code

This skill ships in the `dd-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Commit](https://ai-powered.com/skills/commit): Commit is an open-source agent skill for developer tools.
- [Conventional commit](https://ai-powered.com/skills/conventional-commit): Conventional commit is an open-source agent skill for developer tools.
- [Git commit](https://ai-powered.com/skills/git-commit): Git commit is an open-source agent skill for developer tools.
- [Conventional commit review](https://ai-powered.com/skills/conventional-commit-review): Conventional commit review is an open-source agent skill for developer tools.
- [Commit message storyteller](https://ai-powered.com/skills/commit-message-storyteller): Commit message storyteller is an open-source agent skill for developer tools.
- [Git](https://ai-powered.com/skills/git-jasgujral): Git is an open-source agent skill for developer tools.
- [Gitmoji](https://ai-powered.com/skills/gitmoji): Gitmoji is an open-source agent skill for developer tools.
- [Make repo contribution](https://ai-powered.com/skills/make-repo-contribution): Make repo contribution is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/commit-denysdovhan
