/aimi-engineering:aimi:brainstorm runs instead · from aimi-engineering
Guides structured brainstorming sessions to clarify requirements before planning. Uses batched multiple-choice questions, adaptive exit, and design document capture. Triggers on brainstorm, explore idea, think through, what should we build.
This skill never runs in Claude Code
It ships in aimi-engineering at skills/, but /aimi-engineering:aimi:brainstorm (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Deprecated: This skill is no longer loaded by brainstorm.md. The command is self-contained. Retained for reference only.
Clarify WHAT to build through collaborative dialogue before planning HOW to build it.
Guide the user through structured brainstorming: understand the idea via research and batched questions, optionally explore approaches, then capture decisions in a design document.
| Variable | Type | Purpose |
|---|---|---|
loaded_design_refs[] | string array | Tracks frontend-design reference files already read this session. Prevents re-loading the same file and enforces the 3-file-per-round cap. Reset per brainstorm session. |
The brainstorm uses a two-phase question approach:
/aimi:brainstorm [description] inputThis combines the speed of Ralph-style shorthand ("1A, 2C, 3B") with context-aware questions that reference actual codebase patterns.
When the user's initial description contains any UI keyword (typography, font, color, palette, contrast, spacing, layout, motion, animation, responsive, mobile, copy, hierarchy, affordance, feedback, form, input, critique, score), trigger the design reference bootstrap once before generating the first question batch:
${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/index.md and store its keyword-to-file table.brand.mdproduct.mdproduct.mdbrand.md or product.md) from ${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/ and append its path to loaded_design_refs[].Skip this step entirely for non-UI brainstorms.
Present questions as batched multiple-choice using Ralph-style formatting:
1. What is the primary goal?
A. Improve user experience
B. Reduce technical debt
C. Add new capability
D. Other: [please specify]
2. What is the scope?
A. Minimal viable version
B. Full-featured implementation
C. Just the backend/API
D. Other: [please specify]
3. Who is the target user?
A. End users
B. Developers/API consumers
C. Admin users
D. All users
Rules:
Accept all response formats gracefully:
| Format | Example | Action |
|---|---|---|
| Shorthand | "1A, 2C, 3B" | Parse directly |
| No numbers | "A, C, B" | Map to questions in order |
| Free-form | "I prefer option A for the first one" | Parse intent |
| Partial | "1A, 2C" (skipped 3) | Accept partial, ask about skipped if critical |
| Mixed | "1A but for question 3 none fit — I want X" | Parse shorthand + free-form |
Never re-ask a question just because the format was unexpected. Parse the intent and continue.
After parsing each free-form reply (including "Other: [specify]" answers and any open-ended response), run this keyword scan before generating the next question batch or narrative:
index.md (loaded in Phase 1.7 or on demand).loaded_design_refs[].${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/ and append to loaded_design_refs[].Vague-intent fallback: When the reply is too vague to match specific keywords, rely on the already-loaded register file (brand.md or product.md). Only ask one AskUserQuestion clarifier when the register file does not address the reply's apparent intent.
Skip scan when loaded_design_refs[] already contains 3+ files and the reply contains no new keyword matches.
When the user selects None — show again / revise (or equivalent dissatisfaction signal) before a variant set is authored:
loaded_design_refs[] (cap: 3 new files total across both Phase 2 and this step in the same round).When codebase research returns findings, generate contextual options:
When research is empty or fails, fall back to generic topic-based questions.
Cover these categories across question rounds:
| Topic | Focus |
|---|---|
| Purpose | The problem being solved, and why it matters now |
| Users | Who is affected, and in what situation they meet it |
| Constraints | Technical limits, deadlines, and what this depends on |
| Success | The outcome that counts as done, and how it will be observed |
| Edge Cases | Failure paths, empty states, and what must never happen |
| Existing Patterns | Similar features already in the codebase that this should follow |
Exit questioning when ANY of these are met:
After each round, assess which topics remain uncovered and generate targeted follow-up questions.
Only propose approaches when multiple valid paths exist. Skip when there's one obvious direction.
If proposing approaches, present 2-3 with this structure:
### Option A: [Name]
[What it is, in two or three sentences]
**Advantages:** [short list]
**Drawbacks:** [short list]
**Fits when:** [one sentence]
Say which option you recommend and why, and favor the simplest one that meets the need.
Apply these throughout brainstorming:
Write brainstorm output to .aimi/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md:
---
date: YYYY-MM-DD
topic: <kebab-case-topic>
---
# <Topic Title>
## What We're Building
[What is being built, in one or two short paragraphs]
## Why This Approach
[Approaches considered and rationale for choice]
## Key Decisions
- [Decision]: [why it was chosen]
- [Decision]: [why it was chosen]
## Design Decisions
<!-- Phase 4 hook: enumerate each design reference loaded during this brainstorm -->
<!-- Format: "**<filename>** — <one-sentence guidance hint drawn from the file>" -->
<!-- Omit this section entirely when loaded_design_refs[] is empty -->
## Open Questions
- [Any unresolved questions]
## Next Steps
> Run `/aimi:plan` to generate implementation tasks
When writing the brainstorm document, populate the Design Decisions section with one entry per file in loaded_design_refs[]:
- **typography.md** — Prefer a two-weight type scale (regular + semibold) to maintain hierarchy without visual noise.
- **product.md** — Optimise for data-density; users scan tables more than they read prose.
Use a one-sentence hint that captures the most actionable guidance from each file for the current topic. Omit the section when loaded_design_refs[] is empty.
Before handoff, resolve all open questions. If the design document has items in the Open Questions section, ask the user about each one. File each answered question under a "Resolved Questions" section. Only proceed to handoff when Open Questions is empty or the user explicitly defers them.
Derive the filename slug from the feature description:
Example: "Add social login with Google and GitHub OAuth" → add-social-login-with-google-and-github-oauth
When interpolating the user's feature description into research agent prompts, strip:
Keep output sections concise (200-300 words max). After presenting approaches or key decisions, pause to validate:
Before saving the brainstorm document:
/aimi:plan.aimi/brainstorms/ existsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aimi-so/aimi-engineering-plugin --plugin aimi-engineering19 skills in this plugin
/agent-browserBrowser automation using Vercel's agent-browser CLI. Use when you need to interact with web pages, fill forms, take screenshots, or scrape data. Alternative to Playwright MCP - uses Bash commands with ref-based element selection. Triggers on "browse website", "fill form", "click button", "take screenshot", "scrape page", "web automation"./agent-native-architectureBuild applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop./Other plugins' skills for the same job