计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ralph-loop-template【效率与协作】Generate an iterable checklist PROMPT file for Ralph Loop from a plan file or the current conversation, and output the ready-to-run /ralph-loop command.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
$ARGUMENTS
If an argument is provided: Read the file to understand the plan content.
If no argument: Search for a plan in the following order:
PLAN.md, plan.md, PLAN-*.md, plan-*.md, TODO.md, prd.md, PRD.md
Collect project-specific information to embed in the PROMPT file.
Search for agent/project configuration files in the following priority order:
CLAUDE.md (Claude Code).cursorrules (Cursor).windsurfrules (Windsurf)AGENTS.md, COPILOT.md, GEMINI.mdIf a config file is found, extract:
npm run lint && npm run build && npm test){AGENT_RULES}, max 3)If no config file is found: Infer from project structure:
package.json → npm/yarn commandsMakefile / Justfile → make/just commandsCargo.toml → cargo commandspyproject.toml / setup.py → python toolchainExtract the following from the plan:
Completion criteria must be mechanically verifiable (e.g., command execution returns exit code 0). Do not use subjective criteria like "works well" or "looks clean".
Split the plan into phases suitable for Ralph Loop iterations.
Splitting principles:
Size guideline (reference, not absolute):
max-iterations calculation: number of phases + 2
Use references/prompt-template.md as the base template and references/iteration-procedure.md as the iteration procedure block to generate the PROMPT file.
Create a PROMPT-{kebab-case-name}.md file in the project root.
Placeholder mapping:
| Placeholder | Source | Fallback |
|---|---|---|
{goal title} | Step 3 | Ask user |
{project name} | Project directory name or CLAUDE.md | Ask user |
{goal} | Step 3 | Ask user |
{AGENT_RULES} | Step 2 (agent config rules) | Omit entire line if no config file |
{non-goals} | Step 3 + non-goal writing rules for inference | Min 2 items |
{reference doc rows} | Step 2-3 | Omit entire reference docs section if 0 docs |
{iteration procedure} | Entire references/iteration-procedure.md | — |
{checklist} | Step 4 phase splitting result | — |
{verification command} | Step 2 (project detection) | Ask user |
{COMPLETION_PROMISE} | COMPLETION_PROMISE generation rules | — |
Note: Example text that uses curly braces (such as the recording format for out-of-scope findings) should be left as-is without substitution.
Provide the generated PROMPT file path and output the /ralph-loop command in the following format:
### Generated File
`{PROMPT file path}`
> Review the generated PROMPT file before execution. Check the verification commands and phase structure in particular.
### Ralph Loop Execution Command
/ralph-loop "Read {PROMPT file path} and implement the next unchecked phase. Always read the file first to find the first phase with [ ] items." --max-iterations {number of phases + 2} --completion-promise "{COMPLETION_PROMISE}"
Output the command block above so it can be copied and used directly.
### Phase N block is processed in one iteration- [ ] sub-items under each PhaseIn addition to items explicitly excluded by the plan, infer and add: