Stack Branch
Create a new branch stacked on another PR. Use when you want to start work that depends on an existing PR that hasn't been merged yet.
Install
npx skills add flurdy/agent-skills --skill stack-branchgit clone --depth 1 https://github.com/flurdy/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/stack-branch ~/.claude/skills/stack-branchPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Create Stacked Branch
Create a new branch based on an existing PR branch (not main) for dependent work.
## Usage
```
/stack-branch AB-456
/stack-branch AB-456 feature/parent-branch # Explicit parent
```
## Instructions
### 1. Get the Jira Ticket
The first argument is the Jira ticket number for the new work.
Use [jira-ticket](../jira-ticket/SKILL.md) for the key, summary and issue type. It owns tool
availability, deferred discovery and unavailable-context handoffs. If skill invocation is absent,
read that installed skill and follow it; do not reconstruct the lookup. Stop branch creation if
required context remains unavailable rather than guessing the branch prefix.
### 2. Identify Parent Branch
If parent branch not specified:
```bash
# Check if currently on a feature branch
git branch --show-current
```
If attached to a non-default branch, offer to use it as the parent. If detached or on the repository
default branch, ask which PR branch to stack on.
### 3. Resolve the parent ref
Fetch the parent branch read-only and require its remote-tracking ref to exist. The parent is an
existing PR branch, so `origin/{parent-branch}` is the authoritative base. Do not check out or pull
the parent branch:
```bash
git fetch origin {parent-branch}
git rev-parse --verify origin/{parent-branch}
```
### 4. Create Branch Name
Map the Jira issue type to conventional commit prefix:
| Issue Type | Prefix |
|------------|--------|
| Story | `feat` |
| Task | `feat` |Details
- Skill name
stack-branch- Repository
- flurdy/agent-skills
- Path
skills/stack-branch/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Stack Branch skill do?
Create a new branch stacked on another PR. Use when you want to start work that depends on an existing PR that hasn't been merged yet.
How do I install the Stack Branch skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add flurdy/agent-skills --skill stack-branch. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Stack Branch popular?
It lives in flurdy/agent-skills, which has 9 GitHub stars and 0 forks.
Related skills
Architect
9flurdy/agent-skills
Architecture and implementation planning gate for complex or high-blast-radius work. Produces evidence-backed decisions, reviewable slices, acceptance evidence, and conditional human review ownership without editing code.
Artifact Hygiene
9flurdy/agent-skills
Run a local-only, read-only advisory audit of publishable working-tree files and unpublished branch history with redaction-safe findings.
Backlog Groom
9flurdy/agent-skills
Auto-detects workspace unfinished backlogs across unique stores; otherwise local open beads. Flags thin prose, missing labels, drift, lifecycle and duplicates. Report-only; mutations need approval, destructive ones individually.
Start Ticket
9flurdy/agent-skills
Initialize work on a Jira ticket. Creates a new branch with conventional commit prefix based on the ticket type. Use when starting work on a new ticket.
Setup Multirepo Git
9flurdy/agent-skills
Multi-repo git workflow rules and setup. Provides mgit wrapper for safe permission patterns across independent service repositories. Use when setting up a new multi-repo workspace or when working with multi-repo git operations.
Tracking Sweep
9flurdy/agent-skills
Portfolio-wide drift sweep across Jira, beads, and GitHub PRs — flags status drift, orphan work, parent-moved beads, and stale items. Read-only; use for a "where is everything" reconciliation, unlike /landscape's passive snapshot.
Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.