Provides structured requirements gathering and multi-perspective consensus planning to prevent scope creep.
Install
mkdir -p .claude/skills/plan-yangyuan-zhen && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17500" && unzip -o skill.zip -d .claude/skills/plan-yangyuan-zhen && rm skill.zipInstalls to .claude/skills/plan-yangyuan-zhen
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
[OMX] Strategic planning with optional interview workflowKey capabilities
- →Auto-detect interview vs direct planning mode
- →Gather codebase facts via `explore` agent
- →Create complete work plans
- →Conduct Critic evaluation of existing plans
- →Facilitate multi-perspective consensus with RALPLAN-DR
How it works
The skill auto-detects if an interview or direct plan is needed, gathers codebase facts, and then creates a plan, optionally involving Architect/Critic loops for consensus or review.
Inputs & outputs
When to use plan
- →Plan a new feature
- →Gather project requirements
- →Review an existing plan
- →Run a consensus-based planning session
About this skill
<Use_When>
- User wants to plan before implementing -- "plan this", "plan the", "let's plan"
- User wants structured requirements gathering for a vague idea
- User wants an existing plan reviewed -- "review this plan",
--review - User wants multi-perspective consensus on a plan --
--consensus, "ralplan" - Task is broad or vague and needs scoping before any code is written </Use_When>
<Do_Not_Use_When>
- User wants autonomous end-to-end execution -- use
autopilotinstead - User wants to start coding immediately with a clear task -- use
ralphor delegate to executor - User asks a simple question that can be answered directly -- just answer it
- Task is a single focused fix with obvious scope -- skip planning, just do it </Do_Not_Use_When>
<Why_This_Exists> Jumping into code without understanding requirements leads to rework, scope creep, and missed edge cases. Plan provides structured requirements gathering, expert analysis, and quality-gated plans so that execution starts from a solid foundation. The consensus mode adds multi-perspective validation for high-stakes projects. </Why_This_Exists>
<Execution_Policy>
- Auto-detect interview vs direct mode based on request specificity
- Ask one question at a time during interviews -- never batch multiple questions
- Gather codebase facts via
exploreagent before asking the user about them - When session guidance enables
USE_OMX_EXPLORE_CMD, preferomx explorefor simple read-only repository lookups during planning; keep prompts narrow and concrete, and keep prompt-heavy or ambiguous planning work on the richer normal path and fall back normally ifomx exploreis unavailable. - Plans must meet quality standards: 80%+ claims cite file/line, 90%+ criteria are testable
- Implementation step count must be right-sized to task scope; avoid defaulting to exactly five steps when the work is clearly smaller or larger
- Consensus mode outputs the final plan by default; add
--interactiveto enable execution handoff - Consensus mode uses RALPLAN-DR short mode by default; switch to deliberate mode with
--deliberateor when the request explicitly signals high risk (auth/security, data migration, destructive/irreversible changes, production incident, compliance/PII, public API breakage) - Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail
- Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints
- If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the plan is grounded
- Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent </Execution_Policy>
Mode Selection
| Mode | Trigger | Behavior |
|---|---|---|
| Interview | Default for broad requests | Interactive requirements gathering |
| Direct | --direct, or detailed request | Skip interview, generate plan directly |
| Consensus | --consensus, "ralplan" | Planner -> Architect -> Critic loop until agreement with RALPLAN-DR structured deliberation (short by default, --deliberate for high-risk); outputs plan by default |
| Consensus Interactive | --consensus --interactive | Same as Consensus but pauses for user feedback at draft and approval steps, then hands off to execution |
| Review | --review, "review this plan" | Critic evaluation of existing plan |
Interview Mode (broad/vague requests)
- Classify the request: Broad (vague verbs, no specific files, touches 3+ areas) triggers interview mode
- Ask one focused question using
AskUserQuestionfor preferences, scope, and constraints - Gather codebase facts first: Before asking "what patterns does your code use?", spawn an
exploreagent to find out, then ask informed follow-up questions - Build on answers: Each question builds on the previous answer
- Consult Analyst (THOROUGH tier) for hidden requirements, edge cases, and risks
- Create plan when the user signals readiness: "create the plan", "I'm ready", "make it a work plan"
Direct Mode (detailed requests)
- Quick Analysis: Optional brief Analyst consultation
- Create plan: Generate comprehensive work plan immediately
- Review (optional): Critic review if requested
Consensus Mode (--consensus / "ralplan")
RALPLAN-DR modes: Short (default, bounded structure) and Deliberate (for --deliberate or explicit high-risk requests). Both modes keep the same Planner -> Architect -> Critic sequence. The workflow auto-proceeds through planning steps (Planner/Architect/Critic) but outputs the final plan without executing.
- Planner creates initial plan and a compact RALPLAN-DR summary before any Architect review. The summary MUST include:
- Principles (3-5)
- Decision Drivers (top 3)
- Viable Options (>=2) with bounded pros/cons for each option
- If only one viable option remains, an explicit invalidation rationale for the alternatives that were rejected
- In deliberate mode: a pre-mortem (3 failure scenarios) and an expanded test plan covering unit / integration / e2e / observability
- User feedback (--interactive only): If running with
--interactive, MUST useAskUserQuestionto present the draft plan plus the RALPLAN-DR Principles / Decision Drivers / Options summary for early direction alignment with these options:- Proceed to review — send to Architect and Critic for evaluation
- Request changes — return to step 1 with user feedback incorporated
- Skip review — go directly to final approval (step 7)
If NOT running with
--interactive, automatically proceed to review (step 3).
- Architect reviews for architectural soundness using
ask_codexwithagent_role: "architect". Architect review MUST include: strongest steelman counterargument (antithesis) against the favored option, at least one meaningful tradeoff tension, and (when possible) a synthesis path. In deliberate mode, Architect should explicitly flag principle violations. Wait for this step to complete before proceeding to step 4. Do NOT run steps 3 and 4 in parallel. - Critic evaluates against quality criteria using
ask_codexwithagent_role: "critic". Critic MUST verify principle-option consistency, fair alternative exploration, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. Critic MUST explicitly reject shallow alternatives, driver contradictions, vague risks, or weak verification. In deliberate mode, Critic MUST reject missing/weak pre-mortem or missing/weak expanded test plan. Run only after step 3 is complete. - Re-review loop (max 5 iterations): If Critic rejects or iterates, execute this closed loop:
a. Collect all feedback from Architect + Critic
b. Pass feedback to Planner to produce a revised plan
c. Return to Step 3 — Architect reviews the revised plan
d. Return to Step 4 — Critic evaluates the revised plan
e. Repeat until Critic approves OR max 5 iterations reached
f. If max iterations reached without approval, present the best version to user via
AskUserQuestionwith note that expert consensus was not reached - Apply improvements: When reviewers approve with improvement suggestions, merge all accepted improvements into the plan file before proceeding. Final consensus output MUST include an ADR section with: Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups. Specifically:
a. Collect all improvement suggestions from Architect and Critic responses
b. Deduplicate and categorize the suggestions
c. Update the plan file in
.omx/plans/with the accepted improvements (add missing details, refine steps, strengthen acceptance criteria, ADR updates, etc.) d. Note which improvements were applied in a brief changelog section at the end of the plan e. Before any execution handoff, derive an explicit available-agent-types roster from the known prompt catalog and add concrete follow-up staffing guidance for both$ralphand$team(recommended roles, counts, suggested reasoning levels by lane, and why each lane exists) f. For the$teampath, add an explicit launch-hint block with concreteomx team/$teamcommands and a team verification path (what team proves before shutdown, what Ralph verifies after handoff) - On Critic approval (with improvements applied): (--interactive only) If running with
--interactive, useAskUserQuestionto present the plan with these options:- Approve and execute — proceed to implementation via ralph+ultrawork
- Approve and implement via team — proceed to implementation via coordinated parallel team agents
- Request changes — return to step 1 with user feedback
- Reject — discard the plan entirely
If NOT running with
--interactive, output the final approved plan and stop. Do NOT auto-execute.
- (--interactive only) User chooses via the structured
AskUserQuestionUI (never ask for approval in plain text) - On user approval (--interactive only):
- Approve and execute: MUST invoke
$ralphwith the approved plan path from.omx/plans/as context **plus the explicit available-agent-types roster, suggested reasoning levels, concrete role allocation guidance, and direct lau
- Approve and execute: MUST invoke
Content truncated.
When not to use it
- →When the task is a single focused fix with obvious scope
Limitations
- →Does not implement the plan
- →Does not start coding immediately
- →Does not answer simple questions directly
How it compares
This skill provides structured requirements gathering, expert analysis, and quality-gated plans with optional consensus and review modes, unlike directly implementing a feature.
Compared to similar skills
plan side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| plan (this skill) | 0 | 3mo | No flags | Advanced |
| create-plan | 36 | 7mo | Review | Beginner |
| project-planner | 32 | 9mo | Review | Intermediate |
| system-design | 19 | 8mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by yangyuan-zhen
View all by yangyuan-zhen →You might also like
create-plan
antinomyhq
Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. Use when users need thorough analysis and structured planning before implementation, when breaking down complex features into actionable steps, or when they explicitly ask for a plan, roadmap, or strategy. Strictly planning-focused with no code modifications.
project-planner
adrianpuiu
Comprehensive project planning and documentation generator for software projects. Creates structured requirements documents, system design documents, and task breakdown plans with implementation tracking. Use when starting a new project, defining specifications, creating technical designs, or breaking down complex systems into implementable tasks. Supports user story format, acceptance criteria, component design, API specifications, and hierarchical task decomposition with requirement traceability.
system-design
lagz0ne
Use when designing, architecting, or planning a new system from requirements or ideas - transforms concepts into navigable design catalog using EventStorming methodology, Mermaid diagrams, and progressive elaboration through 5 phases (Requirements, Big Picture, Processes, Data/Flows, Integration)
spec-kit-workflow
jmanhype
Guides specification-driven development workflow. Automatically invoked when discussing new features, specifications, technical planning, or implementation tasks. Ensures proper workflow phases (specify → clarify → plan → checklist → tasks → analyze → implement).
sparc-methodology
ruvnet
SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration
spec-workflow
TencentCloudBase
Standard software engineering workflow for requirement analysis, technical design, and task planning. Use this skill when developing new features, complex architecture designs, multi-module integrations, or projects involving database/UI design.