agentleFS
mrzhangguoguomrzhangguoguo/oh-my-workbuddy/skills/ralplan/SKILL.md

ralplan

Skill2 starsChanged 5 months agoMITView on GitHub

Alias for plan --consensus. Triggers iterative Planner→Architect→Critic consensus planning with RALPLAN-DR structured deliberation. Use when you want multi-perspective sign-off on a plan before execution. Triggers: 'ralplan', 'consensus plan', 'plan --consensus'.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If Architect is missing/blocked, stay in Architect review or report the blocker.

    line 58
  2. Distinctive:

    When ralplan outputs a handoff, include:

    line 61

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ported from oh-my-codex ralplan. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).

Ralplan (Consensus Planning Alias)

Ralplan is a shorthand alias for plan --consensus. It triggers iterative planning with Planner, Architect, and Critic roles until consensus is reached, with RALPLAN-DR structured deliberation (short mode by default, deliberate mode for high-risk work). An advisory ontology reviewer (Scholastic-style) may inform the plan for ontology-heavy evidence but is not part of the durable consensus gate.

Usage

ralplan "task description"
ralplan --interactive "task description"
ralplan --deliberate "task description"

Flags

  • --interactive: Enables user prompts at key decision points (draft review and final approval). Without it the workflow runs fully automated and outputs the final plan.
  • --deliberate: Forces deliberate mode for high-risk work (adds pre-mortem + expanded test planning). Can also auto-enable when the request signals high risk (auth/security, migrations, destructive changes, production incidents, compliance/PII, public API breakage).

Behavior

This skill simply invokes the plan skill in consensus mode:

skill: plan   (with consensus; add --interactive / --deliberate as requested)

The consensus workflow (full detail in the plan skill):

  1. Planner creates an adaptive plan (right-sized, not exactly five steps) and a compact RALPLAN-DR summary (Principles 3-5, Decision Drivers top 3, Viable Options ≥2 with bounded pros/cons; invalidation rationale if only one remains; deliberate mode adds pre-mortem + expanded test plan).
  2. User feedback (--interactive only): present the draft + Principles/Drivers/Options via AskUserQuestion (Proceed to review / Request changes / Skip review). Otherwise auto-proceed.
  3. Architect reviews for soundness via a separate Agent call (strongest steelman antithesis, a real tradeoff tension, synthesis); await completion before step 4.
  4. Critic evaluates via a separate Agent call, only after step 3 (principle-option consistency, fair alternatives, risk clarity, testable criteria, verification steps).
  5. Re-review loop (max 5): any non-APPROVE verdict re-runs Planner→Architect→Critic until APPROVE or 5 iterations; then present the best version.
  6. On Critic approval (--interactive only): present approval options via AskUserQuestion (ultragoal / team / explicit ralph fallback / specialized goal-mode follow-up / Request changes / Reject). Final plan includes ADR, available-agent-types roster, staffing guidance, team launch hints, team verification path, Goal-Mode Follow-up Suggestions. Otherwise output the final plan and stop.
  7. (--interactive only) On approval: invoke ultragoal (default), team, the selected specialized goal-mode follow-up (autoresearch-goal / performance-goal), or ralph only when explicitly selected — never implement directly.

Steps 3 and 4 MUST run sequentially as role-specific Agent calls. Always await the Architect result before the Critic call.

Planning / Execution Boundary

Ralplan is a planning mode. While active with no explicit execution handoff, implementation write tools are out of scope. It may inspect the repo and write only planning artifacts (.omw/context/, .omw/plan/, .omw/specs/, task-list/state records).

Canonical flow: ralplan -> durable consensus artifact -> explicit execution lane -> ultragoal | team | ralph.

Durable Consensus Handoff Contract

Ralplan is not complete merely because .omw/plan/prd-*.md and .omw/plan/test-spec-*.md exist — those are planning artifacts, not consensus evidence. Before any execution handoff, persist a durable handoff record distinguishing:

  • planning_artifacts: PRD/test-spec paths.
  • ralplan_architect_review: completed Architect review with approving verdict.
  • ralplan_critic_review: completed Critic review with approving verdict, recorded only after Architect.
  • ralplan_consensus_gate.complete: true only when both reviews are present, approving, and in Architect→Critic order.

If Architect is missing/blocked, stay in Architect review or report the blocker. If Critic is missing/blocked/non-approving, stay in Critic/re-review or report the max-iteration outcome.

Goal-Mode Follow-up Suggestions

When ralplan outputs a handoff, include:

  • ultragoal — default goal-mode follow-up for durable sequential completion tracking.
  • autoresearch-goal — research projects with a research deliverable/evaluator.
  • performance-goal — optimization/performance work with measurable criteria.
  • team — first-class parallel execution option.
  • ralph — explicit fallback only when persistent single-owner verification is intentionally selected.

For parallelizable durable-goal delivery, recommend ultragoal + team together.

Pre-context Intake

Before consensus planning or execution handoff, ensure a grounded context snapshot exists at .omw/ralph/context-{slug}-{timestamp}.md (task statement, outcome, known facts, constraints, unknowns, touchpoints). Reuse the latest relevant snapshot when available. If ambiguity is high, gather brownfield facts via repository inspection, then run deep-interview --quick <task>. For external/official docs, invoke best-practice-research before finalizing the handoff. Do not hand off to execution until intake is complete; if urgency forces progress, document risk tradeoffs explicitly.

Pre-Execution Gate

Execution modes spin up heavy multi-agent orchestration and waste cycles on vague requests. Ralplan-first intercepts underspecified execution requests (e.g. "ralph add authentication") and redirects them through consensus planning. The gate auto-passes when any concrete signal is present (file path, issue/PR number, camelCase/snake_case symbol, test runner, numbered steps, acceptance criteria, error reference, code block, or an explicit force:/! override). One signal is enough.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.