brainstorm

A command that turns an early idea into a written specification with requirements that can be tested. It can also inspect the project for existing design documents and available tools.

In plain words
What is it for?
Use it to start a project, gather context, discover available tools, and create specifications for implementation.
Why use it?
It gives an unstructured idea a clear shape before implementation begins, reducing missed requirements and unclear work.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/lucasduys/forge/brainstorm
Clone the repo
git clone --depth 1 https://github.com/LucasDuys/forge
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.00733
Opus 5 $0.00005 $0.00367
Sonnet 5 $0.00002 $0.00147
Haiku 4.5 $0.00001 $0.00073

Measured 2d ago against content hash 4698d2b6c6f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

brainstorm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/brainstorm.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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).

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 65 lines · 10 tokens per session scan A 4698d2b6c6f7

Subscribe to this mod's changes

brainstorm is a command published in the GitHub repository LucasDuys/forge (55 stars, last pushed 1mo ago), licensed MIT. It adds 10 tokens to every session and 733 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.