Skip to content

/brainstorm

Turn an idea into concrete specs with testable requirements

From plugin
forge
5813 skills9 agents13 commands3 hooks
> /plugin marketplace add LucasDuys/forge
> /plugin install forge@forge-marketplace

Command definition

brainstorm.md
description: "Turn an idea into concrete specs with testable requirements"
argument-hint: "[TOPIC] [--from-code] [--from-docs PATH]"
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh:*)", "Bash(node ${CLAUDE_PLUGIN_ROOT}/scripts/forge-tools.cjs:*)", "Bash(node ${CLAUDE_PLUGIN_ROOT}/scripts/forge-wizard.cjs:*)", "Read(*)", "Write(*)", "Edit(*)", "Glob(*)", "Grep(*)", "Agent(*)"]

Forge Brainstorm

First-Run Wizard (R004.AC3)

Before anything else, fire the one-shot token-reduction wizard. Idempotent — prints once on first install, then no-ops forever. Suppressed when `/forge:watch` is rendering its own banner (R004.AC6).

node "${CLAUDE_PLUGIN_ROOT}/scripts/forge-wizard.cjs" --forge-dir .forge

Step 1: Initialize project state

If `.forge/` does not exist, initialize it:

bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh" .

Step 2: Discover capabilities

Scan the user's environment for MCP servers, skills, and plugins:

node "${CLAUDE_PLUGIN_ROOT}/scripts/forge-tools.cjs" discover --forge-dir .forge

This writes `.forge/capabilities.json` with available tools that can enhance brainstorming and execution.

Step 2.5: Auto-Detect Project Context

Before starting the interactive Q&A, automatically detect available context:

**Design system:** Check if `DESIGN.md`, `design.md`, or `docs/DESIGN.md` exists. If found, pass its path to the brainstorming skill so it can reference existing design constraints in the spec. If not found, the brainstorming skill will ask whether the user wants one (for UI projects).

**Knowledge graph:** Check if `graphify-out/graph.json` exists. If found, load the god nodes and community structure to inform the brainstorming Q&A with architecture context. This helps propose approaches that align with existing codebase structure.

Neither requires any user action. Detection is automatic and silent.

Step 3: Start brainstorming

**IMPORTANT: The brainstorm phase is mandatory before planning and execution.** The spec files produced by this workflow are the ONLY way to get `status: approved` specs, which are required by `/forge plan` and `/forge execute`. Do NOT skip this step. Do NOT write spec files directly without going through the full interactive brainstorm flow.

Now invoke the `forge:brainstorming` skill with the user's arguments, plus any auto-detected context (design system path, graph summary).

**User arguments:** $ARGUMENTS

Pass the full arguments to the skill. The skill handles:

  • Plain topic: interactive brainstorm from scratch
  • `--from-code`: analyze existing codebase, generate spec draft
  • `--from-docs PATH`: read documents, extract requirements into spec format

**Workflow enforcement:** The brainstorming skill MUST: 1. Ask clarifying questions (minimum 3, even for simple topics) 2. Present 2-3 approach proposals with trade-offs 3. Wait for EXPLICIT user approval before writing the spec 4. Only set `status: approved` after the user confirms their choice

If the user tries to skip brainstorming or rush through it, gently enforce the workflow. A few minutes of clarification prevents hours of wasted implementation.

Read more
@lucasduys
Ships withforge

Turn a one-line idea into a branch with tested, reviewed, committed code. The brainstorm-to-commit pipeline for Claude Code.

Stars on GitHub

Momentum

stars in total
58
Star history of LucasDuys/forge on GitHub, a chart by star-history.com

Other commands on forge.

backprop
Auto-invoked

backprop

Command

Trace a bug back to a spec gap and generate regression tests

@lucasduys@lucasduysInstall Command
collaborate
Auto-invoked

collaborate

Command

Opt-in multiplayer mode -- brain-dump together, claim tasks across machines, flag decisions async

@lucasduys@lucasduysInstall Command
plan
Auto-invoked

plan

Command

Decompose specs into task frontiers with dependency tracking

@lucasduys@lucasduysInstall Command
resume
Auto-invoked

resume

Command

Continue Forge execution after context reset or interruption

@lucasduys@lucasduysInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command