
Git commit
Enforces conventional commit messages and branch naming for git work
Git commit is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 12
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Git commit
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".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Bash(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (3 KB) on GitHub on 4 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 skill-madness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madnessOr copy only this skill to ~/.claude/skills/git-commit:
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.
Copy the skill folder to ~/.agents/skills/git-commit to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/git-commit to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/git/git-commitOr copy the folder to ~/.gemini/skills/git-commit yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/git-commit:
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.
Get the folder:
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.gitThen 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.
What it does
- 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
Git commit 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.
More from ivy00johns/Skill-Madness

Finds merged and stale git branches, then deletes them only after your confirmation
- Open source
- 12 GitHub stars
- Developer tools

Finds and removes git worktrees whose changes are already merged into main
- Open source
- 12 GitHub stars
- Developer tools

Bulk-scans a skill ecosystem for consistency, quality gaps and ownership conflicts
- Open source
- 12 GitHub stars
- Developer tools

Runs a single-skill quality review covering structure, triggering and output checks
- Open source
- 12 GitHub stars
- Developer tools

Turns skill review or audit reports into a prioritized list of concrete SKILL.md fixes
- Open source
- 12 GitHub stars
- Developer tools

Applies planned edits to SKILL.md files, validates them, and offers to sync
- Open source
- 12 GitHub stars
- Developer tools





