# Code commit

> Code commit is an open-source agent skill for developer tools. Writes and checks conventional commit messages and guides safe staging before committing. 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/martinffx/atelier/tree/main/skills/code-commit
- **Repository:** https://github.com/martinffx/atelier
- **GitHub stars:** 53
- **License:** MIT
- **Skill name:** code-commit
- **Collection:** https://github.com/martinffx/atelier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through making a git commit that follows the Conventional Commits format. Before writing anything, it has the agent review the full worktree, including staged, unstaged and untracked files, and check recent commit subjects so new messages match the repository's existing scopes and wording. It also flags likely secrets or local configuration files and keeps them out of the commit unless the user says otherwise.

The workflow asks the agent to propose each commit with its file list and full message, then wait for approval before staging only the approved files. It covers when to split changes and when to keep related code, tests, docs and dependency lockfiles together. It also sets rules for titles and bodies, including lowercase scopes, imperative titles and breaking-change markers.

The skill can also validate a message the user pastes in, returning specific corrections and a revised version. If the repository has commitlint or commit hooks configured, those take precedence, and the agent must not bypass a failing hook. It works through standard git commands and has no bundled scripts. Pull request creation is handed off to a separate code-pull-request skill.

## When your agent uses it

> Generate and validate conventional commit messages following the conventionalcommits.org spec. Use whenever the user wants to commit code, mentions commit messages, git commit, or asks to create a commit. Triggers on "commit", "git commit", "conventional", or when reviewing commit message format.

## What it can access

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

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

## Features

- **Worktree review:** Inspects staged, unstaged and untracked changes before proposing any commit.
- **Conventional message drafting:** Writes titles and bodies in the type(scope) format with a defined list of commit types.
- **Commit splitting guidance:** Suggests separate commits only when changes are independent and each group stands alone.
- **Approval before writing:** Shows the files and full message for each commit and waits for approval before staging.
- **Message validation:** Checks a pasted commit message against the format rules and suggests a corrected version.
- **Secret and config screening:** Flags likely credentials, local configuration and generated output before they are staged.

## Good for

- Commit my current changes with a clear conventional message
- Check whether this commit message follows conventional commit format
- Split my pending work into sensible commits before pushing
- Write a commit message for a breaking API change
- Review recent commit subjects and match their scope style

## Install

### Claude Code

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

```sh
/plugin marketplace add martinffx/atelier
/plugin install atelier@atelier
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/code-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/martinffx/atelier.git --path skills/code-commit
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/martinffx/atelier.git
```

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

## FAQ

### When does the skill trigger?

It triggers when the user wants to commit code, mentions commit messages or git commit, asks to create a commit, or wants to review commit message format, including on words like commit, conventional or git commit.

### Does Code commit commit without asking?

No. It shows the files and full message for each proposed commit and waits for approval unless the user explicitly authorizes committing immediately.

### What happens if a commit hook fails?

The skill reports the error and leaves the changes intact. It is told not to bypass failing hooks.

### Does Code commit create pull requests?

Not directly. After committing, it can hand off to the code-pull-request skill if the user wants a PR.

### How do I install Code commit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-commit to use it in all your projects, or to .claude/skills/code-commit in one project. Or install the atelier plugin, which includes it: /plugin marketplace add martinffx/atelier, then /plugin install atelier@atelier.

### Does Code 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 Code 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 Code commit?

The closest alternatives to Code commit are Conventional commit, Conventional commit, Git 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.
- [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.
- [Commit](https://ai-powered.com/skills/commit-denysdovhan): 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.
- [Autocommit](https://ai-powered.com/skills/autocommit): Autocommit is an open-source agent skill for developer tools.
- [Git commit](https://ai-powered.com/skills/git-commit-eduardo-sl): Git commit is an open-source agent skill for developer tools.
- [Conventional commits](https://ai-powered.com/skills/conventional-commits): Conventional commits is an open-source agent skill for developer tools.

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