1
0
Source

Iterative planning with Planner, Architect, and Critic until consensus

Install

mkdir -p .claude/skills/ralplan && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3763" && unzip -o skill.zip -d .claude/skills/ralplan && rm skill.zip

Installs to .claude/skills/ralplan

About this skill

Ralplan (Consensus Planning Alias)

Ralplan is a shorthand alias for /oh-my-claudecode:omc-plan --consensus. It triggers iterative planning with Planner, Architect, and Critic agents until consensus is reached, with RALPLAN-DR structured deliberation (short mode by default, deliberate mode for high-risk work).

Usage

/oh-my-claudecode:ralplan "task description"

Flags

  • --interactive: Enables user prompts at key decision points (draft review in step 2 and final approval in step 6). Without this flag the workflow runs fully automated — Planner → Architect → Critic loop — and outputs the final plan without asking for confirmation.
  • --deliberate: Forces deliberate mode for high-risk work. Adds pre-mortem (3 scenarios) and expanded test planning (unit/integration/e2e/observability). Without this flag, deliberate mode can still auto-enable when the request explicitly signals high risk (auth/security, migrations, destructive changes, production incidents, compliance/PII, public API breakage).
  • --architect codex: Use Codex for the Architect pass when Codex CLI is available. Otherwise, briefly note the fallback and keep the default Claude Architect review.
  • --critic codex: Use Codex for the Critic pass when Codex CLI is available. Otherwise, briefly note the fallback and keep the default Claude Critic review.

Usage with interactive mode

/oh-my-claudecode:ralplan --interactive "task description"

Behavior

This skill invokes the Plan skill in consensus mode:

/oh-my-claudecode:omc-plan --consensus <arguments>

The consensus workflow:

  1. Planner creates initial plan and a compact RALPLAN-DR summary before review:
    • Principles (3-5)
    • Decision Drivers (top 3)
    • Viable Options (>=2) with bounded pros/cons
    • If only one viable option remains, explicit invalidation rationale for alternatives
    • Deliberate mode only: pre-mortem (3 scenarios) + expanded test plan (unit/integration/e2e/observability)
  2. User feedback (--interactive only): If --interactive is set, use AskUserQuestion to present the draft plan plus the Principles / Drivers / Options summary before review (Proceed to review / Request changes / Skip review). Otherwise, automatically proceed to review.
  3. Architect reviews for architectural soundness and must provide the strongest steelman antithesis, at least one real tradeoff tension, and (when possible) synthesis — await completion before step 4. In deliberate mode, Architect should explicitly flag principle violations.
  4. Critic evaluates against quality criteria — run only after step 3 completes. Critic must enforce principle-option consistency, fair alternatives, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. In deliberate mode, Critic must reject missing/weak pre-mortem or expanded test plan.
  5. Re-review loop (max 5 iterations): Any non-APPROVE Critic verdict (ITERATE or REJECT) MUST run the same full closed loop: a. Collect Architect + Critic feedback b. Revise the plan with Planner c. Return to Architect review d. Return to Critic evaluation e. Repeat this loop until Critic returns APPROVE or 5 iterations are reached f. If 5 iterations are reached without APPROVE, present the best version to the user
  6. On Critic approval (--interactive only): If --interactive is set, use AskUserQuestion to present the plan with approval options (Approve and implement via team (Recommended) / Approve and execute via ralph / Clear context and implement / Request changes / Reject). Final plan must include ADR (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups). Otherwise, output the final plan and stop.
  7. (--interactive only) User chooses: Approve (team or ralph), Request changes, or Reject
  8. (--interactive only) On approval: invoke Skill("oh-my-claudecode:team") for parallel team execution (recommended) or Skill("oh-my-claudecode:ralph") for sequential execution -- never implement directly

Important: Steps 3 and 4 MUST run sequentially. Do NOT issue both agent Task calls in the same parallel batch. Always await the Architect result before issuing the Critic Task.

Follow the Plan skill's full documentation for consensus mode details.

Pre-Execution Gate

Why the Gate Exists

Execution modes (ralph, autopilot, team, ultrawork, ultrapilot) spin up heavy multi-agent orchestration. When launched on a vague request like "ralph improve the app", agents have no clear target — they waste cycles on scope discovery that should happen during planning, often delivering partial or misaligned work that requires rework.

The ralplan-first gate intercepts underspecified execution requests and redirects them through the ralplan consensus planning workflow. This ensures:

  • Explicit scope: A PRD defines exactly what will be built
  • Test specification: Acceptance criteria are testable before code is written
  • Consensus: Planner, Architect, and Critic agree on the approach
  • No wasted execution: Agents start with a clear, bounded task

Good vs Bad Prompts

Passes the gate (specific enough for direct execution):

  • ralph fix the null check in src/hooks/bridge.ts:326
  • autopilot implement issue #42
  • team add validation to function processKeywordDetector
  • ralph do:\n1. Add input validation\n2. Write tests\n3. Update README
  • ultrawork add the user model in src/models/user.ts

Gated — redirected to ralplan (needs scoping first):

  • ralph fix this
  • autopilot build the app
  • team improve performance
  • ralph add authentication
  • ultrawork make it better

Bypass the gate (when you know what you want):

  • force: ralph refactor the auth module
  • ! autopilot optimize everything

When the Gate Does NOT Trigger

The gate auto-passes when it detects any concrete signal. You do not need all of them — one is enough:

Signal TypeExample promptWhy it passes
File pathralph fix src/hooks/bridge.tsReferences a specific file
Issue/PR numberralph implement #42Has a concrete work item
camelCase symbolralph fix processKeywordDetectorNames a specific function
PascalCase symbolralph update UserModelNames a specific class
snake_case symbolteam fix user_modelNames a specific identifier
Test runnerralph npm test && fix failuresHas an explicit test target
Numbered stepsralph do:\n1. Add X\n2. Test YStructured deliverables
Acceptance criteriaralph add login - acceptance criteria: ...Explicit success definition
Error referenceralph fix TypeError in authSpecific error to address
Code blockralph add: \``ts ... ````Concrete code provided
Escape prefixforce: ralph do it or ! ralph do itExplicit user override

End-to-End Flow Example

  1. User types: ralph add user authentication
  2. Gate detects: execution keyword (ralph) + underspecified prompt (no files, functions, or test spec)
  3. Gate redirects to ralplan with message explaining the redirect
  4. Ralplan consensus runs:
    • Planner creates initial plan (which files, what auth method, what tests)
    • Architect reviews for soundness
    • Critic validates quality and testability
  5. On consensus approval, user chooses execution path:
    • team: parallel coordinated agents (recommended)
    • ralph: sequential execution with verification
  6. Execution begins with a clear, bounded plan

Troubleshooting

IssueSolution
Gate fires on a well-specified promptAdd a file reference, function name, or issue number to anchor the request
Want to bypass the gatePrefix with force: or ! (e.g., force: ralph fix it)
Gate does not fire on a vague promptThe gate only catches prompts with <=15 effective words and no concrete anchors; add more detail or use /ralplan explicitly
Redirected to ralplan but want to skip planningIn the ralplan workflow, say "just do it" or "skip planning" to transition directly to execution

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

261780

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

200412

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

176269

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

203229

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

161194

rust-coding-skill

UtakataKyosui

Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.

159171

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.