with one click
ralplan
Structured planning discipline with self-critique before execution
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Structured planning discipline with self-critique before execution
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
RESTful API design patterns, endpoint naming, versioning, and error handling
Generates user-facing changelogs from git commits using conventional commit format
Structured interview workflow for requirements gathering before coding
Docker build optimization, multi-stage builds, and deployment workflows
Reviews Go code for idioms, error handling, concurrency, and performance patterns
Auto-generate hierarchical AGENTS.md files at key directory levels
| name | ralplan |
| description | Structured planning discipline with self-critique before execution |
| version | 1.0.0 |
| author | graycode |
| license | MIT |
| category | workflow |
| tags | ["planning","review","critique","discipline","methodology"] |
| allowed-tools | Read Grep Glob Bash |
A structured planning method that forces plan self-critique before execution. Prevents premature coding and catches design flaws early.
Review → Analyze → List → Plan → Act → Note
Understand the full picture before proposing changes.
1. Read the task description and acceptance criteria
2. Read all affected files completely
3. Identify the current architecture and patterns
4. Note existing conventions (naming, error handling, testing)
5. Check for related past decisions (git log, ADRs, comments)
Output: A "Current State" summary — what exists today and why.
Identify the gap between current state and desired state.
1. What needs to change? (specific files, functions, types)
2. What should NOT change? (preservation constraints)
3. What are the risks? (breaking changes, performance regression, security)
4. What are the dependencies? (ordering, external APIs, shared types)
5. What are the unknowns? (things that need investigation before coding)
Output: A "Gap Analysis" — delta between current and target state.
Break the work into discrete, ordered steps.
1. Each step should be independently testable
2. Steps should be ordered to minimize risk (foundational changes first)
3. Each step should have a clear "done" criterion
4. Identify which steps can be parallelized
5. Estimate relative complexity (S/M/L) per step
Output: An ordered checklist of implementation steps.
This is the critical phase. Review the plan from Phase 3 and actively try to find flaws.
Critique questions:
Revised plan: Update the step list based on critique findings. Add risk mitigation steps where needed.
Output: A "Critiqued Plan" — the revised, reviewed step list.
Execute the plan step by step.
1. For each step:
a. Implement the change
b. Run relevant tests
c. Verify the "done" criterion
d. If blocked, stop and re-plan (don't skip ahead)
2. After all steps: run full test suite
3. Review the diff as if reviewing someone else's PR
Output: Working code that passes all tests.
Document what was done and what was learned.
1. Update relevant documentation (README, API docs, changelog)
2. Add inline comments for non-obvious decisions
3. Note any technical debt created or resolved
4. Record any deviations from the plan and why
5. Update acceptance criteria with actual outcomes
Output: Documentation, commit message, and lessons learned.
When modifying a public interface:
When restructuring existing code:
When adding new functionality:
Before declaring the plan complete: