← ClaudeAtlas

git-interactivelisted

Reorganize and reshape git commit history: interactive rebase, split commits, squash, fixup, reorder commits, amend old commits, add -p, rebase --onto. Use this skill when the user wants to clean up commits, rewrite history, or make commits semantically atomic. Uses the tmux skill for terminal sessions.
richardkmichael/claude-rodin · ★ 0 · Code & Development · score 75
Install: claude install-skill richardkmichael/claude-rodin
# git-interactive Skill Reshape and reorganize git commit history. This skill builds on the tmux skill — use the tmux skill to start a session, then follow these workflows. The goal is semantically atomic commits: each commit contains one logical change, described accurately, in a sensible sequence. ## Setup Start a tmux session using the tmux skill, then set up the editor: ```bash CLAUDE_GIT_EDITOR_DIR=$(mktemp -d /tmp/claude-git-editor-XXXXXX) EDITOR_CMD="$CLAUDE_SKILL_DIR/scripts/git-editor-claude.sh -d $CLAUDE_GIT_EDITOR_DIR" ``` Always use the `/tmp/claude-git-editor-XXXXXX` template for `mktemp` — paths under `/tmp/claude-git-editor-*` are auto-permitted by this skill's allowed-tools. Using `mktemp -d` without the template produces `$TMPDIR`-based paths that may contain spaces and will not be auto-permitted. ## Always assess first Before planning any operation, review the history: ```bash git log --oneline [-n N] # overview of commits git show <hash> # full diff for one commit git diff <hash>^ <hash> # same, alternate form git diff <base>..<tip> # range of commits git status # current working tree state ``` Reason about what needs changing and why before choosing an operation. If the intent is ambiguous, show your proposed plan and wait for approval. If you're confident, proceed — but state what you're about to do. ## The editor protocol (READY/DONE) `git-editor-claude.sh` is a blocking