# Commit

> Commit is an open-source agent skill for developer tools. Creates scoped, diff-grounded Conventional Commit messages and commits them locally. 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/prathamdby/skills/tree/main/skills/engineering/commit
- **Repository:** https://github.com/prathamdby/skills
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** commit
- **Collection:** https://github.com/prathamdby/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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

## What it can access

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

- [Instructions only, no scripts](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/commit)
- [License: MIT](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/commit)

## Features

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

## Install

### Claude Code

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

```sh
/plugin marketplace add prathamdby/skills
/plugin install skills@pratham-skills
```

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

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

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

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

### Gemini CLI

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

```sh
gemini skills install https://github.com/prathamdby/skills.git --path skills/engineering/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/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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/prathamdby/skills.git
```

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

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

## Alternatives

- [Conventional commit](https://ai-powered.com/skills/conventional-commit-k1-c): Conventional commit is an open-source agent skill for developer tools.
- [Code commit](https://ai-powered.com/skills/code-commit): Code commit is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit-denysdovhan): Commit is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit-tjmonsi): 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.
- [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.
- [Autocommit](https://ai-powered.com/skills/autocommit): Autocommit is an open-source agent skill for developer tools.

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