restack

Installation
SKILL.md

Restack

Manage stacked branches without external tooling. Infers the dependency graph from git history (merge-base ancestry + commit distance) — no metadata files, no init step, no account.

Handles the common stacking pain points:

  • Trunk advances → cascade rebases through the stack
  • Mid-stack edit → rebase descendants onto the changed branch
  • PR lands → detect merged branches, clean up, re-parent descendants
  • What's my stack? → show tree structure with per-branch state

Usage

/restack [status | sync | <description of what to do>]

  • With no arguments — run status and ask the user what they'd like to do.
  • With status — show the current stack state.
  • With sync — fetch trunk, detect landed branches, restack.
  • With a description — interpret intent and act.
Related skills

More from shhac/skills

Installs
10
Repository
shhac/skills
First Seen
Mar 14, 2026