Skip to content
Agentmart
Submit a tool

git-split

Split the current `git` commit into multiple focused, self-contained, easy to review commits.

Skill by TomerAberbach

IndexedMIT
Write a review

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/tomeraberbach-git-split

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.

We use your email only for this newsletter. Privacy

About

Split the current `git` commit into multiple focused, self-contained, easy to review commits.

No 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/git-split

What's inside

Skill name
git-split
Description
Split the current `git` commit into multiple focused, self-contained, easy to review commits.
License
MIT
Instructions
67 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • allowed-tools: must be a space-separated string

Files (1)

  • SKILL.md

SKILL.md (first lines)

Split the current `git` commit into multiple focused, self-contained, easy to
review commits.

# Current commit

```!
git show
```

$ARGUMENTS

# Principles

- One concern per commit: e.g. bug fix, feature, refactor, or config change
- Each commit passes all checks: format, lint, typecheck, build, test
- Commit tests with the code they test
- Never mix refactors with behavioral changes
- Prefer thin vertical slices, one complete feature end-to-end, over horizontal
  layers
- Use every added API, abstraction, or stub within the same commit. Don't split
  so small that a commit introduces dead code

# Workflow

1. Read the diff above. If the commit is already small and self-contained, tell
   the user and stop
2. Identify logical groupings and order them from most foundational to most
   dependent. When a boundary is ambiguous, keep changes together
3. Infer verification commands from project files (e.g. `package.json`,
   `Makefile`, CI config). If there are none, ask the user
4. Present the plan as a numbered list:
   - Commit N: `<imperative-mood description>: <file or hunk list>`
   - One sentence justifying each split boundary
   - The verification commands you will run after each split
   - Ask for confirmation before proceeding
5. Run `git reset HEAD~1` so all changes return to the working tree
6. Stage and commit each group in order, running verification commands after
   each:
   ```sh
   git stash
   <verification commands>
   git stash pop
   ```
7. After all splits, run `git log --oneline -<commit count>` and show the
   resulting stack

# How to split

## By file

Stage specific files for the first commit, then commit:

```sh
git add <files for first commit>
git commit -m "<first commit description>"
```

## By hunk

When a single file contains changes that belong in different commits:

1. Edit the file to contain only the changes for the first commit, removing the
   hunks that belong later
2. Stage and commit it
3. Re-edit the file to restore the removed hunks before the next commit

From TomerAberbach/claude-config, MIT.

More from TomerAberbach/claude-config

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 4, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from TomerAberbach

Cite this page

git-split skill. Agent Mart. https://agentmart.dev/skills/tomeraberbach-git-split (last updated 2026-10-24)