Brainstorm

From Rune-kit/rune · View interactive version

Brainstorm is an AI agent skill from the GitHub repository Rune-kit/rune. Creative ideation and solution exploration. Use when a task is vague or open-ended, several approaches are viable, or the current approach has fundamentally failed ('ideas', 'explore options', 'what are the ways to'). Generates multiple approaches with trade-offs using structured frameworks (SCAMPER

How to use this skill

Skill file

brainstorm

Purpose

Creative ideation and solution exploration. Brainstorm is the creative engine of the Creation group — it generates multiple approaches with trade-offs, explores alternatives using structured frameworks, and hands the selected approach to plan for structuring. Uses opus for deep creative reasoning.

<HARD-GATE>

Do NOT invoke any implementation skill or write any code until the user has approved the design.

This applies to EVERY task regardless of perceived simplicity.

"This is too simple to need a design" is a rationalization. Simple tasks get simple designs (a few sentences), but they still get designs.

</HARD-GATE>

Modes

Discovery Mode (default)

Normal brainstorming at the start of a task — generate approaches before any code is written.

Vision Mode

Activated for product-level rethinks — not "how to implement X" but "should we even build X?" Forces 10x thinking instead of incremental improvement.

Vision Mode triggers:

Vision Mode constraints:

  1. MUST restate the user's REAL problem (not their proposed solution) — "you asked for a settings page, but your real problem is users can't find the right config"
  2. MUST generate 2-3 approaches where at least 1 eliminates the need for the feature entirely
  3. MUST apply the "10-star experience" lens: what would a 1-star, 5-star, and 10-star version look like?
  4. MUST challenge assumptions: "why does this need to be a page?" "why does the user need to do this at all?"

Design-It-Twice Mode

Activated when exploring alternative interface shapes for a deepening candidate. Spawns N=3-4 parallel subagents, each pinned to a radically different design constraint (minimize / maximize-flexibility / optimize-common-case / ports-and-adapters), computes a diversity score over feature vectors, and presents sequentially with an opinionated recommendation. Used by improve-architecture when a deepened module's interface is non-obvious.

Design-It-Twice triggers:

Design-It-Twice constraints:

  1. MUST spawn N=3 (minimum) or N=4 (when dependency category is remote-owned or true-external) parallel subagents
  2. Each subagent pinned to exactly ONE of the 4 standard constraints — enforced via prompt template
  3. Diversity score MUST be >= 0.4 before presenting (re-spawn once if below)
  4. Recommendation MUST be opinionated with a concrete hedge condition — "it depends" is BLOCKED
  5. Hybrid synthesis (Step 4.5) is opt-in when 2 designs have complementary strengths
  6. council (Step 3.75) is opt-in per the narrow trigger — MUST NOT fire on every design-it-twice run, and its output MUST NOT replace the diversity-score mechanism, only supplement it

Full doctrine: references/design-it-twice.md.

Rescue Mode

Full detail moved to CODE0 (progressive disclosure). Read that file before executing this section.

Triggers

Calls (outbound)

Called By (inbound)

Cross-Hub Connections

Reasoning Frameworks

Analytical Frameworks

SCAMPER          — Substitute, Combine, Adapt, Modify, Put to use, Eliminate, Reverse
FIRST PRINCIPLES — Break down to fundamentals, rebuild from ground up
6 THINKING HATS  — Facts, Emotions, Caution, Benefits, Creativity, Process
CRAZY 8s         — 8 ideas in 8 minutes (rapid ideation)

Breakthrough Frameworks (when conventional thinking fails)

Collision-Zone Thinking — Force unrelated concepts together: "What if we treated X like Y?"

Inversion Exercise — Flip every assumption: "What if the opposite were true?"

Scale Game — Test at extremes (1000x bigger/smaller) to expose fundamentals

Executable Steps

Step 0 — Detect Mode

Check the invocation context:

If Rescue Mode: read failed_approach and failure_evidence before proceeding. These become anti-constraints — approaches that MUST NOT repeat the failed category.

Step 1 — Frame the Problem

State the decision to be made in one clear sentence: "We need to decide HOW TO [achieve X] given [constraints Y]." Identify:

If the problem is unclear, ask the user ONE clarifying question before proceeding.

Step 1.5 — Problem Restatement (MANDATORY)

After framing the problem, restate it back to the user for confirmation:

"Let me confirm: you want to [X] because [Y],
and the main constraint is [Z]. Correct?"

DO NOT generate approaches until user confirms the restatement. This prevents wasted ideation on a misunderstood problem — the most expensive brainstorm failure mode.

Skip conditions (Rescue Mode only):

Step 1.75 — Dynamic Questioning (When Clarification Needed)

When Step 1 or Step 1.5 reveals gaps, ask structured clarifying questions using this format:

### [P0|P1|P2] **[DECISION POINT]**

**Question:** [Clear, specific question]

**Why This Matters:**
- [Architectural consequence — what changes based on the answer]
- [Affects: cost | complexity | timeline | scale | security]

**Options:**
| Option | Pros | Cons | Best For |
|--------|------|------|----------|
| A      | [+]  | [-]  | [scenario] |
| B      | [+]  | [-]  | [scenario] |

**If Not Specified:** [Default choice + rationale]

Priority levels:

Rules:

  1. Ask maximum 3 questions per round (avoid overwhelming the user)
  2. Each question MUST connect to a specific decision point (no generic "what do you want?")
  3. MUST provide a default answer — if user says "you decide", the default is used
  4. Questions generate data, not assumptions — each eliminates implementation paths

Step 2 — Generate Approaches

Discovery Mode: Produce exactly 2–3 distinct approaches.

Rescue Mode: Produce exactly 3–5 approaches, each a different category from the failed approach.

Design-It-Twice Mode: skip to Step 2.5.

Each approach must be meaningfully different — not just variations of the same idea. For each approach provide:

If the domain is unfamiliar or data is needed, invoke rune:research before generating options. For product/market context, invoke rune:trend-scout.

Step 2.5 — Constraint Matrix Spawn (Design-It-Twice Mode only)

Full detail moved to CODE0 (progressive disclosure). Read that file before executing this section.

Step 3 — Evaluate

Discovery Mode — Apply the most relevant framework:

Rescue Mode — MUST use at least one of these (conventional thinking already failed):

Additionally in Rescue Mode:

For approaches with many interacting variables, invoke rune:sequential-thinking to reason through trade-offs systematically.

Step 3.5 — Diversity Gate (Design-It-Twice Mode only)

After subagents return, compute the diversity score:

feature_vector(design) = [
  count(methods), count(return_types), count(adapter_kinds),
  count(dependencies), paradigm_tag, has_async, has_streaming
]
diversity = 1 - mean(pairwise_jaccard(feature_vectors))

| Diversity | Action |

|-----------|--------|

| ≥ 0.6 | Proceed to Step 4 |

| 0.4 – 0.59 | Surface to user: "designs are similar in [shared trait] — re-spawn with different constraints?" |

| < 0.4 | Re-spawn once with rotated constraints; if still <0.4, give up and present what's there with a diversity-low warning |

Emit diversity_score in chain_metadata.

Step 3.75 — Decorrelated Judgment (council, Design-It-Twice Mode only)

Full detail moved to CODE0 (progressive disclosure). Read that file before executing this section.

Step 4 — Recommend

Select ONE approach as the recommendation. State:

Do not recommend "it depends" without a concrete decision rule.

Step 4.5 — Tiered Recommendations (Product/Strategy Mode)

For product-level brainstorming (Vision Mode or when approaches have strategic implications), structure the recommendation into time-horizon tiers:

| Tier | Timeframe | Focus |

|------|-----------|-------|

| Quick Win | 0-30 days | Immediate value, validates direction, low risk |

| Differentiation | 1-3 months | Competitive advantage, harder to copy |

| Long-term Moat | 6-12 months | Defensible position, compounds over time |

For each tier, specify:

### Quick Win (0-30 days)
- **Action**: [specific deliverable from the chosen approach]
- **Resources**: [team/tools needed]
- **Expected Impact**: [measurable outcome]
- **Validates**: [what assumption this proves/disproves]

### Differentiation (1-3 months)
- **Action**: [...]
- **Resources**: [...]
- **Expected Impact**: [...]

### Long-term Moat (6-12 months)
- **Action**: [...]
- **Resources**: [...]
- **Expected Impact**: [...]

Rules:

Step 4.5 — Hybrid Synthesis (Design-It-Twice Mode, optional)

If two designs have complementary strengths (e.g., C1's leverage + C4's seam discipline), propose a 4th option that combines them. Skip this step when no two designs have clear complementary strengths.

Option D (Hybrid C1 + C4):
  - Interface: 3 methods (from C1's minimization)
  - Adapters: HttpAdapter + InMemoryAdapter (from C4's port discipline)
  - Pros: small surface AND testable across the seam
  - Cons: more upfront design work; locks the port early

The hybrid is the recommended default in many cases. Be opinionated.

Step 4.75 — Not Doing List (MANDATORY)

After selecting a recommendation, explicitly document what was rejected and why. This prevents scope creep later when someone asks "why didn't we do X?"

For each rejected option, state:

### Not Doing
- **[Option B name]** — [specific trade-off, e.g., "adds 2 weeks for a 10% perf gain we don't need at current scale"]. Revisit if [condition, e.g., "user count exceeds 100k"].
- **[Option C name]** — [specific trade-off]. Revisit if [condition].

The "Revisit if" clause is critical — it turns a rejection into a future trigger, not a permanent dismissal.

Step 5 — Hand Off (Spec Gate → BA if missing, then Plan)

Before structuring the chosen approach, check whether a requirements spec exists. Choosing an approach answers HOW — it does NOT answer WHAT (requirements, acceptance criteria, scope boundaries, hidden requirements). Handing a bare approach straight to plan produces a plan with no spec behind it — the "plan without spec" gap that turns into vibe-coding.

Spec-presence gate:

  1. Glob .rune/features/*/requirements.md.
  2. Route to rune:plan directly if ANY of:
  1. Route to rune:ba FIRST (then ba hands to plan) if ALL of:

<HARD-GATE>

Do NOT skip ba on the way to plan for a NEW feature just because an approach was already chosen.

Approach ≠ requirements. A plan built on a chosen approach but no acceptance criteria is a plan without a spec.

Loop guard: if ba was the caller, hand back to plan normally — NEVER re-invoke ba.

</HARD-GATE>

Pass to the next skill (ba or plan):

If the user rejects the recommendation, return to Step 2 with adjusted constraints and regenerate.

Constraints

  1. MUST propose 2-3 approaches (Discovery) or 3-5 approaches (Rescue) — never present only one option
  2. MUST include your recommendation and reasoning for why
  3. MUST ask one question at a time — don't overwhelm with multiple questions
  4. MUST save approved design to docs/plans/ before transitioning to plan
  5. MUST NOT jump to implementation — brainstorm → plan → implement is the order
  6. [Rescue Mode] MUST NOT generate variants of the failed approach — each approach must be a different CATEGORY
  7. [Rescue Mode] MUST use Collision-Zone or Inversion framework — conventional thinking already failed
  8. [Rescue Mode] MUST include at least 1 unconventional/hacky approach — sometimes the "dirty" solution is the only one that works
  9. [Design-It-Twice Mode] MUST spawn parallel subagents with one constraint pinned per agent — fake diversity (one agent producing N options) is BLOCKED
  10. [Design-It-Twice Mode] MUST emit diversity_score and re-spawn (once) if below 0.4 floor
  11. [Design-It-Twice Mode] MUST NOT produce "it depends" recommendations — pick one design with a concrete hedge condition
  12. [Design-It-Twice Mode] MUST NOT call council on every run — narrow trigger only (N=4 remote/external dependency, marginal diversity band, or explicit user request); when invoked, council output supplements (never replaces) the diversity-score mechanism

Output Format

## Brainstorm: [Topic]

### Context
[Problem statement and constraints]

### Option A: [Name] (Recommended)
- **Approach**: [description]
- **Pros**: [advantages]
- **Cons**: [disadvantages]
- **Effort**: low | medium | high
- **Risk**: low | medium | high — [main risk]

### Option B: [Name]
- **Approach**: [description]
- **Pros**: [advantages]
- **Cons**: [disadvantages]
- **Effort**: low | medium | high
- **Risk**: low | medium | high — [main risk]

### Option C: [Name] (if needed)
...

### Recommendation
Option A — [one-line primary reason].
Choose Option B if [specific hedge condition].

### Not Doing
- **[Option B name]** — [trade-off rationale]. Revisit if [condition].
- **[Option C name]** — [trade-off rationale]. Revisit if [condition].

### Next Step
Proceeding to rune:plan with Option A. Constraints to honor: [list].

Returns

| Artifact | Format | Location |

|----------|--------|----------|

| Option matrix (2-3 Discovery / 3-5 Rescue) | Markdown sections | inline (chat output) |

| Trade-off analysis per option | Markdown (pros/cons/effort/risk) | inline |

| Single recommendation with hedge condition | Markdown | inline |

| Approved design document | Markdown | docs/plans/<feature>.md |

Sharp Edges

Known failure modes for this skill. Check these before declaring done.

| Failure Mode | Severity | Mitigation |

|---|---|---|

| Generating only one option instead of 2-3 | HIGH | Always present multiple approaches — the value is in the comparison, not the recommendation |

| Proceeding to plan without user approval on the approach | CRITICAL | Brainstorm MUST get explicit sign-off before calling plan — no silent "going with Option A" |

| Options are variations of the same approach (fake diversity) | HIGH | Options must differ in architecture, not just naming — different trade-offs, not just different words |

| [Rescue] Generating variants of the failed approach | CRITICAL | Each approach MUST have a different category tag — if two share a tag, one must be replaced |

| [Rescue] Skipping Collision-Zone/Inversion frameworks | HIGH | Conventional thinking already failed — MUST use at least one breakthrough framework |

| [Rescue] All approaches are "clean/proper" — no hacky option | MEDIUM | At least 1 must be unconventional — wrappers, reverse-engineering, debug mode abuse, proxy layers |

| Calling plan directly instead of presenting options first | CRITICAL | Steps 2-3 are mandatory — present options, get approval, THEN call plan |

| Handing a chosen approach straight to plan for a new feature with no requirements spec | CRITICAL | Step 5 spec-presence gate: standalone brainstorm + no requirements.md + new behavior → route to ba FIRST. Approach (HOW) is not a spec (WHAT). Skipping ba here is the "plan without spec" vibe-coding gap |

| "Creative" options that ignore stated constraints | MEDIUM | Every option must satisfy the constraints declared in Step 1 |

| Missing "Not Doing" list — rejected options not documented | MEDIUM | Step 4.75 is MANDATORY — every rejected option needs trade-off rationale + "Revisit if" condition |

| [Design-It-Twice] Single agent producing N options instead of N parallel subagents | HIGH | Step 2.5 — constraint pinning happens at spawn, not in a loop. Each constraint = one Task call |

| [Design-It-Twice] Diversity score below 0.4 ignored | HIGH | Step 3.5 gate — re-spawn once; if still low, present with explicit "low-diversity" warning |

| [Design-It-Twice] "It depends" recommendation | HIGH | Step 4 — must pick one with a hedge; if genuinely tied, propose hybrid (Step 4.5) and recommend that |

| [Design-It-Twice] Forgetting to include CONTEXT.md domain terms in subagent prompt | MEDIUM | Step 2.5 spawn template requires domain glossary be passed through |

| [Design-It-Twice] Reporting council output as consensus when decorrelation is NO_DECORRELATION | CRITICAL | Step 3.75 consume rule: report the decorrelation stamp plainly, never imply independent confirmation from same-family subagents |

Done When

Cost Profile

~2000-5000 tokens input, ~1000-2500 tokens output. Opus for creative reasoning depth. Runs infrequently — only when creative exploration is needed.

Scope guardrail: Brainstorm produces options and a recommendation — never implementation code or an execution plan. All code and planning begins only after user approves an approach and rune:plan is invoked.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.