grim:dev:git-commit-decanter
(grim:dev:git-commit-decanter): (Git Commit Decanter): Use this for most commit planning, hunk staging, cleanup, and history-shaping git workflows.
Skill by MindGoblinStudios
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mindgoblinstudios-grim-dev-git-commit-decanter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/grim-dev-git-commit-decanter
What's inside
- Skill name
grim:dev:git-commit-decanter- Description
- (grim:dev:git-commit-decanter): (Git Commit Decanter): Use this for most commit planning, hunk staging, cleanup, and history-shaping git workflows. Do not auto-route simple read-only status/log/diff checks unless commit chunking or history surgery is actually in scope.
- License
- MIT
- Instructions
- 229 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
Files (6)
- SKILL.md
- openai.yaml · agents/
- git-commit-decanter-icon-large.png · assets/
- git-commit-decanter-icon-med.png · assets/
- git-commit-decanter-icon-small.png · assets/
- icon-generation-2026-08-24.md · assets/prompts/
SKILL.md (first lines)
# Git Commit Decanter
Decant one monster diff into clean, settled chunks.
Grim workflow layer on top of [git-surgeon](https://github.com/raine/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+`).
## Invocation Scope
Use this skill for most git workflows that involve:
- planning commits
- staging or splitting hunks
- cleaning up a dirty tree
- amending, folding, squashing, reordering, or otherwise shaping history
- preparing a reviewable commit stack
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 Workflow (Plan First, Then Commit After Approval)
Default behavior when the user invokes this skill:
- inspect the current branch's uncommitted changes
- split them into a proposed stack of small, easily reviewable commits
- present a numbered commit list for user approval
- only execute the plan after the user approves it
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.
- If the first pass produces fewer than 3 commits, look again for valid separations such as setup, behavior, refactor, tests, docs, tooling, or follow-up cleanup.
- Do not create fake or noisy commits just to hit the floor; if the diff is genuinely too small to support 3 meaningful commits, say so explicitly and use the smallest sensible number.
- If the first pass produces more than 20 commits, recombine adjacent micro-commits until each remaining commit still tells one clear story.
Workflow:
1. Identify branch + working state:
- `git rev-parse --abbrev-ref HEAD`
- `git status --porcelain`
2. List change hunks (IDs + previews):
- `git-surgeon hunks` (unstaged)
- `git-surgeon hunks --staged` (staged, if any)
- use `git-surgeon hunks --blame` when deciding which earlier commit new lines belong with
3. Create a numbered commit plan:
- Group hunks into small commits by intent (feature, fix, refactor, docs, tooling).
- Keep commits tight and reviewable. If one hunk mixes concerns, split it with `--lines`.
- Aim for 3 to 20 commits overall unless the change set is truly smaller.
- Present the plan as a numbered list before committing.
- For each planned commit, include:
- proposed commit subject
- relevant files or hunk IDs
- brief reason this commit is separate
4. Ask for approval:
- Ask the user to approve the numbered list before executing it.
- If the user requests changes, revise the numbered list and ask again.
- Ask for approval before merging, squashing, recombining, or otherwise changing planned commits into a different stack.
5. Execute the approved plan:
- Use `git-surgeon commit <id...> -m "message"` for each chunk.
- Repeat until `git-surgeon hunks` is empty.
6. If you need to adjust after the fact:
- Add missed hunks to an earlier commit: stage them and use `git-surgeon amend <commit>`.
- Fold a finished commit into an earlier one: `git-surgeon fold <target>` or `git-surgeon fold <target> --from <commit>`.
- If a commit is too large or mixed, use `git-surgeon split <sha> ...` (see Split Workflow below).
- Reorder commits after splitting: `git-surgeon move <sha> --after <target>`.
### Chunking Rules (Make Review Easy)
- One concept per commit (avoid mixing refactor + behavior + docs unless the change is inseparable).
- Separate mechanical changes (renames/formatting) from behavioral changes.
- Keep tests with the code they validate, and use test-first sequencing when the user explicitly asks for it.
- Prefer smaller commits: if a diff hunk is a “bundle,” split it by line ranges.
- Default target is 3-20 commits for a meaningful working set; push upward when a larger diff contains multiple separable ideas.
- Build a narrative across commit messages: each commit should advance a clear story (`setup -> core behavior -> UX polish -> tests/docs`) and the body should briefly explain why this step exists before the next one.
- Across all projects, never commit files under `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.
### Safety Rules
- Never push without explicit user request.
- Do not create the default commit stack until the user approves the numbered commit plan.
- Ask for approval before merging, squashing, recombining, or otherwise changing planned commits.
- Confirm before rewriting history on shared branches (especially `split`, `fold`, `amend`, `squash`, `move`, or anything that implies force-push).
## Commands
```bash
# 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>From MindGoblinStudios/grim-tome, MIT.
More from MindGoblinStudios/grim-tome
- 0.651score
grim:council:guild:ops:roger-roger
MindGoblinStudios
Roger Roger (Glue Bot): The catch-all for overlooked work, miscellaneous requests, and odd jobs between roles.
SkillAFreshness: A★ 34Claude Code +9 - 0.651score
grim:council
MindGoblinStudios
Full Council: Master council skill that runs a roundtable with the all council advisors, creating a dialogue scene & immersive roleplay
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:council:guild:cortex:cauldron-meal-planner
MindGoblinStudios
Cauldron (Meal Planner): A living magical cauldron that owns all meal planning in one pot.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:council:guild:coding:grimoire-code-wizard
MindGoblinStudios
Grimoire (Code Wizard): The #1 Vibecoder in the world.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:terface:update
MindGoblinStudios
Check whether the local Grimoire's Tome checkout is behind upstream, summarize what's new from patchNotes.md, and update safely with non-destructive git.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:council:guild:cortex:boulder-gym-bro
MindGoblinStudios
Boulder (Exercise Planner): Workout & exercise planning, daily movement, lifting logs, longevity, health, and overall wellness.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:dev:agentops:model-quirks
MindGoblinStudios
Model Quirks: Apply model-specific prompt mitigations inline and record every change in the reverse-index ledger so it can be verified, pruned, or undone when…
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:dev:agentops:expansion-packs
MindGoblinStudios
Expansion Packs: Install third-party skills or whole skill stacks as expansion packs, fork them into grim:ep:mx: mutations, run beta packs, disable them by…
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:terface:install
MindGoblinStudios
Guided install of Grimoire's Tome: explain the install model, walk the user through cloning, copying, or symlinking the parts they want, and hand off to…
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:mem:dream-sequence
MindGoblinStudios
Dream Memory Sequence: Run a periodic memory-consolidation review.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:council:guild:merchants:midas-money-manager
MindGoblinStudios
Midas (Money Manager): A greedy dragon for your money & budget.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:council:guild:cortex:farseer-long-term-planner
MindGoblinStudios
Farseer (Weekly & Long-Term Planner): Ambitious long-range strategy and practical execution of large projects.
SkillAFreshness: A★ 34Claude Code +9
Signals
- Stars
- 34
- Forks
- 4
- Open issues
- 0
- Last commit (this folder)
- Sep 6, 2026 (1 month ago)
- Last release
- Aug 25, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/MindGoblinStudios/grim-tome
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MindGoblinStudios
- 0.651score
grim:council:guild:ops:roger-roger
MindGoblinStudios
Roger Roger (Glue Bot): The catch-all for overlooked work, miscellaneous requests, and odd jobs between roles.
SkillAFreshness: A★ 34Claude Code +9 - 0.651score
grim:council
MindGoblinStudios
Full Council: Master council skill that runs a roundtable with the all council advisors, creating a dialogue scene & immersive roleplay
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:mem:dream-sequence
MindGoblinStudios
Dream Memory Sequence: Run a periodic memory-consolidation review.
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:dev:agentops:expansion-packs
MindGoblinStudios
Expansion Packs: Install third-party skills or whole skill stacks as expansion packs, fork them into grim:ep:mx: mutations, run beta packs, disable them by…
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:dev:agentops:model-quirks
MindGoblinStudios
Model Quirks: Apply model-specific prompt mitigations inline and record every change in the reverse-index ledger so it can be verified, pruned, or undone when…
SkillAFreshness: A★ 34Claude Code +9 - 0.646score
grim:council:guild:merchants:midas-money-manager
MindGoblinStudios
Midas (Money Manager): A greedy dragon for your money & budget.
SkillAFreshness: A★ 34Claude Code +9
Cite this page
grim:dev:git-commit-decanter skill. Agent Mart. https://agentmart.dev/skills/mindgoblinstudios-grim-dev-git-commit-decanter (last updated 2026-10-24)