/d3nexus:dev-brainstormingfrom d3nexus
Turns an idea for code work into an approved design spec through collaborative dialogue — clarifying questions, two or three alternatives, and a design the user approves section by section. Use it before creating features, building components, adding functionality or changing behaviour. When the deliverable is a document rather than code, use doc-brainstorming instead.
Ships in d3nexus. 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.
Help turn ideas for code work into fully formed designs and specs through natural collaborative
dialogue. The sibling skill for document deliverables is doc-brainstorming; the router that picks
between them is brainstorming.
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.
Do NOT invoke any implementation skill, write any code, scaffold any project, create `implementation_plan.md`, 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.Writing implementation_plan.md IS bypassing this gate — d3nexus replaces the native planning mode.
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.
You MUST create a task for each of these items and complete them in order:
lean-product-lifecycle (see Upstream Escape below)docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md with a complete table of contents, then
commit it (relocated into .devtool/epic/<epic_name>/ later if routed to dev-designer — see
Routing After Approval)flowchart TD
A["Explore project context"] --> A2{"Problem space validated?"}
A2 -->|"no — customer or need unknown"| LP((("Route to lean-product-lifecycle")))
A2 -->|yes| B{"Visual questions ahead?"}
B -->|yes| C["Offer Visual Companion<br>(own message, no other content)"]
B -->|no| D["Ask clarifying questions"]
C --> D
D --> E["Propose 2-3 approaches"]
E --> F["Present design sections"]
F --> G{"User approves design?"}
G -->|no, revise| F
G -->|yes| H["Write design doc"]
H --> I["Spec self-review<br>(fix inline)"]
I --> J{"User reviews spec?"}
J -->|changes requested| H
J -->|approved| K{"Scale?"}
K -->|"epic-scale"| L((("Invoke dev-designer skill")))
K -->|"one plan"| M((("Invoke writing-plans skill")))
The terminal state is invoking exactly one of three skills: dev-designer, writing-plans, or lean-product-lifecycle — never two, and never any other skill. Do NOT invoke frontend-design, mcp-builder, or any other implementation skill directly from dev-brainstorming.
lean-product-lifecycle routes down here for small work, but historically there was no route back
up. A session that discovered nobody had validated the customer could only carry on downhill into a
spec — the Build Trap with better paperwork. This is that route.
Fire it at step 2, before the clarifying questions. Those questions are Stage 1 of
lean-market-discovery asked less rigorously; asking them first makes the user answer the same
things twice, which is exactly the friction that makes people stop using a gate.
Stop and recommend lean-product-lifecycle when either is true:
Say plainly what it costs and what it saves: a few days of discovery against building the wrong thing. Then hand over whatever context this session already gathered, so Stage 1 does not start cold.
If the user decides to proceed anyway, that is their call — record the unvalidated assumption in the spec's risks section and continue.
Once the spec is approved (and has passed self-review), decide which skill picks it up next:
dev-designer when the approved spec describes epic-scale work: multiple independent components/services, a design that will need Kanban task breakdown and architecture/use-case/sequence diagrams, or the user explicitly called it an "epic" or large feature. Before invoking, relocate the spec file from docs/superpowers/specs/ into .devtool/epic/<epic_name>/ (creating the directory if dev-designer hasn't run for this epic yet), copy any approved Visual Companion HTML mockups from .superpowers/brainstorm/ into .devtool/epic/<epic_name>/assets/ and link them under Approved Visual Companions in the spec, fix any relative links inside the moved file, then pass its path as input — this keeps the spec, approved mockup assets, HLD, and task files for one epic all in the same directory instead of split across docs/, .superpowers/, and .devtool/.writing-plans (as before) for everything else — a single-component feature, bugfix, or small enough scope that one implementation plan covers it without a separate HLD.The deliverable decides, not the amount of writing involved. If the work changes a file that ships in the build, it is code, however much prose it also produces.
The brainstorming router decides which variant a session enters. This section covers the other
case: the branch was chosen, and chosen wrongly.
If you discover mid-session that nothing this work produces will ship in the build, stop and
hand over to doc-brainstorming. Restart inception there; do not carry a half-written code-oriented
spec across as though it were approved.
This fires on a discovery, not on a decision. It is deliberately not an edge in the process flow above — "is this actually a document?" is the router's question to ask at the start, not this skill's question to keep asking.
If brainstorming decomposed the original request into multiple sub-project specs, route each spec independently — do not merge multiple specs into a single dev-designer invocation. Each spec keeps its own spec → design → implementation lineage.
Routing to dev-designer enters the governed Epic Lifecycle. The stage sequence, the five
approval gates, and the handoff artefact each stage owes the next are defined in one place —
the dev-lifecycle skill. Do not restate them here; this
skill owns Stage 1 and Gate 1 only.
To ensure this is a true creative collaboration and not just a rigid interrogation, you MUST adopt the following mindset during the session:
Understanding the idea:
shared-contracts/ exists (physical directory = Hub, symlink = Satellite), run the read-only sync_contracts.py check --domain <domain> and brief from d3nexus:sync-shared-contracts. Apply a strict check and warn only rule:
ack, and NEVER modify application source code during brainstorming.MISSING_IN_CODE items, or user ideas touching routes, DTOs, payloads, schemas, or pipeline states) in a dedicated message to the user before presenting the design.include in this epic — planned into this epic's scope;split into a named follow-up epic — deferred to a distinct follow-up epic;ignore with explicit rationale — recorded as intentionally skipped with reasoning.snapshot_id / absent-shared-contracts/ confirmation note) under ## Shared Contract Warnings in the spec so dev-designer consumes them during task decomposition.Exploring approaches:
Presenting the design:
Design for isolation and clarity — code deliverables:
Working in existing codebases:
Documentation:
- **PIC**: <profile> resolved via python3 scripts/resume_context.py --detect-profile:
docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md (a legacy .en.md spec is accepted, not produced)## section. Produce a Vietnamese explanation only when Role 1.0 explicitly asks for it.## Shared Contract Warnings documenting user decisions on contract warnings, or noting clean snapshot state / absence of shared-contracts/.#, no trailing punctuation in headings, language tags on all fenced code blocks, clean formatting) and modern diagram standards:
flowchart TD/LR (NEVER legacy graph TD/LR), double-quote node labels containing special characters, parentheses (), brackets [], braces {}, colons :, slashes /, ampersands & (e.g. node1["Component (Core)"]), use alphanumeric IDs, and avoid trailing semicolons.diamond for decisions ?, box for actions, plaintext for commands, ellipse for states, octagon for warnings, doublecircle for start/complete), semicolons terminating every statement, and double-quoted multi-word labels.dev-designer (see Routing After Approval), it does not stay here — relocate it into the epic's own directory so every doc for that epic lives in one place.python3 skills/doc_quality_check/resources/scripts/check_document.py \
--require-toc docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md
auto_commit is enabled):
.agents/config.json — check auto_commit settingauto_commit: true (default when absent): stage the spec path and commit with
git commit -m "[<TOPIC>] Add design spec"; see
Commit Message Format; no
Co-Authored-By or other trailerauto_commit: false: skip commit and staging entirely. Print: "Skipping commit (auto_commit: false in .agents/config.json). File is ready for manual commit."Spec Self-Review: After writing the spec document, look at it with fresh eyes:
TBD, TODO, incomplete sections, or vague requirements? Fix them.flowchart syntax (no legacy graph), with all special-character labels quoted? Do DOT diagrams follow semantic shapes and statement semicolons?Fix any issues inline. No need to re-review — just fix and move on.
User Review Gate:
Before halting for Gate 1 review, record the Choice A pending decision so the dashboard highlights human action (python3 scripts/resume_context.py --pending-decision "Approve Gate 1 design spec" --decision-kind gate_1 --epic <topic_slug>). After the spec review loop passes, ask the user to review the written spec before proceeding:
"Spec written and committed to
<spec-path>. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
Implementation:
.devtool/GATE_LEDGER.md via python3 scripts/resume_context.py --gate 1 --epic <topic_slug> --approved "Spec approved" and persist architectural decisions using python3 scripts/resume_context.py --state --epic <topic_slug> --role assistant (or d3nexus:save-context).dev-designer (pass the spec's file path) for epic-scale work, or writing-plans for everything else.lean-product-lifecycle escape at step 2 and the correction exit to doc-brainstorming, are the only valid next steps.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 that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
"Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
This offer MUST be its own message. Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, 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:
skills/dev-brainstorming/visual-companion.md
Persisting approved mockups: At Stage 1 handoff for an epic, copy the final approved HTML mockup files from .superpowers/brainstorm/ into .devtool/epic/<epic_dir>/assets/ and link them under Approved Visual Companions in the approved design spec (never leave approved mockups only in .superpowers/brainstorm/).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-api-integrationGenerates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern./android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices.Other plugins' skills for the same job