prd-build-cancel
Cancel or pause a PRD build run
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Cancel or pause a PRD build run
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Decompose a PRD into parallel work units and build them with independent agents
Run /prd-build over multiple PRDs with full worktree lifecycle (create, dispatch, FF-merge, cleanup). Single-command dispatch from one session — sequential or parallel.
Evaluate an MCP tool's agentic usability via parallel test scenarios plus a meta-reflection pass, producing a scored improvement report
Resume a paused or interrupted PRD build run
Show PRD build orchestration status
Run diverge → converge → premortem pipeline to produce a risk-annotated PRD
| name | prd-build-cancel |
| description | Cancel or pause a PRD build run |
| argument-hint | [--keep-branches] |
| allowed-tools | ["Bash","Read","Write","Edit"] |
Check for an active run:
if [ -f .claude/prd-build.state.json ]; then
cat .claude/prd-build.state.json
else
echo "NO_STATE_FILE"
fi
If NO_STATE_FILE: tell the user there's no active run to cancel.
Otherwise, present the current status and ask the user which action they want:
Pause — Update .claude/prd-build.state.json status to "paused". State is preserved. Resume later with /prd-build-resume.
Also append a timestamped line to .claude/prd-build.log.md: "Run paused by user".
Cancel (clean) — Remove all worktrees, branches, and state files:
# Remove worktrees
git worktree list --porcelain | grep -oP 'worktree \K.*prd-build.*' | while read wt; do git worktree remove --force "$wt"; done
# Remove branches
git branch --list 'prd-build/*' | xargs -r git branch -D
# Remove state files
rm -rf .claude/prd-build.state.json .claude/prd-build.log.md .claude/prd-build-artifacts/
Cancel (keep branches) — Remove worktrees and state but keep git branches for manual inspection:
# Remove worktrees only
git worktree list --porcelain | grep -oP 'worktree \K.*prd-build.*' | while read wt; do git worktree remove --force "$wt"; done
# Remove state files
rm -rf .claude/prd-build.state.json .claude/prd-build.log.md .claude/prd-build-artifacts/
WAIT for the user to choose before taking any action.