railima

Stack Link — Git skill for Claude Code

Git community

Retroactively register the parent of the current branch in the stacked-PRs system.

How to install Stack Link

Installs to ~/.claude/skills/railima-claude-personal-skills-stack-link/SKILL.md

Terminal
mkdir -p ~/.claude/skills/railima-claude-personal-skills-stack-link && curl -fsSL https://raw.githubusercontent.com/railima/claude-personal-skills/HEAD/commands/stack-link.md -o ~/.claude/skills/railima-claude-personal-skills-stack-link/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Stack Link does

Retroactively register the parent of the current branch in the stacked-PRs system. Use this when you have an existing stack of branches created BEFORE adopting the stacked-prs skill, and you need to record the parent relationships so `/stack-sync` and `/stack-list` know about them.

Argument: `$ARGUMENTS` (optional) — the parent branch name. If omitted, the command auto-detects candidates.

Steps:

  1. Get the current branch: git rev-parse --abbrev-ref HEAD. If it returns main or master

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Fullstack Dev Skills — by jeffallan - A comprehensive Claude Code plugin with 65 specialized skills covering full-stack development a 7k ★

Full documentation available on GitHub

View Source Repository