Brainstorm

From phatblat/dotfiles · View interactive version

Brainstorm is an AI agent skill from the GitHub repository phatblat/dotfiles. Use PROACTIVELY before any creative work, design decision, or open-ended question ("what are the options", "help me decide", "ADR"): explore options, then commit a numbered Decision.

How to use this skill

Skill file

Brainstorming Ideas Into Decisions

Help turn ideas into fully formed Conventional Docs Decisions through natural

collaborative dialogue.

Start by classifying how much process the request needs, then work through your

path: understand the context, refine the idea, present a design, and get your

human partner's approval.

Provenance

Forked from superpowers skills/brainstorming

v6.3.0 — MIT, Copyright (c) 2025 Jesse Vincent. The classification-then-approval

structure, the hard approval gate, and the red-flag framing are his. Retargeted at

Conventional Docs: the output is a

numbered Decision with a status lifecycle instead of a dated design spec, and the

handoff is a branch-lifetime PLAN.md instead of a permanent plan document.

Divergence from upstream

  1. Path vocabulary: spike / bounded / architectural → Probe / Direct /

Decision, keyed to Conventional Docs' own two thresholds rather than to a

subjective sense of size.

  1. Output artifact: docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md →

docs/decisions/YYYY-MM-DD-slug.md. Dated, not numbered — this fork reuses

Conventional Docs' own id scheme (the date the record was written plus a

kebab-case slug, fixed forever) rather than inventing a numbering system, and

the record moves through Conventional Docs' own four-state lifecycle (draft →

proposed → accepted | rejected) with no extension to it.

  1. Plan: docs/superpowers/plans/YYYY-MM-DD-<x>.md (permanent) → PLAN.md

(branch-lifetime, deleted before merge).

  1. Review + prototype are phases of a proposed Decision, not post-hoc chat. Prototype

findings land in the Decision under ## Prototype Findings.

  1. New event commit decision: revise <id> <what changed> — a local extension beyond

the five verbs in the conventional-docs README. Flag it here as a candidate to

upstream.

  1. The parallel multi-expert exploration from the prior local brainstorm skill is

absorbed as an optional exploration move (see Exploring the Idea), so nothing is

lost.

  1. The browser visual companion is not ported — its judgment is salvaged as

### Showing versus telling below; its scripts are not.

Out of scope: the skill never writes .changes/<slug>.md release-note fragments —

those describe shipped behavior and belong to implementation, not design.

<HARD-GATE>

Do NOT invoke any implementation skill, write any code, scaffold any

project, or take any implementation action until you have told your

human partner what you intend and they have approved it. This applies

to EVERY task on EVERY path below — the ceremony scales with the task;

the approval gate never does.

</HARD-GATE>

Three Paths

Before your first question, classify the request and say the classification out

loud — "this looks Direct, so I'll present a short design here rather than write a

Decision" — so your human partner can override it:

| Path | Trigger | Output | Artifacts |

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

| Probe | A feasibility question — "can we", "is it possible", "quick and dirty is fine". Output is an answer, not code you keep. | A recommendation in chat. Anything built is labeled throwaway. | none |

| Direct | Below the Decision threshold: under ~100 lines, and does not change behavior, an interface, or a dependency. The flow being changed already exists in this repo to read. | A short design in chat (a few sentences to a few short paragraphs), then approval, then implement. | none |

| Decision | At or above the Decision threshold: ~100+ lines, or changes behavior, or changes an interface, or changes a dependency. New projects and new subsystems are always here — they have no existing flow to read. | A committed Decision, reviewed and accepted. | Decision; Plan if the Plan threshold also fires |

Conventional Docs states both thresholds verbatim: "a PR over ~100 lines, or one

that changes behavior, an interface, or a dependency, needs a Decision." "Work

spanning more than one session, or handed to another agent, needs a Plan." Below

both: "Anything smaller just happens." The two thresholds are **independent

gates**: an accepted Decision that fits one session and is not handed off is

implemented directly, with no Plan.

When in doubt between two paths, take the heavier one. The ratchet is one-way:

hidden complexity discovered mid-task upgrades the path — stop, say so, and step

up. Nothing downgrades mid-task.

Anti-Pattern: "Too Simple To Need Approval"

Every path ends with your human partner approving your intent before

implementation. A todo list, a single-function utility, a config

change — the design may be two sentences in chat, but you MUST present

it and get approval. "Simple" tasks are where unexamined assumptions

cause the most wasted work. What scales with simplicity is the

artifact, never the approval.

Red Flags

| Thought | Reality |

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

| "This is too simple to need a design" | Simple means a short design, not no design. Two sentences in chat, then approval. |

| "I'll call it Direct and skip the Decision" | Reaching for a label to skip work IS the doubt — take the heavier path. |

| "It's Direct and the design is obvious — I'll start while they read it" | The gate is the approval, not the design's length. Present, then stop until you hear yes. |

| "I understand this kind of app, so it's Direct" | Direct measures the repo, not your familiarity. A new project has no existing flow — it is a Decision. |

| "The probe works, so I'll keep the code" | A probe's output is an answer. Keeping the code is a new request — classify it. |

| "It grew, but I'm almost done — no need to re-classify" | Hidden complexity upgrades the path mid-task. Stop and say so. |

| "They approved the probe, so the follow-up change is approved too" | Each task gets its own classification and its own approval. |

Artifact Location

Every Decision lives at docs/decisions/YYYY-MM-DD-slug.md — Conventional Docs

defines no other location and no graduation step for Decisions. Announce the

resolved path before writing anything.

Rules that go with it:

absent, create it containing docs/decisions + newline. Idempotent; no

other trigger.

title — and it is the filename without .md. It is fixed at creation:

never re-date, rename, or renumber it, not when its status changes and not

when a later decision supersedes it. Several decisions may share a date;

their slugs tell them apart.

leading or trailing hyphen, truncated at 50 characters.

artifact is still written.

Phases and Commit Gates

The mandatory sequence, with exact commit subjects. Each gate commits before

the next phase begins.

| Phase | Artifact state | Commit subject |

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

| Draft | status proposed | decision: propose <id> <title> |

| Review / prototype revision (repeats) | body edited, status stays proposed | decision: revise <id> <what changed> |

| Acceptance | status accepted, frozen | decision: accept <id> |

| Plan written | PLAN.md created (owned by writing-plans) | not a separate commit event of its own |

There is no implemented status and no decision: implement commit —

Conventional Docs freezes a Decision's body at accept; what shipped is

CHANGELOG.md's question (see the recording-changes skill), and

plan: done <id> already announces that an accepted decision's work is

finished when writing-plans deletes PLAN.md.

Committing rule, exact: git commit -m "<subject>" -- <exact paths written>. The

explicit pathspec form is required — it commits only those paths regardless of

what is already staged, so the skill can never sweep unrelated work into a

lifecycle commit. Never git add -A, never git add ., never git commit -a.

Checklist

Classify first, announce the path, then create a task for each item on your path

and complete them in order.

Probe:

  1. Explore project context — enough to frame the probe
  2. Present question + probe plan — 2-3 sentences
  3. Get approval — a nod is enough
  4. Investigate — as cheaply as correctness allows
  5. Report findings — a recommendation; label anything built as throwaway

Direct:

  1. Explore project context — check files, docs, recent commits
  2. Ask clarifying questions — one at a time, the ones that matter
  3. Present short design in chat — approach, files touched, testing
  4. Get approval — STOP and wait for an explicit yes; presenting the design and starting in the same breath is skipping the gate
  5. Implement — proceed with the normal development workflow (TDD applies); no artifact

Decision:

  1. Explore project context — check files, docs, recent commits
  2. Ask clarifying questions — one at a time, understand purpose/constraints/success criteria
  3. Propose 2-3 approaches — with trade-offs and your recommendation
  4. Present design — in sections scaled to their complexity, get user approval after each section
  5. Write the Decision — resolve artifact location, assign the id, write status proposed, commit decision: propose <id> <title>
  6. Self-review — check against ~/.agents/skills/brainstorm/references/decision-review.md; fix inline
  7. User review — ask the user to review the committed Decision; revise and re-commit until they approve
  8. Accept — user says yes; set status accepted, commit decision: accept <id>
  9. After acceptance — invoke writing-plans if the Plan threshold fires; otherwise implement directly and close out per ## After Acceptance

Process Flow

digraph brainstorming {
    "Classify: probe / direct / decision" [shape=diamond];
    "Present question + probe (2-3 sentences)" [shape=box];
    "Ask clarifying questions (direct)" [shape=box];
    "Present short design in chat" [shape=box];
    "Human approves?" [shape=diamond];
    "Investigate; report recommendation" [shape=doublecircle];
    "Implement via normal workflow (no artifact)" [shape=doublecircle];
    "Explore project context" [shape=box];
    "Ask clarifying questions" [shape=box];
    "Propose 2-3 approaches" [shape=box];
    "Present design sections" [shape=box];
    "User approves design?" [shape=diamond];
    "Write Decision, status proposed\n(commit: decision: propose)" [shape=box];
    "Self-review\n(fix inline)" [shape=box];
    "User reviews Decision?" [shape=diamond];
    "Prototype an unknown\n(commit: decision: revise)" [shape=box];
    "Accept\n(commit: decision: accept)" [shape=box];
    "Plan threshold fires?" [shape=diamond];
    "Invoke writing-plans skill" [shape=doublecircle];
    "Implement directly\n(no Decision commit; CHANGELOG.md if user-facing)" [shape=doublecircle];
    "Hidden complexity? Upgrade path" [shape=box];

    "Classify: probe / direct / decision" -> "Present question + probe (2-3 sentences)" [label="probe"];
    "Classify: probe / direct / decision" -> "Ask clarifying questions (direct)" [label="direct"];
    "Classify: probe / direct / decision" -> "Explore project context" [label="decision"];
    "Present question + probe (2-3 sentences)" -> "Human approves?";
    "Ask clarifying questions (direct)" -> "Present short design in chat";
    "Present short design in chat" -> "Human approves?";
    "Human approves?" -> "Investigate; report recommendation" [label="probe: yes"];
    "Human approves?" -> "Implement via normal workflow (no artifact)" [label="direct: yes"];
    "Hidden complexity? Upgrade path" -> "Classify: probe / direct / decision";
    "Explore project context" -> "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 Decision, status proposed\n(commit: decision: propose)" [label="yes"];
    "Write Decision, status proposed\n(commit: decision: propose)" -> "Self-review\n(fix inline)";
    "Self-review\n(fix inline)" -> "User reviews Decision?";
    "User reviews Decision?" -> "Prototype an unknown\n(commit: decision: revise)" [label="unknown surfaced"];
    "Prototype an unknown\n(commit: decision: revise)" -> "User reviews Decision?";
    "User reviews Decision?" -> "Write Decision, status proposed\n(commit: decision: propose)" [label="changes requested"];
    "User reviews Decision?" -> "Accept\n(commit: decision: accept)" [label="approved"];
    "Accept\n(commit: decision: accept)" -> "Plan threshold fires?";
    "Plan threshold fires?" -> "Invoke writing-plans skill" [label="yes"];
    "Plan threshold fires?" -> "Implement directly\n(no Decision commit; CHANGELOG.md if user-facing)" [label="no"];
}

Terminal states are path-bound. Decision: the only skill invoked after

acceptance (when the Plan threshold fires) is writing-plans — never an

implementation or design skill directly. Direct: after approval, implementation

proceeds directly through the normal development workflow; no artifact. Probe:

the terminal state is a reported recommendation.

Exploring the Idea

The subsections below serve the Direct and Decision paths (a probe stops at

"present the probe, get a nod"). Sections from Exploring approaches onward

are Decision-path depth — for Direct work, context plus a few questions plus a

short in-chat design is the whole process.

Understanding the idea:

piece of the actual codebase — Grep for the symbol, Read the file, inspect the

manifest and the relevant directory — and cite path:line in your first

technical question. Never open with "what file should I look at?"; find it

yourself. Don't ask what the code can already tell you; ask what it can't. If

you searched and genuinely found nothing related, say so explicitly and treat

it as greenfield.

what the current behavior is (verified, not assumed); what it should be;

why now (blocking work, costing money, correctness, compliance); and **how

you'll know it's done** as an observable outcome rather than a feeling.

existing systems this touches, any ordering constraints, the smallest version

that still delivers the value, and the failure and rollback modes.

Exploring approaches:

Optional: parallel expert exploration. When the topic spans domains that no

single perspective covers well, dispatch 2-4 subagents in parallel — one per

domain, at least one instructed to attack the obvious approach. Each returns

approaches with trade-offs, the confidence level behind each claim, and anything

it could not verify. Fold consensus, divergence, and unverified claims into the

Options section. Skip this for single-domain topics; it is a tool, not a phase.

Name a shared specialist from ~/.agents/harness/agents/*.toml

(ai-sdk-expert, cli-expert, code-review-expert, nestjs-expert,

research-expert, triage-expert) when one fits the domain; otherwise dispatch

the host's general-purpose subagent with a domain-specific prompt.

Showing versus telling

Decide per question, not per session. The test: would they understand this

better by seeing it than reading it? Content that is visual — layouts,

architecture diagrams, side-by-side comparisons, spacing and hierarchy — earns a

picture; requirements, conceptual A/B/C choices, trade-off lists, and

API/data-model decisions stay in the terminal. A question merely about a UI

topic is not a visual question. 2-4 options max; scale fidelity to the question.

Route this at tooling that already exists here: a fenced mermaid block for

architecture and flow, and browser.open to render and view a mockup directly.

Presenting the design:

Design for isolation and clarity:

Working in existing codebases:

Review

After the decision: propose commit:

~/.agents/skills/brainstorm/references/decision-review.md. Fix findings in

place; do not re-review.

<path>. Please review it and tell me what to change before we accept it."

Wait. Requested changes → edit, commit decision: revise <id> <what changed>,

ask again.

Prototype

Enter only when review surfaces an unknown that reading the codebase cannot

settle.

nod first.

proto/<id>, created via the git-worktree skill; otherwise a scratch

directory under the system temp dir. Either way the code is throwaway and is

never committed to the Decision's branch.

Decision as a result, under the Decision's ## Prototype Findings. Commit

decision: revise <id> <what the prototype changed>.

After Acceptance

agent) → invoke the writing-plans skill, passing the Decision's id and

path. That is the only skill invoked from here.

workflow. The Decision's status stays accepted; Conventional Docs has no

implemented status and no commit event for it. If the change is

user-facing, add a CHANGELOG.md entry per the recording-changes skill.

skill invoked is writing-plans — never an implementation or design skill.

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.