# Git commit

> Git commit is an open-source agent skill for developer tools. Enforces conventional commit messages and branch naming for git work. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/git/git-commit
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** git-commit
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets the commit message and branch naming rules a repository expects. It covers a subject line in the form type colon description, written in lowercase imperative mood without a scope or trailing period, with an allowed list of types such as feat, fix, test, docs, refactor, chore, build, perf, style and revert. It also describes an optional body for explaining why a change was made.

Branches follow a type slash short-description pattern using hyphens, with three to five meaningful words. The skill notes that pull requests usually squash merge unless the branch history is worth keeping, and it forbids amending commits unless the user asks, so a pre-commit hook failure leads to a new commit instead.

The skill is instruction-only with no scripts. It expects the agent to read files and run git through the shell, and it refers to related skills for pull requests, PR feedback and post-merge cleanup. It also describes a co-author trailer that the environment appends automatically, which the agent should not write by hand.

## When your agent uses it

> Conventional commit format, allowed types and branch naming for this repo. Use when staging changes, writing a commit message, or creating or naming a branch, and whenever you're about to run `git commit`. Trigger on "commit", "commit this", "write a commit message", "new branch", "branch name".

## What it can access

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

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/git/git-commit)
- [Asks for: Read, Bash](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/git/git-commit/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/git/git-commit)

## Features

- **Commit subject format:** Defines the type colon description subject line with rules for case, mood, scope and length.
- **Allowed commit types:** Lists the ten permitted types with guidance on when each applies.
- **Branch naming pattern:** Describes the type slash hyphenated description format for new branches.
- **Commit body guidance:** Explains when to add an optional body and what it should focus on.
- **Amend and hook safety rule:** Prevents amending commits and directs the agent to create a new commit after hook failures.
- **Squash merge default:** Notes that pull requests squash merge unless the commit history is worth keeping.

## Good for

- Write a commit message for my staged changes
- Name a new branch for a bug fix
- Check whether my subject line follows the repo format
- Pick the right commit type for a refactor

## Install

### Claude Code

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

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

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

## FAQ

### When does Git commit trigger?

When staging changes, writing a commit message, creating or naming a branch, or about to run git commit, and on phrases like commit this or branch name.

### Does Git commit run any scripts?

No. The skill has no scripts and only describes conventions for the agent to follow using Read and Bash.

### What should I do if a pre-commit hook fails?

The skill says not to amend the commit and to create a new commit instead, unless the user explicitly asks for an amend.

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

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

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

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Git commit?

The closest alternatives to Git commit are Commit, Commit style, Conventional commits, Code commit and Git commit.

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

---
Source: https://ai-powered.com/skills/git-commit-ivy00johns
