PlugWiki

git-commit Skill for Claude: Stage Changes and Commit with Conventional Commits

Makes Claude read your diff, stage one logical change and commit it with a Conventional Commits message.

Installs
47.9K
on skills.sh
Stars
40.7K
on GitHub
Updated
Oct 2026
last repo commit

You ask for a commit, or type /commit, and the agent checks your repo's commit rules, reads git status and the diff, stages the related files, writes a type(scope): summary message and runs git commit. It can split mixed changes into several commits.

SKILL.md says not to use it when you only want a message, and not to push, open a pull request, rebase or change history. It needs Git and allows only git shell commands (shell(git:*)).

Good for

  • Developers who want consistent Conventional Commits without typing them
  • Teams with a commitlint setup that the agent should follow
  • Anyone with a messy working tree who wants it split into clean commits

Install git-commit

Claude Code

  1. 1

    Copy this prompt.

    Install the git-commit skill in Claude Code. Run this command:
    
    npx skills add https://github.com/github/awesome-copilot --skill git-commit
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

From its listing on skills.sh. Source.

What's in the skill

When it loads

Use this skill when the user wants to make a Git commit or split changes into more than one commit. Also use it when the user types "/commit" or asks for a conventional commit. The skill examines the diff, stages the related files, writes a Conventional Commits message, and runs git commit. Do not use it when the user wants only a commit message and no commit. Do not use it to push, open a pull request, rebase, or change the commit history.

Sections in SKILL.md

  1. Message Format
  2. Types
  3. Breaking Changes
  4. Workflow
  5. 1. Read the repository rules
  6. 2. Examine the changes
  7. 3. Stage the files
  8. 4. Write the message
  9. 5. Commit
  10. 6. Make sure that the commit is correct
  11. Safety Rules

Key facts

Author
github
License
MIT
Installs on skills.sh
47,852 (Nov 2, 2026)
Last repo commit
Oct 30, 2026
Allowed tools
shell(git:*)

What it includes

  • Checks commitlint config, CONTRIBUTING.md and the last 10 commit messages first

    If a repository rule differs from the skill, the repository rule wins.

    Runs code · Read the repository rules

  • Runs git status --porcelain, git diff --staged and git diff

    If there are no changes it tells you and does not make an empty commit.

    Runs code · Examine the changes

  • Unstages other changes with git reset -q, then git add -- <paths>

    Avoids git add -p and -i because they wait for input. Uses git add --resolved after a merge conflict. Checks the staged list for secrets such as .env files.

    Runs code · Stage one logical change

  • Builds type(scope): summary, an optional body and footers, from the diff

    Summary in the imperative mood, first line 72 characters or less, no trailing period. Uses types feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.

    Write the message

  • Adds ! before the colon or a BREAKING CHANGE: footer

    Mark breaking changes

  • Runs git commit with one -m per paragraph, or -F with a temp file for long messages

    Runs code · Commit

  • Runs git log -1 --stat and git status --porcelain

    Runs code · Verify

  • Never edits git config; no --no-verify, --amend, history rewrites or push

    Skips --no-verify, --amend, history rewrites and pushing unless you say so; never edits git config.

    Safety rules

From the official docs

Permissions

Medium risk

It makes real local commits and can unstage files to split changes, but SKILL.md says it never pushes or rewrites history. Read the message and staged file list it shows before you accept.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It creates commits in your repo

    The skill runs git commit for you. Review the staged files and message when it shows them, and check git log if you did not.

  • It may unstage files to split a commit

    When staged files hold more than one change, SKILL.md says to unstage the other files first with git reset -q. Your files stay in the working tree.

  • Hooks still run, and it will not skip them

    SKILL.md says not to use --no-verify unless you tell it to. If a hook fails it fixes the problem and re-runs the commit rather than amending.

Technical details
Scopes
  • shell(git:*)

Questions

What does git-commit do?

It examines your changes, stages the files for one logical change, writes a Conventional Commits message and runs git commit. It can also split a mixed set of changes into several commits.

How do I install git-commit?

Use the install box above. The skill is a single SKILL.md file and needs Git on your machine.

How do I use it?

Ask Claude to commit your changes or type /commit. SKILL.md also triggers it for "conventional commit" requests.

Does it push my commits?

No. SKILL.md says not to push unless you tell it to, and never to force push to the default branch. It also will not open a pull request, rebase or change the commit history.

Does it follow my repo's commit rules?

Yes, it looks first. Step 1 reads a commitlint config, CONTRIBUTING.md and your recent commit messages, and SKILL.md says a repository rule overrides the skill.

Is git-commit safe?

It only runs git commands (shell(git:*)) and makes local commits. SKILL.md says to check staged files so secrets such as .env files are not committed, and not to skip hooks. You should still read the staged files and message, because a commit is a change to your repo.

What commit types does it use?

feat and fix from the Conventional Commits spec, plus docs, style, refactor, perf, test, build, ci, chore and revert from the Angular convention. If your repository has its own list, it uses that.

Information

updated Nov 2, 2026

Folder
skills/git-commit

github/awesome-copilotskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 2
  1. git-commit SKILL.md · github.com
  2. git-commit on skills.sh · skills.sh

Updated Nov 2, 2026.