/rune:planfrom rune
Creates structured implementation plans from requirements, producing a master plan with separate phase files for multi-file tasks. Useful when a task needs architecture decisions or breaking down into phases.
Ships in rune. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Strategic planning engine for the Rune ecosystem. Produces a master plan + phase files architecture — NOT a single monolithic plan. The master plan is a concise overview (<80 lines) that references separate phase files, each containing enough detail (<200 lines) that ANY model can execute with high accuracy.
Design principle: Plan for the weakest coder. Phase files are designed so that even an Amateur-level model (Haiku) can execute them with minimal errors. When the plan satisfies the Amateur's needs, every model benefits — Junior (Sonnet) executes near-perfectly, Senior (Opus) executes flawlessly.
This is enterprise-grade project management: BA produces WHAT → Plan produces HOW (structured into phases) → ANY coder executes each phase with full context.
NEVER produce a single monolithic plan file for non-trivial tasks. Non-trivial = 3+ phases OR 5+ files OR estimated > 100 LOC total change. For non-trivial tasks: MUST produce master plan + separate phase files. For trivial tasks (1-2 phases, < 5 files): inline plan is acceptable.Goal-first — leverage native goal/outcome commands (advisory, 2026). Current agent models (Claude Opus / Sonnet / Fable 5.x, GPT-6.x, Gemini 4) perform best when handed the full goal + constraints up front, then left to execute at high effort. Some platforms now expose this natively: Claude Code
/goalsets a run's north-star; Managed Agents Outcomes (user.define_outcome+ rubric) grade-and-iterate to a target. The master plan IS that goal contract in durable form — when a native goal/outcome command is present, seed it from the master plan's Overview + acceptance criteria instead of re-stating the goal loosely. Advisory only: the master plan + phase files stay the source of truth on every platform (goal/Outcome are single-session; the plan survives across sessions and platforms).
.rune/
plan-<feature>.md ← Master plan: phases overview, goals, status tracker (<80 lines)
plan-<feature>-phase1.md ← Phase 1 detail: tasks, acceptance criteria, files to touch (<200 lines)
plan-<feature>-phase2.md ← Phase 2 detail
...
| File | Max Lines | Content |
|---|---|---|
| Master plan | 80 lines | Overview, phase table, key decisions, status |
| Phase file | 200 lines | Amateur-proof template: data flow, contracts, tasks, failures, NFRs, rejections, cross-phase |
| Total phases | Max 8 | If > 8 phases, split into sub-projects |
Standard implementation planning — decompose task into phased steps with code details.
Product-oriented planning — write a feature specification before implementation.
Triggers: user says "spec", "feature spec", "write spec", "PRD" — or /rune plan spec <feature>
High-level multi-feature planning — organize features into milestones.
Triggers: user says "roadmap", "milestone", "release plan", "what to build next" — or /rune plan roadmap
cook when task scope > 1 file (Implementation Mode)team for high-level task decomposition/rune plan <task> — manual planning/rune plan spec <feature> — feature specification/rune plan roadmap — roadmap planningscout (L2): scan codebase for existing patterns, conventions, and structurebrainstorm (L2): when multiple valid approaches existadversary (L2): optional red-team gate on critical plan output (features touching auth, payments, or data integrity)research (L3): external knowledge lookupsequential-thinking (L3): complex architecture with many trade-offsneural-memory | Before architecture decisions | Recall past decisions on similar problemscook (L1): Phase 2 PLANteam (L1): task decomposition into parallel workstreamsbrainstorm (L2): when idea needs structuringrescue (L1): plan refactoring strategyba (L2): hand-off after requirements completescaffold (L1): Phase 3 architecture planningskill-forge (L2): plan structure for new skill/rune plan direct invocationdebug (L2): when root cause requires architectural changesretro (L2): reference past plans during retrospective analysiscook (L1): master plan + phase files → cook's Phase 2-4 execution roadmapteam (L1): task decomposition + wave grouping → team's parallel workstream dispatchfix (L2): phase file tasks → fix's implementation targetstest (L2): phase file test tasks → test's RED phase targetsba (L2): Requirements Document → plan's primary input (locked decisions, user stories)scout (L2): codebase analysis → plan's convention/pattern awarenessneural-memory (external): past architectural decisions → plan's precedent contextsentinel (L2): repeated security blocks → plan's constraint awareness for future featuresplan ↔ brainstorm: plan requests options when multiple approaches exist → brainstorm generates options → plan selects and structures the chosen approachplan ↔ cook: cook discovers plan gaps during implementation → plan updates phase files → cook resumes with corrected tasksCheck for .rune/features/*/requirements.md via Glob. If a Requirements Document exists (from rune:ba), read it — it contains user stories, acceptance criteria, scope, constraints. Do NOT re-gather what BA already elicited.
If project.onboarded signal was received, scout output is already available in session context — skip re-invoking scout.
Invoke rune:scout if not already done — plans without context produce wrong file paths. Call neural-memory (Recall Mode) to surface past architecture decisions before making new ones.
Feature Map: Check for .rune/features.md via Glob. If it exists, read it — understand the existing feature landscape, dependencies, and known gaps BEFORE planning. Cross-reference: does the new feature overlap, conflict with, or depend on existing features? If .rune/features.md does not exist, note this — Step 6.5 will create it.
Determine inline plan vs master + phase files:
| Criteria | Inline Plan | Master + Phase Files |
|---|---|---|
| Phases | 1-2 | 3+ |
| Files touched | < 5 | 5+ |
| Estimated LOC | < 100 | 100+ |
| Cross-module | No | Yes |
| Session span | Single session | Multi-session |
If ANY "Master + Phase Files" criterion is true → produce master plan + phase files.
Group work into phases. Each phase: completable in one session, clear "done when", produces testable output, independent enough to run without other phases loaded.
Vertical slices over horizontal layers: each task within a phase MUST be a tracer-bullet slice (schema + API + UI + test, end-to-end), NOT a single-layer chunk. Horizontal slicing ("all models → all APIs → all UI") looks organized but blocks on the slowest layer. See references/vertical-slice.md for slice rules, AFK vs HITL classification, and the per-task slice template.
Phase decomposition rules:
references/vertical-slice.md for tracer-bullet template, AFK/HITL labels, granularity rules).rune/features/<name>/tasks.md exists, its ## US-n sections map to slices — refine them, do NOT flatten back into layer groupsTasks within each phase MUST be organized into waves (parallel-safe groupings). See references/wave-planning.md.
Detect the boundary: requirements.md has a ## Key Entities section AND any user story renders a UI surface (page/screen/form/component) — OR the task description implies user interaction with persisted data (submit, save, login, search, checkout).
If the boundary exists, plan MUST emit — BEFORE writing phase files:
| Artifact | Location | Content |
|---|---|---|
data-model.md | .rune/features/<name>/ | Key Entities expanded: fields, types, validation rules, state transitions |
contracts/ | .rune/features/<name>/contracts/ | One file per interface: endpoint/function, request/response shape, error cases — each mapped to the US-n it serves |
quickstart.md | .rune/features/<name>/ | Runnable end-to-end validation: prerequisites, setup commands, per-story Independent Test steps, expected outcomes |
Rules:
ba (Upstream Inconsistency)Save to .rune/plan-<feature>.md. Use the Master Plan Template in references/plan-templates.md. Max 80 lines — no implementation details.
For complex features (4+ phases OR 3+ user-facing workflows): build a 4-view Workflow Registry before writing phase files. Catches orphaned components, unphased workflows, and missing state transitions at plan time.
Skip for: trivial tasks, inline plans, single-workflow features.
For each phase, save to .rune/plan-<feature>-phase<N>.md. Use the Amateur-Proof Template in references/plan-templates.md.
A phase missing ANY of sections 1-7 is INCOMPLETE — the weakest coder will guess wrong. Performance Constraints section is optional (only when NFRs apply).
When presenting alternatives (from brainstorm or Step 3), rate each Completeness X/10. Always recommend the higher-completeness option — with AI, the marginal cost of completeness is near-zero.
Task ID scheme: every task in a phase file carries the ID P<phase>-T<seq> — phase number + sequential position within that phase (P2-T3 = phase 2, task 3). Phase file task labels use this ID (see references/plan-templates.md). Coverage Summary, Traceability Matrix, and Change Stacking depends_on all reference tasks by this ID.
When BA requirements exist, build the Coverage Summary — every FR-n and US-n mapped to the task IDs that implement it:
## Coverage Summary
| Key | Priority | Tasks | Covered |
|-----|----------|-------|---------|
| US-1 | P1 | P1-T2, P1-T3, P2-T1 | ✅ |
| FR-3 | — | P2-T4 | ✅ |
| US-3 | P2 | — | ❌ deferred to v2 (explicit) |
A P1 story or its FRs with ZERO tasks = the plan is INCOMPLETE — do NOT present it for approval. Fix the plan first.
P2/P3 zero-coverage is allowed ONLY with an explicit deferral line in the master plan ("US-3 deferred to v2 — user-visible in Coverage Summary"), never silently.
Sequencing note: task IDs exist only AFTER Step 5 writes the phase files — so this step runs after Step 5, and you MUST go back and Edit the already-written master plan file (.rune/plan-<feature>.md) to insert the ## Coverage Summary section (before ## Architecture). Present the UPDATED master plan at Step 6. A master plan presented without its Coverage Summary is a Step 5.7 violation, not an oversight.
Size spillover: if the table exceeds ~15 rows, write the full table to .rune/plan-<feature>-coverage.md instead, and put a one-line pointer + the ❌/deferred rows only in the master plan (the 80-line cap stays intact; zero-coverage rows are never hidden in the spillover file).
Skip when no requirements.md exists (ad-hoc tasks).
Present the master plan to user (NOT all phase files). User reviews: phase breakdown, key decisions, risks, completeness scores, coverage summary. Wait for explicit approval ("go", "proceed", "yes") before writing phase files.
After plan approval, update .rune/features.md:
If .rune/features.md does NOT exist (first run):
.rune/features.md with Features table, Dependency Graph, Detected GapsIf .rune/features.md exists (subsequent runs):
.rune/features.mdSkip if: Inline plan for trivial task (no feature-level impact).
1. Cook loads master plan → identifies current phase (first ⬚ Pending)
2. Cook loads ONLY that phase's file
3. Coder executes tasks in the phase file
4. Mark tasks done in phase file as completed
5. When phase complete → update master plan status: ⬚ → ✅
6. Next session: load master plan → find next ⬚ phase → load phase file → execute
Model selection: Opus plans phases (this skill). Sonnet/Haiku executes them (cook → fix).
For trivial tasks (1-2 phases, < 5 files, < 100 LOC) — skip master + phase files. See inline plan template in references/plan-templates.md.
When cook encounters unexpected conditions during execution:
Trigger Conditions: Phase hits max debug-fix loops (3) | new files outside plan scope | dependency change | user requests scope change.
Re-Plan Protocol:
Full detail moved to
references/modes.md(progressive disclosure). Read that file before executing this section.
Full detail moved to
references/modes.md(progressive disclosure). Read that file before executing this section.
Master Plan (.rune/plan-<feature>.md): Overview, Phases table, Key Decisions, Decision Compliance, Architecture, Dependencies/Risks. Max 80 lines. See references/plan-templates.md.
Phase File (.rune/plan-<feature>-phase<N>.md): 7 mandatory sections (Amateur-Proof Template). Max 200 lines. Self-contained. See references/plan-templates.md.
Inline Plan (trivial tasks): Changes, Tests, Risks. See references/plan-templates.md.
Every plan output — master plan, phase file, or inline plan — MUST end with an Outcome Block containing: What Was Planned + Immediate Next Action (single action, imperative) + How to Measure table (at least one shell command).
Full detail moved to
references/change-stacking.md(progressive disclosure). Read that file before executing this section.
.rune/features.md after every non-trivial plan — feature map is a living artifact| Artifact | Format | Location |
|---|---|---|
| Master plan | Markdown | .rune/plan-<feature>.md |
| Phase files | Markdown | .rune/plan-<feature>-phase<N>.md (one per phase) |
| Feature spec | Markdown | .rune/features/<name>/spec.md (Feature Spec Mode only) |
| Data model | Markdown | .rune/features/<name>/data-model.md (Step 3.7 — UI↔data boundary only) |
| Interface contracts | Markdown (one per interface) | .rune/features/<name>/contracts/ (Step 3.7) |
| Quickstart validation | Markdown (executable steps) | .rune/features/<name>/quickstart.md (Step 3.7) |
| Roadmap | Markdown | .rune/roadmap.md (Roadmap Mode only) |
| Feature map | Markdown | .rune/features.md (auto-maintained) |
| Inline plan | Markdown (inline) | Emitted directly for trivial tasks |
Append to plan output when invoked standalone. Suppress when called as sub-skill inside an L1 orchestrator (cook, team, etc.) — the orchestrator emits a consolidated block. See docs/references/chain-metadata.md.
chain_metadata:
skill: "rune:plan"
version: "1.7.1"
status: "[DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED]"
domain: "[area planned]"
files_changed:
- "[.rune/plan-*.md files created]"
exports:
plan_file: "[.rune/plan-<feature>.md path]"
phase_count: [N]
estimated_complexity: "[low | medium | high]"
risk_areas: ["[domains with identified risks]"]
suggested_next:
- skill: "rune:adversary"
reason: "[grounded in plan — e.g., 'Plan touches auth + payments — stress-test assumptions']"
consumes: ["plan_file", "risk_areas"]
- skill: "rune:autopilot"
reason: "Plan approved — autonomous execution available (Pro tier, multi-session)"
consumes: ["plan_file", "phase_count"]
condition: "Pro tier installed AND phase_count >= 3 AND user signals autonomous intent"
- skill: "rune:cook"
reason: "Plan ready for execution"
consumes: ["plan_file", "phase_count"]
| Failure Mode | Severity | Mitigation |
|---|---|---|
| Monolithic plan file that overflows context | CRITICAL | HARD-GATE: non-trivial tasks MUST use master + phase files |
| Phase file too vague for Amateur to execute | CRITICAL | Amateur-Proof template: ALL 7 mandatory sections required |
| Coder uses wrong approach (toFixed for money, mutation) | CRITICAL | Rejection Criteria section: explicit "DO NOT" list prevents common traps |
| Coder doesn't handle errors properly | HIGH | Failure Scenarios table: when/then/error for EVERY error case |
| Coder doesn't know what other phases expect | HIGH | Cross-Phase Context: explicit imports/exports between phases |
| Coder over-engineers or under-engineers perf | HIGH | Performance Constraints: specific metrics with thresholds |
| Master plan contains implementation detail | HIGH | Max 80 lines, overview only — detail goes in phase files |
| Phase file references other phase files | HIGH | Phase files are self-contained — cross-phase section handles this |
| Plan without scout context — invented file paths | CRITICAL | Step 1: scout first, always |
| Phase with zero test tasks | CRITICAL | HARD-GATE rejects it |
| 10+ phases overwhelming the master plan | MEDIUM | Max 8 phases — split into sub-projects if more |
| Task without File path or Verify command | HIGH | Every task MUST have File + Test + Verify + Commit fields — no vague "implement the feature" tasks |
| Horizontal layer planning (all models → all APIs → all UI) | HIGH | Vertical slices parallelize better. Use wave-based grouping AND vertical-slice template (references/vertical-slice.md): each task = end-to-end path through schema/API/UI/test, demoable on its own |
| Slice not demoable on its own ("just the migration", "just the UI shell") | HIGH | Per references/vertical-slice.md — every slice produces a verifiable outcome. Layer-only fragments block downstream slices and hide partial completion |
| HITL slices marked liberally to enable "review" friction | MEDIUM | HITL is for hard blockers (OAuth setup, design decision, paid third-party access), not soft preferences. Default to AFK; use post-merge review for soft signals |
Tasks without depends_on in Wave 2+ | MEDIUM | Implicit dependencies break parallel dispatch. Every Wave 2+ task MUST declare depends_on |
| Plan ignores locked Decisions from BA | CRITICAL | Decision Compliance section cross-checks requirements.md — locked decisions are non-negotiable |
| Complex feature missing Workflow Registry — components planned but never wired | HIGH | Step 4.5: 4-view registry catches orphaned components, unphased workflows, and missing state transitions before phase files are written |
| Recommending shortcut approach without Completeness Score | MEDIUM | Step 5.5: every alternative needs X/10 Completeness score + dual effort estimate (human vs AI). "Saves 70 LOC" is not a reason when AI makes the delta cost minutes |
| Plan output missing Outcome Block | MEDIUM | Every plan output MUST end with Outcome Block (What Was Planned + Immediate Next Action + How to Measure) — executor drift when omitted |
| Outcome Block "Next Action" is a list, not one action | LOW | One action only — ambiguity about where to start causes re-analysis and lost context |
| Overlapping file ownership across parallel phases/streams | HIGH | Change Stacking: every task declares touches[] — overlap detection flags same file in 2+ tasks before execution |
| Missing dependency between tasks that share artifacts | HIGH | Every task declares provides[] and requires[] — cycle detection + missing dep check before dispatch |
| New feature planned without checking existing feature map | HIGH | Step 1 reads .rune/features.md — catches overlaps, conflicts, and missing dependencies before planning begins |
| Feature map never created — gaps accumulate silently | MEDIUM | Step 6.5 always runs (create or update) — feature map grows organically with each plan invocation |
| UI task planned with no endpoint/contract behind it (dead button at plan time) | CRITICAL | Step 3.7: contracts/ emitted before phase files; every UI task cites its contract; ordering law makes UI structurally last in its slice |
| P1 story silently missing from tasks (frontend-only plan) | CRITICAL | Step 5.7 Coverage Gate: P1 zero-coverage = plan not presentable; Coverage Summary visible in master plan at approval |
| Boundary artifacts skipped because "the feature is simple" | HIGH | Detection is mechanical (Key Entities + UI surface), not judgment. Skips are announced, never silent |
| quickstart.md written as prose instead of runnable commands | MEDIUM | Every step needs an Expect with observable outcome — cook executes this file at VERIFY |
| BA's story-grouped tasks.md flattened back into layer groups | HIGH | Step 3 rule: ## US-n sections map to slices — refine, don't flatten |
SELF-VALIDATION (run before presenting plan to user):
- [ ] Every task has a clear file path — no "update relevant files" vagueness
- [ ] Wave dependencies are acyclic — no task depends on a task in the same or later wave
- [ ] Every code-producing phase has at least one test task
- [ ] Phase files have ALL Amateur-Proof sections (data flow, code contracts, failure scenarios, rejection criteria)
- [ ] Locked decisions from BA are reflected in plan — none contradicted or ignored
- [ ] Every BA requirement has a corresponding Req ID in at least one phase's Traceability Matrix
- [ ] Coverage Summary built (Step 5.7) — no P1 story/FR with zero tasks; P2/P3 gaps have explicit deferral lines
- [ ] Boundary artifacts emitted if UI↔data boundary detected — every contract has a consumer, every UI task cites its contract (or justifies Contract: none)
- [ ] Layer order within every slice: no UI task precedes its slice's data/logic/endpoint tasks
- [ ] `.rune/features.md` updated with current feature (or created if first run)
- [ ] No cross-feature conflicts detected (or flagged to user if found)
.rune/features.md created (first run) or updated (subsequent) with current feature~3000-8000 tokens input, ~2000-5000 tokens output (master + all phase files). Opus for architectural reasoning. Most expensive L2 skill but runs infrequently. Phase files are written once, executed by cheaper models (Sonnet/Haiku).
references/boundary-artifacts.md (opens in a new tab)references/change-stacking.md (opens in a new tab)references/completeness-scoring.md (opens in a new tab)references/feature-map.md (opens in a new tab)references/modes.md (opens in a new tab)references/outcome-block.md (opens in a new tab)references/plan-templates.md (opens in a new tab)references/vertical-slice.md (opens in a new tab)references/wave-planning.md (opens in a new tab)references/workflow-registry.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rune-kit/rune --plugin rune67 skills in this plugin
/adversaryPre-implementation red-team analysis. Use when a plan is high-risk, critical path, or expensive to reverse. Challenges plans before code is written — finds edge cases, security holes, scalability bottlenecks, error propagation risks, and integration conflicts. Catches flaws at plan time (10x cheaper than post-implementation)./asset-creatorCreates code-based visual assets — SVG icons, OG image HTML templates, social banners, and icon sets. Use when generating visuals as code (vector/HTML), NOT raster images — for raster generation see @rune-pro/media. Outputs files with usage instructions./auditComprehensive project audit — security, dependencies, code quality, architecture, performance, infra, docs, and mesh analytics. Use when needing a full 8-dimension health-score snapshot before a major release, M&A diligence, or quarterly review. Delegates to specialist skills (sentinel, dependency-doctor, perf, autopsy, etc.).Other plugins' skills for the same job