git-rebase-interactive

Installation
SKILL.md

Programmatic Interactive Git Rebase

This skill enables non-interactive execution of git interactive rebases. Use this when you need to:

  • Absorb/fixup commits into earlier commits
  • Squash multiple commits together
  • Reorder commits
  • Drop commits
  • Reword commit messages (limited support)

The Problem

Git's interactive rebase (git rebase -i) normally opens an editor for the user to modify a "todo" file. The GIT_SEQUENCE_EDITOR environment variable can override this, but:

  1. macOS BSD sed has different syntax than GNU sed for multi-line operations
  2. Complex todo modifications (reordering, inserting lines) are error-prone with sed

The Solution

Related skills
Installs
6
GitHub Stars
2
First Seen
Feb 21, 2026