/abatilo-core:git-commitfrom abatilo-core
Guides Claude through staging decisions and creating atomic, well-structured git commits with conventional commit messages. Replaces direct git commit usage.
Ships in abatilo-core. 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.
Read when SKILL.md points to them.
Create a set of logically grouped, atomic commits from the current changes. Keep each commit's scope minimal. Stage parts of a file separately when it contains changes that belong to different commits.
Analyze Current State
git status and git diff HEAD to see all staged and unstaged changesgit log --oneline -20) to learn the project's commit style: whether it uses conventional commits (e.g., feat:, fix:, docs:), typical subject line length, capitalization, and formattingGroup Changes Logically
Identify related changes that should be committed together
Separate unrelated changes into different commits
When a file contains more than one logical change, stage only the hunks
for the current commit. git add -p is interactive and does not work in
this environment, so stage hunks through a patch instead:
git diff -- path/to/file > "$TMPDIR/full.patch"
# Copy full.patch to part.patch and delete the hunks for other commits
git apply --cached "$TMPDIR/part.patch"
git diff --cached -- path/to/file
When hunks are too tangled to split by patch, temporarily edit the file
to the intermediate state, git add it, then restore the final state
Create Commits
git showgit status to confirm nothing was missedFor conventional commits, see references/conventional-commits.md for
types, scopes, and breaking-change syntax. The type and scope count toward
the subject length limits below.
A diff shows what changed; only the message can say why. Follow these seven rules from https://cbea.ms/git-commit/, adjusted for the project's conventions:
git log --oneline,
shortlog, and rebase treat the first line as the subjectNot every commit needs a body. When the subject says everything, such as
Fix typo in user guide introduction, omit the body. When the change needs
context, write the body.
Pass a multi-line message through a heredoc so that the blank line and the wrapping stay exact:
git commit -F - <<'MSG'
Summarize the change in about 50 characters
Explain the problem that this commit solves and why this approach
solves it. Wrap lines at 72 characters.
Resolves: #123
MSG
Put issue and pull request references in trailers at the end of the body, matching the trailer style that the project already uses.
Good Examples (Traditional Style):
Refactor subsystem X for readabilityRemove deprecated methods from UserServiceFix null pointer exception in login handlerGood Examples (Conventional Commits):
feat: add user authentication middlewarefix: resolve null pointer exception in login handlerrefactor: improve subsystem X readabilityBad Examples:
fixed stuffChangeswipUpdate file.jsfeat added new feature (missing colon)Added the login handler. (past tense, trailing period)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub abatilo/vimrc --plugin abatilo-core4 skills in this plugin
/cs-reviewCode style review of a diff against Functional Core, Imperative Shell, Locality of Behaviour, and explicit state machines. Runs the fcis-reviewer, locality-reviewer, and state-machine-reviewer agents in parallel, verifies their findings, and reports one merged review. Use for /cs-review, a code style review, or a review of purity, effect placement, core and shell boundaries, action at a distance, code layout, or state hidden in flags and status fields. Correctness review belongs to /code-review./gh-stackManages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.
/repo-exploreClone and explore external GitHub repositories to understand how libraries, frameworks, or dependencies work. Use when user provides a GitHub URL (github.com/owner/repo), asks "how does X library work", wants to look at source code for a dependency, asks about implementation details of an external package, or says "explore", "look at", or "check out" a repository. Automatically checks out the matching version tag when the repo is a dependency in the current project.Other plugins' skills for the same job