/grim-tome:grim-dev-git-commit-decanterfrom Grimoire's Tome
Plans and executes git commit workflows by splitting diffs into clean, reviewable hunks using git-surgeon. Handles staging, splitting, amending, and history shaping.
Ships in Grimoire's Tome. 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.
Decant one monster diff into clean, settled chunks.
Grim workflow layer on top of git-surgeon: non-interactive hunk-level git operations for precise staging, splitting, and history shaping.
Upstream CLI: git-surgeon (currently tested against 0.1.17+).
Use this skill for most git workflows that involve:
Do not invoke it for simple read-only git status, git log, git show, or git diff checks unless the user is asking about commit structure, cleanup, or history work.
Default behavior when the user invokes this skill:
Do not silently commit immediately after creating the plan unless the user explicitly pre-approves that behavior in the request.
Target commit count: default to between 3 and 20 commits.
Workflow:
git rev-parse --abbrev-ref HEADgit status --porcelaingit-surgeon hunks (unstaged)git-surgeon hunks --staged (staged, if any)git-surgeon hunks --blame when deciding which earlier commit new lines belong with--lines.git-surgeon commit <id...> -m "message" for each chunk.git-surgeon hunks is empty.git-surgeon amend <commit>.git-surgeon fold <target> or git-surgeon fold <target> --from <commit>.git-surgeon split <sha> ... (see Split Workflow below).git-surgeon move <sha> --after <target>.setup -> core behavior -> UX polish -> tests/docs) and the body should briefly explain why this step exists before the next one.output/ or tmp/ unless the user explicitly promotes them into the actual project. Do not hide those paths with .gitignore or .git/info/exclude; the visible git status signal is intentional.split, fold, amend, squash, move, or anything that implies force-push).# List hunks
git-surgeon hunks # unstaged (ID, file, +/- counts, preview)
git-surgeon hunks --staged # staged
git-surgeon hunks --file=src/main.rs # filter by file
git-surgeon hunks --commit <HEAD/sha> # from specific commit
git-surgeon hunks --commit <sha> --full # with line numbers (for line-range splits)
git-surgeon hunks --blame # show introducing commit per line
# Show full diff for hunk (lines numbered for --lines)
git-surgeon show <id>
git-surgeon show <id> --commit HEAD
# Stage
git-surgeon stage <id1> <id2> ...
git-surgeon stage <id> --lines 5-30
# Stage + commit in one step
git-surgeon commit <id1> <id2> ... -m "message"
git-surgeon commit <id>:1-11 <id2> -m "message" # inline line ranges
# Commit hunks directly to another branch (no checkout)
git-surgeon commit-to <branch> <id1> <id2> ... -m "message"
# Unstage
git-surgeon unstage <id1> <id2> ...
git-surgeon unstage <id> --lines 5-30
# Discard working tree changes
git-surgeon discard <id1> <id2> ...
git-surgeon discard <id> --lines 5-30
# Fold staged changes into an earlier commit
git-surgeon amend <commit>
# Fold existing commit(s) into an earlier commit
git-surgeon fold <target>
git-surgeon fold <target> --from <commit>
git-surgeon fold <target> --from <commit1> <commit2>
# Reword commit message
git-surgeon reword HEAD -m "new message"
git-surgeon reword <commit> -m "new message"
git-surgeon reword HEAD -m "subject" -m "body"
# Squash commits from target through HEAD into one
git-surgeon squash HEAD~2 -m "combined feature"
git-surgeon squash <commit> --force -m "squash with merges"
# Undo hunks from commit (reverse-apply → working tree)
git-surgeon undo <id1> <id2> ... --from <commit>
git-surgeon undo <id> --from <commit> --lines 2-10
# Undo entire files from commit
git-surgeon undo-file <file1> <file2> ... --from <commit>
# Reorder commits
git-surgeon move <sha> --after <target-sha>
git-surgeon move <sha> --before <target-sha>
git-surgeon move <sha> --to-end
# Split commit by hunk selection
git-surgeon split HEAD \
--pick <id1> <id2> -m "first commit" \
--rest-message "remaining changes"
# Split with subject + body
git-surgeon split HEAD \
--pick <id1> -m "Add feature" -m "Detailed description." \
--rest-message "Other changes" --rest-message "Body for rest."
# Split with line ranges (comma for non-contiguous)
git-surgeon split <commit> \
--pick <id>:1-11,20-30 <id2> -m "partial split"
# Split into 3+ commits
git-surgeon split HEAD \
--pick <id1> -m "first" \
--pick <id2> -m "second" \
--rest-message "rest"
# Upgrade git-surgeon itself
git-surgeon update
| You have... | Use |
|---|---|
| Staged changes | git-surgeon amend <commit> |
| One existing commit, defaulting to HEAD | git-surgeon fold <target> |
| One or more named commits | git-surgeon fold <target> --from <commit...> |
git-surgeon hunks → list hunks with IDsgit-surgeon show <id> → inspect (lines numbered)git-surgeon commit <id1> <id2> -m "message" (or stage separately → git commit)git-surgeon commit <id>:5-30 -m "message"git-surgeon stage <id1> <id2>git-surgeon amend <commit-sha> (HEAD → amend; older → autosquash rebase)git-surgeon hunks --commit <sha>git-surgeon undo <id> --from <sha> or git-surgeon undo-file src/main.rs --from <sha>git-surgeon hunks --commit <sha> (use --full for line numbers)git-surgeon split <sha> --pick <id1> -m "first" --rest-message "second"-m flags → subject + bodyid:range for partial hunks; commas for non-contiguous: --pick <id>:2-6,34-37-2, -3 suffixeshunks for fresh IDsIf git-surgeon is not installed, install from raine/git-surgeon:
brew install raine/git-surgeon/git-surgeon
Upgrade:
brew upgrade git-surgeon
# or
git-surgeon update
discard, amend, fold, split, squash, and move can rewrite history or delete changes. Confirm with the user before rewriting history on shared branches or before force-pushing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
51 skills in this plugin
/grim-councilFull Council: Master council skill that runs a roundtable with the all council advisors, creating a dialogue scene & immersive roleplay/grim-council-dashboardCouncil Dashboard: Open the live council launch board either inline in Codex or as the standalone browser workbench./grim-council-gossipCouncil Gossip: Overhear the council in a side-channel scene where members talk about each other, their lore, and the user's situation without directly addressing the user unless needed.npx claudepluginhub mindgoblinstudios/grim-tome --plugin grim-tomeOther plugins' skills for the same job