brainstorming

brainstorming is a command for Claude Code from XRenSiu/claude-code-forge. It costs 22 tokens per session (521 once invoked), scanned A, original, MIT.

A guided conversation for turning an unclear idea into a structured design document. It explores alternatives, asks clarifying questions one at a time, records decisions and risks, and saves the result for later planning.

In plain words
What is it for?
Use it to explore a new feature, compare possible approaches, clarify constraints, and create a design document that can feed into a product requirements document.
Why use it?
It helps prevent coding from starting before the problem, scope, and requirements are understood. It is intended for vague ideas and complex choices rather than already-complete requirements.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the pdforge plugin — 10 skills, 13 commands, 5 agents, 2 hooks shipped together

Good fit Use it to explore a new feature, compare possible approaches, clarify constraints, and create a design document that can feed into a product requirements document.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xrensiu/claude-code-forge/brainstorming
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.

Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install pdforge, the plugin that ships this one along with the rest of its 10 skills, 13 commands, 5 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for brainstorming

README.md
[![agentmods](https://agentmods.dev/badge/commands/xrensiu/claude-code-forge/brainstorming/github.svg)](https://agentmods.dev/commands/xrensiu/claude-code-forge/brainstorming)
Your own site
<a href="https://agentmods.dev/commands/xrensiu/claude-code-forge/brainstorming"><img src="https://agentmods.dev/badge/commands/xrensiu/claude-code-forge/brainstorming/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for brainstorming

Your own site · 80×15
<a href="https://agentmods.dev/commands/xrensiu/claude-code-forge/brainstorming"><img src="https://agentmods.dev/badge/commands/xrensiu/claude-code-forge/brainstorming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00022 $0.00521
Opus 5.5 $0.00009 $0.00208
Sonnet 5.5 $0.00004 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 1mo ago against content hash 13b0e206e069, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

brainstorming 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 1mo 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.

plugins/pdforge/commands/brainstorming.md · 67 lines

What it actually says

Mission

通过苏格拉底式问答澄清需求,产出结构化的设计文档。

Usage

# 简短想法
/brainstorm "给 app 加个用户认证"

# 详细描述
/brainstorm "我们需要一个支持 OAuth2 和 JWT 的认证系统,企业客户要求 SOC2 合规"

# 从文件读取
/brainstorm @docs/ideas/payment-v2.txt

Behavior

  1. 激活 brainstorming skill
  2. 执行 6 阶段流程:
    • 阶段 1:侦察(静默分析代码库)
    • 阶段 2:发散探索(2-3 个方案)
    • 阶段 3:提问(每次一个问题)
    • 阶段 4:收敛呈现(分块 200-300 字)
    • 阶段 5:文档(保存 design-doc)
    • 阶段 6:交接(指引下一步)
  3. 保存设计文档到 docs/designs/YYYY-MM-DD-<topic>.md

Output

  • 设计文档:docs/designs/YYYY-MM-DD-<topic>.md
  • 包含:问题定义、需求澄清记录、推荐方案、否决方案、风险、范围边界、成功指标

Next Steps

澄清完成后:

# 生成 PRD
/prd docs/designs/<file>.md

# 或全流程自动化
/pdforge --from-design docs/designs/<file>.md

When to Use

场景 使用 /brainstorm?
需求模糊,需要探索 ✅ 是
新功能设计 ✅ 是
多种可能方案需要权衡 ✅ 是
需求已经很清晰 ❌ 直接用 /prd
有现成的需求文档 ❌ 直接用 /prd

Anti-Patterns

🚫 不要在 brainstorming 完成后直接写代码 🚫 不要跳过 PRD 生成阶段 🚫 不要一次问多个问题 🚫 不要一次性输出完整设计

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. 1mo ago First seen · 67 lines · 22 tokens per session scan A 13b0e206e069

Subscribe to this mod's changes

brainstorming is a command published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 29d ago), licensed MIT. It adds 22 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5.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-09-05.