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.
npx agentmods add commands/habib0x0/spec-driven-plugin/spec-brainstormgit clone --depth 1 https://github.com/Habib0x0/spec-driven-pluginWrote 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.
[](https://agentmods.dev/commands/habib0x0/spec-driven-plugin/spec-brainstorm)<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>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.
| Model | Per session | Once 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 |
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.
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)
- Read the current codebase state — focus on recently modified files, uncommitted changes, and anything that looks like a prototype or new feature.
- 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.
- Confirm understanding — ask the user if your summary matches their intent and what they consider the "core" of what they built.
- Identify gaps — what's missing for this to be production-ready? Tests? Error handling? Edge cases? Auth?
- 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.
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.
- 3d ago First seen · 228 lines · 18 tokens per session scan A f6836bc40743
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.
Other commands, from other repositories
receipts
Find the receipt. A dated line, or it did not happen.
ship
Deliver the increment. Then go live with a rollback you have run.
triage
AI-powered reachability triage for dependency vulnerabilities. Scans for CVEs then searches your source code to estimate whether each vulnerable API is actually called. Outputs a prioritized FOUNDINSOURCE / UNCERTAIN / NOTFOUNDINGREP report.
crossframe-essay
使用 CrossFrame Essay 把用户给出的主题、素材或问题写成中文批判性洞察文章。.
story-pack
读取:docs/story-$ARGUMENTS-.md、docs/GLOBAL-CONTEXT.md(只读)、docs/PRD.md(只读) | 写入:docs/story-$ARGUMENTS-exec-pack.yaml(仅 PASS 时写入;纯 YAML;不包含 ) | 模板:N/A.
diagram
Generate an Excalidraw architecture or flow diagram using the ExcaliClaude skill.