/git:commit [file paths...] | [natural-language description of files to include]from git
This skill should be used when the user asks to "commit", "commit these changes", "create a commit", "stage and commit", or "/commit", and wants one or more git commits created following Conventional Commits. Never pushes to a remote.
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create one or more git commits following Conventional Commits, splitting
unrelated changes into separate commits by functional affinity. Arguments
given, if any: $ARGUMENTS
Run git status and git diff (unstaged) first to see the full picture
of what's changed.
git status output first; if one doesn't match
anything, say so instead of silently skipping it).git status/git diff
output, reading file contents/diffs as needed to judge relevance. The
scope is only the files that match.If the natural-language match is ambiguous — nothing clearly matches, or there are multiple plausible interpretations — do NOT guess. List the candidate files with a one-line reason each and ask for confirmation before staging or committing anything.
Never touch files outside the scope (no scooping up unrelated changes when specific files or a specific description were given).
Read the diffs (and file contents where needed) for everything in scope, then group the files by functional affinity — files that belong to the same concern, feature, or area go in one group; unrelated concerns go in separate groups. Judge affinity by what the change is for, not just by directory:
Each group becomes one commit, committed in an order where earlier commits don't depend on later ones being present (e.g. foundational config before things that build on it).
If a natural-language description or explicit file list was given, respect it as an outer boundary — group only within that scope, don't pull in extra files to "complete" a group.
If everything in scope is genuinely one cohesive change (e.g. a small fix touching a few related files), it's fine to end up with a single group/commit — don't force a split that doesn't reflect real functional boundaries.
Before staging anything, show the proposed groups (files + one-line rationale each) and the commit message planned for each, so the split can be confirmed or adjusted.
Repeat for each group, in order:
Stage exactly that group's files (git add <paths>), nothing more.
Run git diff --staged and read it in full — the commit message must
be based on what this diff actually does, not a generic description
of the files touched.
Write the commit message for this diff using the conventional-commits
skill (in this same plugin) — it holds the full Conventional Commits
v1.0.0 grammar and the reasoning for picking a type/scope/breaking-change
marker; don't re-derive those rules here. The target repo may enforce
them via a commitlint commit-msg hook — malformed messages will be
rejected, so get the formatting right before proposing it.
Show the exact commit message to the user and wait for explicit
confirmation before running git commit. Present it verbatim,
e.g.:
About to commit with this message:
---
<type>(<scope>): <description>
[optional body]
---
Proceed?
Once confirmed, run git commit -m "..." (use a proper multi-line
message, e.g. via a heredoc or multiple -m flags, when there's a
body). Do not use --no-verify.
If the commit is rejected by a commitlint hook, read the error, fix
the message, confirm the revised message with the user again, and
retry — don't bypass the hook. Allow at most 2 retry attempts for this
group (3 git commit attempts total). If it's still being rejected
after that, stop, show the user the exact commitlint error from the
last attempt plus the message that produced it, and ask how to
proceed rather than continuing to guess.
Never run git push, or any other command that touches a remote.
This skill only commits locally.
Show, for each commit created:
git show --stat -1 or similar).so the full result can be confirmed at a glance.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub leonardo-marziali/agentic-development-kit --plugin git4 skills in this plugin
/branchThis skill should be used when the user asks to "create a branch", "new branch", "start a new branch", "branch off", "branch for this", "move this work to a new branch", "put these changes on their own branch", or "/branch" — and whenever a branch must be created before starting new development. Runs the mechanical pre-creation checks (working tree state, correct base branch, base up to date, no local/remote name collision), derives a name from the project's branch naming convention, and creates the branch with a single `git switch -c`. Pushes and sets upstream only after explicit confirmation./conventional-commitsThis skill should be used whenever the wording/formatting of a commit message itself is the task — writing one from a diff or description, formatting one as Conventional Commits, checking what type/scope/breaking-change marker to use, or another skill (such as the sibling `commit` skill in this plugin) needs message text to hand to `git commit`. Triggers on "write a commit message", "generate a conventional commit", "format this as a conventional commit", "what type should this be", "conventional commits", "commitlint", "semantic commit messages". Produces messages complying with the Conventional Commits v1.0.0 specification (type, optional scope, optional breaking-change marker, description, body, footers) and explains the reasoning behind each choice. This skill only produces message text — it never stages files or runs `git commit` itself; for "commit this" / "commit these changes" style requests where the user wants the commit actually created, that's the `commit` skill's job.