brain-storm
Brainstorm future features and improvements based on the current codebase. This is the ideation step before writing specs. Use when the user asks to brainstorm ideas, generate feature ideas, explore improvements, review future opportunities, or clean up outdated brainstorm notes.
What this skill does
# Brain Storm
Use this skill before `/writing-specs` to explore what could be built next. The skill scans the codebase, proposes grounded ideas, adds lightweight wireframes, and saves selected ideas into the `brain-storm/` directory for later refinement.
## Two Modes
This skill supports two modes. Pick the mode that matches the user's request.
- **Brainstorm Mode**: Generate, compare, and save new ideas.
- **Cleanup Mode**: Review existing brainstorm notes, detect already-implemented ideas, and remove them after user confirmation.
## Principles
1. **Explore before proposing** - Understand the codebase before suggesting ideas.
2. **Diverge then converge** - Generate multiple strong options before asking the user to choose.
3. **One idea = one file** - Store each meaningful idea as its own markdown file.
4. **Always visualize** - Every saved idea should include a simple ASCII wireframe or system sketch so the implementation direction is easier to discuss.
5. **Prune the implemented** - Cleanup mode should remove stale brainstorm notes only after evidence-based verification and user approval.
## Directory Rules
- Ideas live in `brain-storm/` at the project root.
- File format: `brain-storm/{name}.md` or `brain-storm/{subdir}/{name}.md`.
- Only one directory level is allowed under `brain-storm/`.
- Filenames must use lowercase-with-hyphens.
- Create subdirectories only when the user requests grouping or when five or more ideas share the same domain.
---
## Brainstorm Mode
### Step 1: Scan and Ideate
1. Run `Glob` on important project directories such as `src/**`, `app/**`, `pages/**`, `components/**`, and `lib/**` to understand the structure.
2. Run `Glob brain-storm/**/*.md` to inspect existing brainstorm notes.
3. Read `package.json`, `README.md`, and any obvious entry-point files to understand the product and stack.
4. Generate 3-5 ideas based on the scan. For each idea, present:
- **Title**
- **Description**: 1-2 sentences
- **Complexity**: Low / Medium / High
- **Quick wireframe sketch**: 3-5 lines of ASCII to give a visual sense of the idea
5. Ask the user which ideas to save.
Ideas must be grounded in the actual codebase, actionable, and varied in scope.
### Step 2: Deduplicate and Write
For each selected idea:
1. Extract 3-5 key nouns from the title and description.
2. Run `Grep` across `brain-storm/**/*.md` for those keywords.
3. If a duplicate or near-duplicate exists, ask whether to update the existing file, create a new file, or skip it.
4. Read the idea template at `templates/idea-template.md`.
5. Read the wireframe guide at `templates/wireframe-guide.md`.
6. Fill every section:
- **Summary**: 1-2 sentences
- **Motivation**: 2-4 sentences referencing specific codebase areas
- **Proposed Approach**: 3-7 bullet points without code snippets
- **Wireframe**: ASCII art in a fenced code block, at least 10 lines
- **Complexity**: Low / Medium / High with a one-sentence reason
- **Open Questions**: 1-3 bullets
7. Write the completed idea file under `brain-storm/`.
### Step 3: Report
After writing all idea files, include this report in the final response:
```markdown
## Brain Storm Report
| Field | Value |
|-------|-------|
| Action | Created / Updated |
| Ideas Proposed | {count} |
| Ideas Saved | {count} |
### Saved Ideas
| File | Title | Complexity |
|------|-------|-----------|
| `{path}` | {title} | {complexity} |
### Next Steps
- Refine an idea into a spec (recommended — pass the file path so writing-specs reads it directly):
`/writing-specs brain-storm/{file-name}.md`
(Title or keyword also works: `/writing-specs "{idea title}"`)
- Generate a UI prototype preview for a UI-focused idea: `/ui-prototype-preview {idea title}`
```
The report must be part of the final response, not a separate file.
---
## Cleanup Mode
Triggered by requests such as "clean up brainstorm notes" or "remove ideas that are already implemented".
### Step 1: Detect Implemented Ideas
1. Run `Glob brain-storm/**/*.md` to list all idea files.
2. For each idea:
a. Read the file and extract the title and summary.
b. Extract 3-5 implementation-indicator keywords such as component names, function names, routes, or API endpoints.
c. Run `Grep` for those keywords in the source code while excluding `brain-storm/`, `specs/`, `node_modules/`, and `.git/`.
d. Mark the idea as implemented only if multiple matches clearly represent the described functionality rather than TODOs or naming coincidence.
### Step 2: Confirm and Delete
1. Present the implemented candidates with supporting evidence.
2. Ask the user whether to delete all, delete selected ideas, or cancel.
3. Delete files only after explicit confirmation.
4. Report the result with status and evidence for each reviewed idea.
---
## Non-interactive defaults
If the harness signals non-interactive mode (auto mode, scheduled run, headless agent — i.e. `AskUserQuestion` is unavailable or the user has stated "automatic" / "no questions"), use these defaults instead of asking. **Always echo the defaulted decisions back in the final report so the user can override.**
| Decision point | Default | Rationale |
|---|---|---|
| Which ideas to save (Brainstorm Step 1) | Save 2 ideas: pick the most diverse pair (1 UX/polish + 1 new capability), preferring Low/Medium complexity. | Diversity beats volume; low-complexity proves out the workflow without committing to large work. |
| Duplicate detected (Brainstorm Step 2) | Skip writing the new file. | Never overwrite user-authored notes silently. |
| Cleanup deletion (Cleanup Step 2) | **Refuse**: report candidates only, do not delete. | Deletion is unrecoverable; require an explicit follow-up command. |
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.