prd-build-cancel
Cancel or pause a PRD build run
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Cancel or pause a PRD build run
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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.