一键导入
ralph-loop-template
Generates iterable checklist PROMPT files for Ralph Loop from plan files or current context, and provides the /ralph-loop execution command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates iterable checklist PROMPT files for Ralph Loop from plan files or current context, and provides the /ralph-loop execution command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Decide how elaborate to build something (simple vs. robust) and return a concrete, PoC-shaped proposal at that level — not over- or under-engineered, but right-sized. Use whenever someone is building something and the investment level is unclear: "quick or proper?", "MVP vs. real product", "is this over-engineering?", "how should I approach X?", "quick script vs. robust system", "how much architecture?", "how much do I build here?". Fires even without "poc" or "right-size" — any time effort and complexity of what to build are being weighed.
Decide how elaborate to build something (simple vs. robust) and return a concrete, PoC-shaped proposal at that level — not over- or under-engineered, but right-sized. Use whenever someone is building something and the investment level is unclear: "quick or proper?", "MVP vs. real product", "is this over-engineering?", "how should I approach X?", "quick script vs. robust system", "how much architecture?", "how much do I build here?". Fires even without "poc" or "right-size" — any time effort and complexity of what to build are being weighed.
Trace git history of specific code — find when functions, patterns, or files were added, modified, or removed, and explain the intent behind each change.
Turn code changes into a single-file HTML code review report that pairs the diff with context a diff can't show — design decisions, rejected alternatives, tradeoffs, unfinished work — plus prioritized review points. Use when preparing for review after finishing a sizable change, refactor, or feature, or whenever the user asks for a review report, change report, or an HTML summary of their changes.
Turn code, specs, a PR, or the current conversation into a QA test-case list a non-developer can read and run, exported as CSV, a shareable HTML report, or both. Trigger when the user wants QA test cases, a test plan, a QA checklist, or a test-case CSV/HTML (e.g. "write test cases for this", "make a QA list"). Output uses behavior-and-scenario language, never code symbols like function names or file paths. Not for writing or running automated test code (pytest/jest), code review, or test-strategy docs.
Render an interactive HTML board for the user to pick among multiple comparable options side-by-side at once — engineering trade-offs, copy audits, action-item triage, architecture decisions, policy calls. Returns the picks (and optional hold/note flags) as a JSON file the agent can apply.
| name | ralph-loop-template |
| version | 0.0.2 |
| category | development |
| description | Generates iterable checklist PROMPT files for Ralph Loop from plan files or current context, and provides the /ralph-loop execution command. |
| requires | [ralph-wiggum](https://github.com/anthropics/claude-code/tree/main/plugins/ralph-wiggum) |
| disable-model-invocation | true |
| argument-hint | [plan file path] |
$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: