plugins/ralph-loop-template/skills/SKILL.md
Generates iterable checklist PROMPT files for Ralph Loop from plan files or current context, and provides the /ralph-loop execution command.
npx skillsauth add 2ykwang/agent-skills ralph-loop-templateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
$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:
development
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.
development
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.
data-ai
File a GitHub issue maintainers can actually act on — verified, not a duplicate, follows repo conventions (template/label/prefix), and previewed before publishing. Use when reporting a known problem.
data-ai
File a GitHub issue maintainers can actually act on — verified, not a duplicate, follows repo conventions (template/label/prefix), and previewed before publishing. Use when reporting a known problem.