Brainstorm

From squadcodercom/squadcoder · View interactive version

Brainstorm is an AI agent skill from the GitHub repository squadcodercom/squadcoder. You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

How to use this skill

Skill file

Brainstorming Ideas Into Designs

Help turn ideas into fully formed designs and specs through natural collaborative dialogue.

Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.

<HARD-GATE>

Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.

Autonomous override: When no user is available to approve, this HARD-GATE does not apply: skip design presentation and approval, proceed directly to implementation, treating every approval gate as auto-approved.

</HARD-GATE>

Anti-Pattern: "This Is Too Simple To Need A Design"

Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.

Autonomous override: When no user is available, skip this anti-pattern guidance — proceed directly to exploring context and implementing; do not present a design for approval.

Checklist

You MUST create a task for each of these items and complete them in order:

Autonomous mode (no user available): Skip steps 2–8. Only do: explore project context (step 1) → implement directly (invoke compose:plan or compose:execute). Do NOT present a design, ask questions, write a spec, or wait for approval.

  1. Explore project context — check files, docs, recent commits
  2. Offer visual companion (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
  3. Ask clarifying questions — one at a time, understand purpose/constraints/success criteria
  4. Propose 2-3 approaches — with trade-offs and your recommendation
  5. Present design — in sections scaled to their complexity, get user approval after each section
  6. Write design doc (optional, multi-step features only) — save to docs/compose/specs/YYYY-MM-DD-<topic>-design.md and commit. For single-step fixes or small changes, keep the design in conversation context only.
  7. Spec self-review (if doc written) — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
  8. User reviews written spec (if doc written) — ask user to review the spec file before proceeding
  9. Transition to implementation — invoke compose:plan to create implementation plan

Process Flow

digraph brainstorm {
    "Explore project context" [shape=box];
    "Visual questions ahead?" [shape=diamond];
    "Offer Visual Companion\n(own message, no other content)" [shape=box];
    "Ask clarifying questions" [shape=box];
    "Propose 2-3 approaches" [shape=box];
    "Present design sections" [shape=box];
    "User approves design?" [shape=diamond];
    "Write design doc" [shape=box];
    "Spec self-review\n(fix inline)" [shape=box];
    "User reviews spec?" [shape=diamond];
    "Invoke compose:plan" [shape=doublecircle];

    "Explore project context" -> "Visual questions ahead?";
    "Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
    "Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
    "Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
    "Ask clarifying questions" -> "Propose 2-3 approaches";
    "Propose 2-3 approaches" -> "Present design sections";
    "Present design sections" -> "User approves design?";
    "User approves design?" -> "Present design sections" [label="no, revise"];
    "User approves design?" -> "Write design doc" [label="yes"];
    "Write design doc" -> "Spec self-review\n(fix inline)";
    "Spec self-review\n(fix inline)" -> "User reviews spec?";
    "User reviews spec?" -> "Write design doc" [label="changes requested"];
    "User reviews spec?" -> "Invoke compose:plan" [label="approved"];
}

The terminal state is invoking compose:plan. Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is compose:plan.

The Process

Understanding the idea:

Exploring approaches:

Presenting the design:

If no user is available, treat as approved and continue.

Design for isolation and clarity:

Working in existing codebases:

After the Design

Documentation (optional, multi-step features only):

For features with multiple tasks or significant architectural decisions:

For single bug fixes or small changes, skip the written spec — the design presented in conversation is sufficient.

Spec Self-Review (if doc written):

After writing the spec document, look at it with fresh eyes:

  1. Placeholder scan: Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
  2. Internal consistency: Do any sections contradict each other? Does the architecture match the feature descriptions?
  3. Scope check: Is this focused enough for a single implementation plan, or does it need decomposition?
  4. Ambiguity check: Could any requirement be interpreted two different ways? If so, pick one and make it explicit.

Fix any issues inline. No need to re-review — just fix and move on.

User Review Gate (if doc written):

After spec self-review passes, use compose:ask:

If no user is available, treat as approved and invoke compose:plan.

If "Changes needed" or custom feedback, apply changes and re-run spec review. Only proceed on approval.

Implementation:

Spec Section Anchors

When writing the spec, give every ## section heading a stable anchor ID so downstream plan tasks and reviewers can reference exact spec locations. Put the ID at the start of the heading text:

## [S1] Problem
## [S2] Solution overview
## [S3] Coverage gate behavior

Rules:

These anchors are the index the plan and reviewers use to trace each task and each review verdict back to the exact spec section it serves.

Key Principles

Visual Companion

A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.

Offering the companion: When you anticipate visual content (mockups, layouts, diagrams):

  1. Check memory for a visual-companion preference in the compose-preferences memory file. If found, honor it.
  1. If no saved preference, offer consent using compose:ask (this MUST be its own message — do not combine with other content):

If no user is available, skip the visual companion and use text-only.

  1. If "Yes, always" or "No, never": Save to the compose-preferences memory file.

If declined, proceed with text-only brainstorming.

Per-question decision: Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: would the user understand this better by seeing it than reading it?

A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.

If they agree to the companion, read the detailed guide before proceeding:

<compose:brainstorm>/visual-companion.md

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.