prd-ralph-loop
Orchestrate the implementation of a PRD with subagents. Use for completing all PRD tasks/stories, not a single task.
- License 许可
- MIT
- 所属仓库
- japurcell/skills
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- prd-ralph-loop
- description
- Orchestrate the implementation of a PRD with subagents. Use for completing all PRD tasks/stories, not a single task.
- argument-hint
- <prd-file> [progress_file <path>] [commit <true|false>]
- disable-model-invocation
- true
02 资源文件 12
- 参考文档evals/evals.json4.5 KB
- 参考文档evals/files/blocked/worker.json129 B
- 参考文档evals/files/complete/prd.json306 B
- 参考文档evals/files/complete/worker.json55 B
- 参考文档evals/files/dependent/worker.json141 B
- 参考文档evals/files/enriched/worker.json151 B
- 参考文档evals/files/incomplete/prd.json307 B
- 参考文档evals/files/invalid/prd.json44 B
- 参考文档evals/files/invalid/worker.json118 B
- 脚本evals/grade_benchmark.py9.5 KB
- 参考文档evals/README.md682 B
- 脚本evals/test_grade_benchmark.py8.7 KB
03 SKILL.md 正文
/prd-ralph-loop
Overview
Dispatch fresh workers until the validated manifest is complete or work is blocked. Workers own intake, selection, execution, verification, progress, and commit audits.
When to Use
Use when explicitly asked to complete all PRD tasks, rather than one task.
Inputs
prd_file: required path to the task manifest; if absent, ask and stop.progress_file: optional; forward unchanged when supplied, otherwise let the worker use its default.commit: optional; forward unchanged when supplied, otherwise retain the worker defaulttrue.- Preserve user scope, owner boundaries, and stop constraints in every dispatch.
Workflow
- Record
review_base_sha = git rev-parse HEADand initialgit status --porcelain. If either fails, report blocked and stop. - Activate the
delegate-to-subagentsskill for routing and dispatch. - Start one fresh subagent with the instruction “activate the
prd-ralphskill”, the exactprd_file, explicit optional inputs, and all user scope/stop constraints. Request the worker's exact terminal protocol and summary. Wait for its result before another dispatch. - Interpret the worker result:
- Exact
<promise>COMPLETE</promise>: all work is complete; stop. <promise>TASK_COMPLETE</promise>plus selected-task summary: one task passed and work remains; enforce caller stop constraints, then dispatch the next fresh worker only if continuation is authorized. If a scope/stop limit has been reached, report remaining work honestly without claiming COMPLETE.<promise>BLOCKED</promise>plus actionable reason: stop and preserve the blocker. Do not retry an unchanged prerequisite, unavailable check, owner condition, or commit gate.- Actual tool/subagent failure or missing, contradictory, or invalid protocol: retry with a fresh worker and pass the prior failure/output. After three consecutive such failures, stop blocked. Reset this counter only after a valid TASK_COMPLETE. Ordinary blocked work is not a retryable runtime failure.
- Exact
- Define
full_review_scope: committed diffreview_base_sha..HEAD, staged and unstaged diffs, and new relevant untracked files, accounting for initial changes. - Only after orchestration stops, read the progress file if available: supplied
progress_file, otherwise<dirname(prd_file)>/progress.txt. Capture durable knowledge, especially tool workarounds, in the target project's existing guidance; preserve owner limits and user scope. - Report complete or blocked accurately, with worker summaries, actionable blocker when present, and
full_review_scope. A blocked run never claims PRD completion.
Common Rationalizations
A worker reporting a blocked check is not an invitation to dispatch repeatedly. Continue only on TASK_COMPLETE; required evidence and owner approval stay with the worker's gates.
Red Flags
Stay blind: do not read prd_file or any progress file during orchestration, even to select a task or infer completion. Do not activate the prd-ralph skill yourself or implement product changes. Workers validate the manifest before interpreting all-complete flags.
Verification
Confirm dispatches were sequential and fresh, forwarded inputs and constraints were intact, retries were limited to actual runtime/protocol failures, and the final status follows the worker protocol. Retain the baseline and full review scope so later review includes committed and uncommitted task changes.
04 同仓库更多 Skills
spec-create
Create or revise a portable behavioral SPEC for a feature or whole product. Use when specifying a new idea, documenting an existing system for reimplementation, or defining a change while preserving compatibility. Implementation planning is a separate task.
prd-ralph
Complete at most one eligible unfinished PRD task, verify it, log progress, and optionally create one scoped commit.
fsdp-style-guide
Mandatory for all UI/UX design, implementation, review, audit, or visual regression tasks. Always use for any work that affects user-facing appearance, behavior, accessibility, branding, layout, navigation, forms, dialogs, alerts, tables, or visual design.
agency-priorities
Provide self-contained USDA strategic goals and Forest Service priorities for agency briefings, proposals, and work-plan alignment. Use when explaining agency direction or evaluating how a project contributes to USDA and Forest Service priorities.
accomplishment-report
Create a concise Forest Service executive accomplishment report when all work in an ExecPlan is completed, or update its existing report. Use at ExecPlan closeout and when asked to report completed work, agency alignment, and estimated AI-assisted versus human-only time and cost savings.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.