claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
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.
Claude Code
$ npx -y skills add athola/claude-night-market --skill stack-create --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill stack-create -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill stack-create -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill stack-create -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill stack-create -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill stack-create -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill stack-create -a windsurf -y
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
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.
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`).
`attune:blueprint`)
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`
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
Read the plan and extract ordered slices. Each slice must satisfy:
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.
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-apiConvention: `stack/<feature-name>/<slice-name>`
Return to the first slice branch to begin work:
git checkout ${STACK}/add-schema# 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
Confirm the branch topology is correct:
git log --oneline --graph \
${BASE}..${STACK}/add-uiEach 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})"each slice (empty branches produce confusing PRs)
by convention; keep it short and descriptive
open PRs, or work slice-by-slice and push when ready
re-verify the topology in Step 4
through `stack-create:stack-verified`) are created before branch creation starts and marked complete in order
branch tracking is documented and the user is warned
`stack/<feature-name>/<slice-name>`
with each slice branch appearing in dependency order
is verified
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.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.