brainstorm
Separate goals from implementation.
What this skill does
# /brainstorm — Clarify Goals Before Planning > **Purpose:** Separate WHAT from HOW. Explore the problem space before committing to a solution. ## Loop position Upstream of move **1 (shape intent as BDD)** of the [operating loop](../../docs/architecture/operating-loop.md). Consumes a free-text goal; produces Given/When/Then-shaped acceptance examples that `/discovery` can fold into a [BDD intent issue](../../docs/templates/intent-issue.md). The Capture step (phase 4 below) is not complete until at least one happy path and one critical edge are written as testable Gherkin — "it should work" is not a captured example. ## Two modes `/brainstorm` runs in one of two modes. They are complementary, not exclusive — a session may start in ideation mode, pick one idea, and hand it to goal-clarification for HOW-exploration. | Mode | Use when | Shape | |------|----------|-------| | **Goal-clarification** (default; the four phases below) | The goal names ONE specific capability (`"add JWT auth"`, `"fix the login bug"`) | Sharpen the WHAT, explore the HOW for that single goal. | | **Ideation** (open-ended; see [Ideation Mode](#ideation-mode-open-ended-generate-winnow)) | The goal is open-ended (`"improve the project"`, `"what should we build next"`) OR Phase 1 returns `exploring` with no single goal emerging OR `--ideate` is passed | Generate MANY candidate improvements, winnow ruthlessly, operationalize the survivors. | The full mode-selection table lives in [references/ideation-mode.md](references/ideation-mode.md). Four phases (goal-clarification mode): 1. **Assess clarity** — Is the goal specific enough? 2. **Understand idea** — What problem, who benefits, what exists? 3. **Explore approaches** — Generate options, compare tradeoffs, adversarial critique 4. **Capture design** — Write structured output for `/plan` --- ## Quick Start ```bash /brainstorm "add user authentication" # full 4-phase process /brainstorm # prompts for goal ``` --- ## Execution Steps ### Phase 1: Assess Clarity If the user provided a goal string, evaluate it. Otherwise prompt for one. Use `AskUserQuestion` with options to gauge clarity: - **clear** — Goal is specific and actionable (e.g., "add JWT auth to the API") - **vague** — Goal exists but needs narrowing (e.g., "improve security") - **exploring** — No firm goal yet, just a direction (e.g., "something with auth") If **vague** or **exploring**, ask follow-up questions to sharpen the goal before proceeding. Do NOT move to Phase 2 until you have a concrete problem statement (one sentence, testable). ### Phase 2: Understand the Idea Answer these questions (use codebase exploration as needed): 1. **What problem does this solve?** — State the pain point in concrete terms. 2. **Who benefits?** — End users, developers, operators, CI pipeline? 3. **What exists today?** — Current state, prior art in the codebase, adjacent systems. 4. **What constraints matter?** — Performance, compatibility, security, timeline. Summarize findings before moving on. If anything is unclear, ask the user. ### Phase 3: Explore Approaches Generate **2-3 distinct approaches**. For each: - **Name** — Short label (e.g., "JWT middleware", "OAuth proxy", "Session cookies") - **How it works** — 2-3 sentences - **Pros** — What it gets right - **Cons** — What it gets wrong or defers - **Effort** — Rough scope (small / medium / large) #### Phase 3b: Adversarial Critique Before asking the user to choose, stress-test each approach: For each approach, answer these **red team questions** (read `references/red-team-checklist.md`): 1. **What breaks first?** — Under load, edge cases, or adversarial input 2. **What's the hidden cost?** — Maintenance burden, technical debt, learning curve 3. **What assumption is wrong?** — The unstated belief that makes this approach seem good 4. **Who disagrees?** — What would a senior engineer with the opposite preference say? Mark any approach that fails 2+ red team questions as **HIGH RISK** in the comparison. If all approaches fail 2+ questions, generate a 4th "hybrid" approach addressing the weaknesses. Present the comparison and use `AskUserQuestion` to let the user pick an approach or request a hybrid. ### Phase 4: Capture Design Generate a date slug: `YYYY-MM-DD-<goal-slug>` (lowercase, hyphens, no spaces). Write the output file to `.agents/brainstorm/YYYY-MM-DD-<slug>.md`: ```markdown --- id: brainstorm-YYYY-MM-DD-<goal-slug> type: brainstorm date: YYYY-MM-DD --- # Brainstorm: <Goal> ## Problem Statement ## Approaches Considered ## Selected Approach ## Open Questions ## Next Step: /plan ``` All five sections must be populated. The "Next Step" section should contain a concrete `/plan` invocation suggestion with the selected approach as context. Create the `.agents/brainstorm/` directory if it does not exist. --- ## Ideation Mode (open-ended generate-winnow) > **Additive to the four-phase flow above — it does not replace it.** Ideation mode is for "improve the project"-style goals where the WHAT is unknown and you must generate a portfolio and select, rather than clarify ONE known goal. Full detail: [references/ideation-mode.md](references/ideation-mode.md). **Trigger:** the `exploring` clarity path (Phase 1) when no single goal emerges after follow-up, OR an explicit `--ideate` flag, OR an open-ended goal string (`"improve the project"`, `"what should we build next"`, `"make X more robust"`). The methodology is **generate → winnow → expand → operationalize → refine**. Steps 1-3 belong to `/brainstorm`; steps 4-5 are handed to `/discovery` on its open-ended path (see [references/bead-operationalization.md](references/bead-operationalization.md)). ### Step 1 — Ground in reality Read project state so ideas align and don't duplicate work: ```bash cat AGENTS.md # or CLAUDE.md — rules, constraints, non-goals bd list --json # open work — don't duplicate bd list --status closed --json # closed work — don't re-propose cut ideas bd ready --json # what is actionable now ``` ### Step 2 — Generate 30, winnow to 5 (ranked, with rationale) Generate **30** candidate improvements (criteria = the rubric dimensions: robust, reliable, performant, intuitive, user-friendly, ergonomic, useful, compelling, while staying obviously **accretive** and **pragmatic**). Think each one through: **how it works**, **how users perceive it**, **how we implement it**. Then **winnow ruthlessly to the VERY best 5**, presented **ranked best-to-worst** with full rationale and rubric scores. Apply the winnowing rounds and scoring from [references/idea-rubric.md](references/idea-rubric.md), and stress-test survivors with [references/red-team-checklist.md](references/red-team-checklist.md). Do NOT stop at the first 5 you think of — generate the full 30 first. ### Step 3 — Expand with the next 10 (→ 15) Generate the **next best 10** (each with rationale) for a ranked portfolio of **15** — #6-15 are often complementary to the top 5. ### Steps 4-5 — Operationalize + refine (handed to `/discovery`) Carry the ranked 15 (with how/perceive/implement notes + rubric scores + red-team findings) forward. `/discovery` operationalizes them into self-documenting `bd` beads (deps + explicit test tasks) and refines 4-5x in plan space. See [references/bead-operationalization.md](references/bead-operationalization.md). ### Output Standalone (`/brainstorm --ideate`): write the ranked portfolio to `.agents/brainstorm/YYYY-MM-DD-<slug>-ideation.md` (template in [references/ideation-mode.md](references/ideation-mode.md)). Invoked by `/discovery`: return the ranked portfolio inline for the operationalize step. > **Tracking is `bd`, never `br`/`bv`** — this is AgentOps. --- ## Termination Phase 4 output written = done. No further phases, no loops. ## Validation After writing the output file, verify: 1. File exists at the expected path 2. All 5 sectio
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.