From agent-workflows
Resumes paused or interrupted PRD build runs by recovering state from .claude/prd-build.state.json and dag.json, resetting active units, and continuing execution from the current layer.
npx claudepluginhub sjarmak/agent-workflowsThis skill is limited to using the following tools:
Load existing state:
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Load existing state:
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 run to resume. Suggest /prd-build <prd-path> to start one.
Otherwise, follow this recovery procedure:
Read .claude/prd-build.state.json and .claude/prd-build-artifacts/dag.json. Determine:
Any units with status "active" were interrupted mid-execution. Read dag.json, update those units' status to "pending" and clear their pipeline_stage to null, then write the file back.
Update .claude/prd-build.state.json status to "executing". Append to .claude/prd-build.log.md: "Resumed from checkpoint".
Find the lowest layer number that still has non-landed units. Resume Phase 2 (EXECUTE) from that layer.
Follow the exact same orchestration logic as the main /prd-build command's Phase 2, 3, and 4. The key difference: you already have the work plan — skip decomposition and go straight to execution.
Read the PRD for context:
# The PRD path is stored in the state file — read it from the JSON printed above
cat "$(cat .claude/prd-build.state.json | python3 -c 'import sys,json; print(json.load(sys.stdin)["prd_path"])')"
Then read that file to understand what's being built, and continue orchestrating.