Skip to content
Development
Skill

/stack-create

Initializes a stacked branch set from an ordered plan, one branch per slice with parent-child links. Use when a plan has 2+ sequentially dependent changes.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill stack-create --agent claude-code

SKILL.md

stack-create.SKILL.md
name: stack-create
description: Initializes a stacked branch set from an ordered plan, one branch per slice with parent-child links. Use when a plan has 2+ sequentially dependent changes.
alwaysApply: false
category: workflow-automation
tags:
- git
- stacked-diffs
- pr
- branches
- planning
tools: []
complexity: medium
estimated_tokens: 800
dependencies:
- sanctum:git-workspace-review
- sanctum:do-issue

Stack Create

Initialize a stacked branch set from a multi-step plan. Each logical slice of the plan becomes one branch targeting the previous slice's branch as its base.

When To Use

Use `stack-create` when a plan produces 2 or more ordered changes where each change depends on the previous one completing (and merging) before it can land. For independent changes, use parallel worktrees instead (see `egregore`).

When NOT To Use

  • A single independent change, which should branch normally instead
  • The stack exists and needs publishing (use `sanctum:stack-push`)

Prerequisites

  • Git 2.38+ (`git version | awk '{print $3}'` to check)
  • `gh` CLI authenticated
  • A written plan with ordered slices (from `do-issue` or

`attune:blueprint`)

  • Clean working tree on the base branch (`git status`)

Required Progress Tracking

Create progress items before starting:

1. `stack-create:git-version-checked` 2. `stack-create:slices-identified` 3. `stack-create:branches-created` 4. `stack-create:stack-verified`

Step 1: Verify Git Version (`git-version-checked`)

git version

Confirm the output is `2.38.0` or higher. If not, the `--update-refs` flag is unavailable. Warn the user and fall back to manual branch tracking.

Check for optional jj accelerator:

if command -v jj &>/dev/null && jj root &>/dev/null 2>&1; then
  echo "jj available"
else
  echo "using git --update-refs"
fi

Step 2: Identify Slices (`slices-identified`)

Read the plan and extract ordered slices. Each slice must satisfy:

  • A single logical concern (one PR worth of change)
  • A clear dependency on the slice before it (if any)
  • A short name suitable for a branch suffix

Example slices for a plan with three parts:

Slice 1: add-schema     -- database schema changes
Slice 2: add-api        -- API layer (depends on schema)
Slice 3: add-ui         -- frontend (depends on API)

Record the slice list before creating branches.

Step 3: Create Branches (`branches-created`)

Starting from the base branch (usually `master` or `main`):

BASE=master
STACK=stack/my-feature

# Slice 1 branches from master
git checkout -b ${STACK}/add-schema ${BASE}

# Slice 2 branches from slice 1
git checkout -b ${STACK}/add-api ${STACK}/add-schema

# Slice 3 branches from slice 2
git checkout -b ${STACK}/add-ui ${STACK}/add-api

Convention: `stack/<feature-name>/<slice-name>`

Return to the first slice branch to begin work:

git checkout ${STACK}/add-schema

jj Accelerator (if available)

# jj creates an empty commit on each branch automatically
# Use jj new to move to a new change
jj new -m "stack: add-schema" --no-edit

Step 4: Verify Stack (`stack-verified`)

Confirm the branch topology is correct:

git log --oneline --graph \
  ${BASE}..${STACK}/add-ui

Each slice branch should appear as a linear chain above the base.

If jj is available:

jj log --revisions \
  "ancestors(${STACK}/add-ui, 10) & !ancestors(${BASE})"

Notes

  • Never push branches until at least one commit exists on

each slice (empty branches produce confusing PRs)

  • The slice name in the branch becomes the PR title prefix

by convention; keep it short and descriptive

  • After creating the stack, proceed to `stack-push` to

open PRs, or work slice-by-slice and push when ready

  • If the plan changes, add or remove branches manually and

re-verify the topology in Step 4

Exit Criteria

  • [ ] All 4 progress items (`stack-create:git-version-checked`

through `stack-create:stack-verified`) are created before branch creation starts and marked complete in order

  • [ ] Git version confirmed ≥ 2.38.0; if not, fallback to manual

branch tracking is documented and the user is warned

  • [ ] All slice branches created with the naming convention

`stack/<feature-name>/<slice-name>`

  • [ ] `git log --oneline --graph <base>..<tip>` shows a linear chain

with each slice branch appearing in dependency order

  • [ ] Working tree returned to the first slice branch after topology

is verified

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about stack-create.

Which coding agents can use stack-create?
stack-create installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.