spec-brainstorm

spec-brainstorm is a command for coding agents from Habib0x0/spec-driven-plugin. It costs 18 tokens per session (2,176 once invoked), scanned A, original, MIT.

A conversation command for turning a rough feature idea or exploratory code into a clear brief for a later specification. It helps you think through the idea without writing the formal specification yet.

In plain words
What is it for?
Use it to refine new ideas, formalize prototypes, or prepare input for the /spec command.
Why use it?
It exposes missing details, competing choices, and feasibility questions before implementation begins.

Command

Part of the spec-driven plugin — 1 skill, 19 commands, 12 agents shipped together

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/habib0x0/spec-driven-plugin/spec-brainstorm
Clone the repo
git clone --depth 1 https://github.com/Habib0x0/spec-driven-plugin

Or install spec-driven, the plugin that ships this one along with the rest of its 1 skill, 19 commands, 12 agents.

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 spec-brainstorm

README.md
[![agentmods](https://agentmods.dev/badge/commands/habib0x0/spec-driven-plugin/spec-brainstorm.svg)](https://agentmods.dev/commands/habib0x0/spec-driven-plugin/spec-brainstorm)
Your own site
<a href="https://agentmods.dev/commands/habib0x0/spec-driven-plugin/spec-brainstorm"><img src="https://agentmods.dev/badge/commands/habib0x0/spec-driven-plugin/spec-brainstorm.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,176 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.00018 $0.02176
Opus 5 $0.00009 $0.01088
Sonnet 5 $0.00004 $0.00435
Haiku 4.5 $0.00002 $0.00218

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

Security

Grade A, and why

spec-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 3d 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/spec-brainstorm.md · 228 lines

How it starts

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

/spec-brainstorm Command

Have a back-and-forth conversation to explore and refine a feature idea. No structured output yet — just discussion until the idea is solid. When ready, output a brief for /spec.

Optionally bring in domain expert consultants for specialized analysis at key decision points.

Philosophy

This is the "thinking out loud" phase. The user might have:

  • A vague idea ("I want better error handling")
  • A specific request they haven't fully thought through
  • Multiple competing approaches they're weighing
  • Questions about feasibility
  • Existing code they want to formalize into a spec — exploratory code, a prototype, or a vibe-coded feature that needs structure

Your job is to be a thought partner, not a spec writer. Ask probing questions, suggest alternatives, identify gaps, and help them arrive at clarity.

Workflow

1. Understand the Starting Point

Determine which mode the session is in:

Mode A: Idea-first (default) — The user has a concept but little or no code yet.

Mode B: Code-first (vibe-to-spec) — The user has already written exploratory code and wants to reverse-engineer a formal spec from it.

Detect Mode B when the user says things like:

  • "I hacked together..."
  • "I want to turn this into a spec"
  • "Generate a spec from what I built"
  • "I vibe-coded this and need to formalize it"
  • Or when the codebase shows recent uncommitted changes that look like a prototype
Mode A: Idea-first

If the user provided an initial idea as an argument, acknowledge it and start exploring. If not, ask what they're thinking about.

Read relevant parts of the codebase to understand context:

  • What does the current implementation look like?
  • What patterns does this codebase use?
  • What constraints exist?
Mode B: Code-first (vibe-to-spec)
  1. Read the current codebase state — focus on recently modified files, uncommitted changes, and anything that looks like a prototype or new feature.
  2. Summarize what you see — describe the current implementation in your own words: what components exist, what data flows, what APIs or UI elements are present.
  3. Confirm understanding — ask the user if your summary matches their intent and what they consider the "core" of what they built.
  4. Identify gaps — what's missing for this to be production-ready? Tests? Error handling? Edge cases? Auth?
  5. Proceed to iterative exploration — treat the current code as the "proposed solution" and work backwards to the problem statement, key behaviors, and out-of-scope items.

Read the full file on GitHub · 228 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. 3d ago First seen · 228 lines · 18 tokens per session scan A f6836bc40743

Subscribe to this mod's changes

spec-brainstorm is a command published in the GitHub repository Habib0x0/spec-driven-plugin (10 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 2,176 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-31.