spec-plan

spec-plan is a command for coding agents from Connorrmcd6/vibe-spec. It costs 49 tokens per session (603 once invoked), scanned A, original, MIT.

A command that creates high-level plan files for the phases listed in a project specification. Each file records its scope and status so work can be planned phase by phase.

In plain words
What is it for?
Reading the project specification, finding its phase index, and generating plan files for all listed phases or for one named phase.
Why use it?
A project with only a phase list leaves developers without a usable starting document for each phase. This command creates the missing planning documents in one pass.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the vibe-spec plugin — 1 skill, 9 commands 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/connorrmcd6/vibe-spec/spec-plan
Clone the repo
git clone --depth 1 https://github.com/Connorrmcd6/vibe-spec

Or install vibe-spec, the plugin that ships this one along with the rest of its 1 skill, 9 commands.

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-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/connorrmcd6/vibe-spec/spec-plan.svg)](https://agentmods.dev/commands/connorrmcd6/vibe-spec/spec-plan)
Your own site
<a href="https://agentmods.dev/commands/connorrmcd6/vibe-spec/spec-plan"><img src="https://agentmods.dev/badge/commands/connorrmcd6/vibe-spec/spec-plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 603 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.00049 $0.00603
Opus 5 $0.00024 $0.00302
Sonnet 5 $0.00010 $0.00121
Haiku 4.5 $0.00005 $0.00060

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

Security

Grade A, and why

spec-plan 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 4d 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-plan.md · 50 lines

What it actually says

You are running Step 4 of the Vibe-Spec spec-driven workflow: generating the phase plan files. See the vibe-spec skill (${CLAUDE_PLUGIN_ROOT}/skills/vibe-spec/reference/00-workflow.md) for the phase-doc conventions.

By default this produces one plan file for every phase in the index, so the user ends with a complete set and can start a fresh session on any phase.

What to do

  1. Read docs/project-spec.md and find the phase index. If there's no phase index, tell the user to run /spec-phases first.

  2. Determine the set of phases to generate:

    • If $ARGUMENTS names a specific phase, generate only that one (use this to (re)generate a single phase).
    • Otherwise, generate all phases listed in the index. Skip any phase whose plan file already exists unless its content is just a stub, so re-running is safe and won't clobber work in progress.
  3. For each phase in the set, create its plan file at the path named in the index (e.g. docs/plans/phase-1-foundation.md). Open every file with this header:

    # Phase 1 — Foundation
    
    | Field | Value |
    |-------|-------|
    | **Scope** | Project scaffold, data ingestion |
    | **Detail level** | High-level |
    | **Status** | Planned |
    

    Valid statuses: PlannedIn ProgressComplete. Detail level starts High-level here and is promoted to Detailed in /spec-implement.

  4. Fill in each plan at a high level — enough structure to understand scope and sequence, not full implementation detail. For each stack area a phase touches, pull the relevant vibe-spec reference file (e.g. 05-prisma.md for schema work, 07-auth.md for auth) and capture the documented approach and key conventions so each phase doc doubles as an architecture reference. When a phase establishes a documented invariant worth governing, note it should be anchored as a Surface hub claim during implementation (20-surface.md).

Keep every plan high-level — full detail comes when you implement. When done, list the plan files you created and tell the user they can now start a fresh session and run /spec-implement on the first phase.

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. 4d ago First seen · 50 lines · 49 tokens per session scan A 0b06194ba33f

Subscribe to this mod's changes

spec-plan is a command published in the GitHub repository Connorrmcd6/vibe-spec (9 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 603 once invoked, about $0.0002 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.