/flow-extras:brainstorm [focus path or theme] [--cells N]from flow-extras
Brainstorms fresh, project-specific improvement ideas for an existing codebase and shows each as a plain-word card with 2-4 small pictures: safe bets, something to remove, stretches, wild cards, and a couple of real bugs worth a quick fix. Use when the user asks to brainstorm, 'what should I build next', 'how can I improve this', 'ideas for this repo', 'what's missing', 'what would make this better', or wants product, UX or DX ideas for code they have. Not for growing one idea the user already has (use develop-idea), judging an idea (use scrutinize-idea), or explaining how code works (use design:smoothbrain).
Ships in flow-extras. 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; scripts run unread.
One model asked for ideas gives the ideas every model gives. Asking it again, or harder, gives the same ideas. Different ideas come from different inputs. So this skill splits the repo into slices, deals each blind agent its own slice, shape and persona by dice, removes the typical ideas afterwards, and draws only the winners.
The reader is tired. The page is one card per idea, the same frame every time, with small pictures that each prove one thing. No dashboards.
<skill> below means this skill's folder. Run every script with node. All paths absolute.
1. Scope. The repo is the git root of the current directory unless the user names one. A focus ("only the CLI", a path) goes to --focus. Anything else the user said about what matters goes to the workflow as ask. Do not ask questions first; run.
2. Mine. Make a run dir and cut the repo into evidence slices:
node <skill>/scripts/mine.mjs --repo <repo> --out ~/.brainstorm/<repo-name>/<YYYY-MM-DD>-<HHMM> [--focus <path>]
It writes project.md, tree.txt, slices/*.md and slices.json. Read project.md. Exit 1 means no slice reached 3 evidence items (a repo of a few files): read the repo's files yourself, write one slices/whole-repo.md packet that cites them by path:line, list it in slices.json as [{"id":"whole-repo","title":"the whole repo","n_items":<n>,"strength":0.5,"primary_files":[...],"packet":"slices/whole-repo.md"}], and go on.
3. Roll. Let the dice deal the cells. Never pick or edit cells yourself: the model picks the same ones every run.
node <skill>/scripts/roll.mjs --slices <run>/slices.json --repo <repo-name> --json [--cells N]
It prints {key, cells} and writes <run>/cells.json. Default 8 cells plus one wild cell. Every run gets a subtract cell first. The decks it deals from are data/lenses.json (idea shapes), data/personas.json and data/constraints.json; edit those, not the cells, to change what can be dealt.
4. Run the workflow. Make <run>/pictures/, then:
Workflow({ scriptPath: "<skill>/workflow/brainstorm.js",
args: { repo, run, skill, date: "<YYYY-MM-DD>", cells: <cells from cells.json>, focus, ask } })
repo = absolute repo path; run = the run dir from step 2; skill = this skill's folder; cells = the cells array itself (paste the JSON, not a path: workflow scripts cannot read files); focus and ask may be omitted.
It runs, in parallel, blind generators (one per cell, each with an ambition size: a big bet, a feature, or a quick win), one sweep for the sharpest real defects, one whole-repo reader for the boldest product bets, one general whole-repo reader, and three hidden "typical ideas" anchors. Then it groups same-move ideas, marks the typical ones, refutes each against the code, and ranks the survivors on plain cards three ways (surprise, usefulness, fit to this project), each twice. It picks 3 safe bets, 2 wild cards, 2 stretches (wild cards and stretches must fit this project), 4 quick fixes from the defect sweep and a remove idea, one idea per problem, then has one reader swap out any two picks that are the same idea, then writes a plain card and draws 2-4 pictures for each pick. It returns the page data. Wait for it; do not redo its work by hand. No Workflow tool in this session: say this skill needs it, and stop.
If it returns error: no ideas generated, read the silent reasons, then re-roll once (step 3 with no flags) and rerun. Two empty runs: tell the user the repo gave the generators too little to work with, and why.
5. Build and check the page. Write the returned object, plus "key" from step 3, to <run>/final.json (drop stats; keep it in <run>/stats.json). Then:
node <skill>/scripts/assemble.mjs --run <run>
node <skill>/scripts/check.mjs <run>/page.html --render
Fix every FAIL at its source. Word counts (sentence, title, caption) are fixed in final.json. Overlaps, cut-off or tiny labels are fixed in that picture's SVG file under <run>/pictures/. Read references/page.md before editing a card or picture; skip it when check passes first time. Re-run both scripts until check passes.
6. Blind read. Screenshot the page and hand only the PNGs to a fresh reader:
node <skill>/scripts/shot.mjs <run>/page.html <run>/read-390.png --width 390 --full
Spawn one Agent (model: sonnet): "You have never seen this project. Using only these screenshots, for each numbered card say in one sentence what changes and for whom. Then list every word, picture or label you could not understand." Compare each answer with the card's sentence. A mismatch is an answer that names a different change or a different person; different wording for the same change is fine. Fix every mismatched card and every listed word or picture (plainer words, a gloss, a redrawn or deleted picture), then rebuild. One round, then ship: a second reader mostly finds wording taste, not confusion, and each round costs a full screenshot read.
7. Ship. If the Artifact tool is available, rebuild with --artifact and publish <run>/page.html; otherwise give the file path. The chat reply is three lines: the headline, the link or path, and the titles of the safe bets. Mention the run key so a run can be compared later.
Model tiers are fixed in the workflow. Generators, anchors, ranking and card writing use opus (idea quality tracked the model in earlier evals); refuters use sonnet (checkable work against the code). Edit the constants at the top of workflow/brainstorm.js, never per run.
Blind generators. No generator sees another's ideas, the typical list, or earlier runs. Shared ideas make every agent converge.
No ban lists in generator prompts. Naming the obvious ideas plants them. The anchors run beside the generators and their list is only used to filter afterwards. Typical ideas are shown to the user under "What we left out", so the reader sees what was skipped on purpose.
Ordinary personas. A nurse turned developer, the author after nine months away. Never "a principal engineer" or a famous founder: expert and celebrity personas narrow the ideas.
Judges see plain cards and rank, not score. No titles, no lens names, no markdown: polished wording wins with judges, so it is removed first. Judges rank all survivors against each other (1-5 scores bunch in the middle). Effort is never a divisor.
Wild cards are protected. They are picked by surprise, not by score. The reader sees them labelled as bets with a first test that could kill them.
Text first, pictures last. Ideas are chosen on text. Clear drawings make ideas look better than they are, so nothing is drawn before the choice.
Plain words. Sentences of 20 words or fewer. The project's own nouns, each glossed once. No skill jargon on the page (tiers, levels, lenses, slices).
page.html. The next assemble overwrites it, and the frame is what lets a tired reader learn one card and read the rest. Edit final.json or an SVG, then assemble.final.json: a picture that fails twice usually tries to show too much, and a card with fewer honest pictures still reads.| Symptom | Do this |
|---|---|
mine.mjs finds no git | Fine; history slices are skipped. Say so in the reply. |
Most ideas match a typical idea (stats.json typical_hits high) | The repo is mature or tiny. Ship fewer cards; never pad. |
| A drawing keeps failing check | Delete that picture from final.json. A card with fewer honest pictures beats a broken one. |
| Check FAILs on a word count | Shorten the text in final.json; never loosen the checker. |
No Chrome for shot/check --render | Run check without --render. For the blind read, give the reader each card's title and sentence as text (no pictures) and apply the same mismatch rule. Say the pictures were not looked at. |
| The look does not suit the project | assemble.mjs --look <id> picks one of the 8 looks in data/looks.json by hand; by default the run key picks it, so looks vary between runs. |
check.mjs --render prints no FAIL.evidence was checked by the refuter (none says "not checked"); if some were not, say which in the reply.data/constraints.json (opens in a new tab)data/lenses.json (opens in a new tab)data/looks.json (opens in a new tab)data/personas.json (opens in a new tab)references/page.md (opens in a new tab)scripts/assemble.mjs (opens in a new tab)scripts/assemble.test.mjs (opens in a new tab)scripts/check.mjs (opens in a new tab)scripts/check.test.mjs (opens in a new tab)scripts/mine.mjs (opens in a new tab)scripts/mine.test.mjs (opens in a new tab)scripts/roll.mjs (opens in a new tab)scripts/roll.test.mjs (opens in a new tab)scripts/shot.mjs (opens in a new tab)workflow/brainstorm.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tomaspalsson/flow --plugin flow-extras20 skills in this plugin
/auditStage-gated parallel code audit for a whole codebase or module: recon → 6 parallel detection agents (correctness, security, performance, design, tests, style) → dedup + triage → user approval gate → fix planning → second approval gate → serialized apply with revert-on-failure → verification. Use for whole-codebase/module debt inventory, health checks, modernization, production-readiness sweeps, or quality audits. Triggers on: /audit, audit this codebase, audit repo, find tech debt, pay down debt, code health check, make production-ready, refactor everything, apply clean code, quality sweep. Do NOT use for: single-PR or branch review ≤10 files (use /pr-reviewer), one-file cleanup (use /simplify), bug fix (use /fix), feature work (use /flow:next), style-only formatting (run the formatter), or uncommitted-change review (use /review). Scope threshold: whole-codebase or whole-module only — not for incremental branch work./babysitDrive one open pull request, or several independent ones, toward merge-ready after flow ships a draft: fix failing CI and resolve merge conflicts. Use when asked to babysit a PR, get it green, fix the CI, resolve the conflicts, or check on one or more PRs. Modes: check (one read-only report) or drive (loop until CI is green and the PR merges clean, or a hard stop). Open review threads are reported and left to the user. Never merges and never marks a draft ready. Not for opening the PR (use /flow:next), not for reviewing someone else's PR (use /pr-reviewer), not for diagnosing a bug from scratch (use /flow:fix).Other plugins' skills for the same job