Stack Link — Git skill for Claude Code
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
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:
- Get the current branch:
git rev-parse --abbrev-ref HEAD. If it returnsmainormaster
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 RepositoryRelated Skills
Stack New
Create a new dependent feature branch from the current branch and register the parent link in one step. Use wh
Stack Sync
Cascade-rebase the current branch and all its descendants onto the new main, after a parent PR has merged. Use
Jj Submit
Submit the entire stack: push all bookmarks and create/update GitHub PRs with correct base branches.
Enroll
Enroll an operator into an existing ecosystem (once per operator) — roster registration via /whoami --register
Up
Swap this tmux pane to the parent of the current /branch session
Create Worktrees
by evmts - Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleani
Related Agents
Hatch3r Fixer
Targeted fix agent that takes structured reviewer output and implements fixes for Critical and Warning finding
Repo Sweeper
Read-only mechanical sweeps — PR and CI status across many PRs, worktree/branch leftovers, issue states, path
PR Open
Create a pull request for the current branch. Analyzes all commits, runs validation, and opens a well-formatte