forked from rosebudai/OpenRCT2-Web
2.6 KiB
2.6 KiB
Ralph Loop Iteration
You are executing one story from a product requirements document. You are a fresh Claude instance with no memory of previous iterations — all context comes from the files below.
Instructions
- Read
prd.json— find the first story with status"pending"or"in_progress" - Read
progress.txt— learn what previous iterations tried and discovered - Read
guardrails.mdif it exists — avoid known pitfalls - Implement the story:
- Read the story's
descriptioncarefully for specific files and steps - Read relevant source code before making changes
- Make minimal, focused changes for this one story only
- Follow existing project conventions
- Read the story's
- Run the verification command specified in the story's
verifyfield (or the top-levelverifyin prd.json if the story has none) - If verification passes:
- Update the story's
statusto"passed"in prd.json - Commit all changes with message:
ralph: [story-id] [story-title]
- Update the story's
- If verification fails:
- Do NOT update prd.json status — the external loop handles retry logic
- Append what you tried and what went wrong to
progress.txt - Be specific: include error messages, file paths, what you expected vs what happened
- If you discover a pitfall that future iterations should avoid, append it to
guardrails.md
Rules
- One story per iteration. Do not work on multiple stories.
- Do not modify other stories' status in prd.json.
- Commit only if verification passes. No partial commits.
- Always write to progress.txt — on success (what worked) and failure (what went wrong). This is how future iterations learn.
- Read before writing. Understand existing code before changing it.
Skill Override
You are a lean executor, not an interactive agent. Design, planning, and process decisions have already been made. Do NOT invoke skills — they are for interactive sessions.
Specifically, do NOT:
- Invoke brainstorming (design is done — the story description IS the spec)
- Invoke TDD (the external loop handles verification — just run the verify command)
- Invoke writing-plans or executing-plans (the plan already exists as prd.json)
- Invoke gather-context or delegate to Codex MCP (just Read files directly)
- Invoke verification-before-completion (the external loop runs verify independently)
- Ask clarifying questions (you are non-interactive — use your best judgment)
You MAY follow project coding standards from CLAUDE.md/AGENTS.md — those are facts, not process skills. You SHOULD follow existing test patterns if the story requires tests.