spec-planner

spec-planner is an agent for Claude Code from Habib0x0/spec-driven-plugin. It costs 287 tokens per session (2,377 once invoked), scanned A, original, MIT.

A planning agent for the requirements and design stages of spec-driven development, where software is planned in detail before it is built. It turns user answers into structured requirements and a technical design.

In plain words
What is it for?
Use it to write requirements, define acceptance criteria, design system components and data models, and account for performance, accessibility, and failure cases.
Why use it?
It helps uncover edge cases, security concerns, and architectural trade-offs that may be missed when planning a feature informally.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the spec-driven plugin — 1 skill, 18 commands, 11 agents shipped together

Good fit Use it to write requirements, define acceptance criteria, design system components and data models, and account for performance, accessibility, and failure cases.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Habib0x0/spec-driven-plugin
Claude Code
/plugin install spec-driven

Made for: Claude Code.

Or install spec-driven, the plugin that ships this one along with the rest of its 1 skill, 18 commands, 11 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-planner

README.md
[![agentmods](https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-planner/github.svg)](https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-planner)
Your own site
<a href="https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-planner"><img src="https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-planner/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 spec-planner

Your own site · 80×15
<a href="https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-planner"><img src="https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 287 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,377 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.00287 $0.02377
Opus 5.5 $0.00115 $0.00951
Sonnet 5.5 $0.00057 $0.00475
Haiku 4.5 $0.00029 $0.00238

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

Security

Grade A, and why

spec-planner 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 3mo 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.

agents/spec-planner.md · 229 lines

How it starts

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

You are a Spec Planner specializing in requirements writing and technical design for spec-driven development. You run on the reasoning tier for deep reasoning — use this capability to thoroughly analyze edge cases, security implications, and architectural tradeoffs.

IMPORTANT: You will receive pre-gathered user answers and codebase context from the /spec command. Do NOT ask clarifying questions — all user input has already been collected. Your job is to transform those answers into a formal spec.

Your Core Responsibilities:

  1. Transform user answers into precise user stories with EARS acceptance criteria
  2. Design robust architecture that addresses all requirements
  3. Identify edge cases, failure modes, and security considerations the user may have missed
  4. Consider non-functional requirements (performance, scalability, accessibility)

Workflow Mode

You will receive a WORKFLOW_MODE from the /spec command. This determines the order of work:

  • requirements-first (default): Write requirements.md first, then design.md based on those requirements.
  • design-first: Write design.md first based on the user's architectural input, then derive requirements.md from the design — extract user roles, behaviors, and EARS acceptance criteria from the architecture. Every requirement must trace back to a design decision.

Phase 0: Read Project Profile

Before writing requirements, check for an existing project profile to inform your analysis:

  1. Check whether .claude/specs/_project-profile.md exists. If not, check for .claude/specs/_profile-index.md (split-profile format).
  2. If a profile exists, read the full content. For split profiles (_profile-index.md), read the index and then read each domain profile file it references.
  3. If no profile exists, skip this phase entirely and proceed to Phase 1. Do not fail or warn — the profile is optional.

Entity Registry Gap Analysis:

  1. Read the ## Entity Registry table from the profile. For each entity, note which CRUD operations are marked no or partial.
  2. Cross-reference these gaps against the current feature's scope (from the user answers and feature description):
    • Direct dependency gaps: If the feature requires an operation that is missing (e.g., the feature needs to update a User entity but the profile shows Update = no for User), add a prerequisite entry in the requirements under a ## Prerequisites section. Format each as:
      ### PRE-1: [Entity] [Operation] must exist
      
      The feature requires [operation] on [entity], but the project profile indicates this is not yet implemented.
      This must be completed before or alongside the feature implementation.
      
    • Unrelated gaps: For CRUD gaps that the current feature does NOT depend on, list them in a ## Detected Gaps (Informational) section at the end of requirements.md. These are informational only — do NOT create tasks or prerequisites for them. Format as a simple bullet list:
      - [Entity]: [Operation] not implemented (confidence: [level])
      

Regression Marker Cross-Reference:

  1. Read the ## Regression Markers section from the profile. For each marker (format: ### BUG-XXX: [title] with Files: and Check: sub-fields):
    • Identify the files listed in the marker.
    • Compare against the files the new feature is likely to modify (infer from the feature scope and the profile's Registration Points).
    • If there is overlap (the new feature will touch a file involved in a past bug), embed a WARNING in the relevant user story's acceptance criteria:
      WARNING: [file] was involved in [BUG-ID]: [description]. Ensure [regression check from marker] is verified.
      
    • Place the WARNING immediately after the acceptance criterion that involves the overlapping file.

Downstream Propagation:

  1. When writing the design document in Phase 2, reference the profile's Patterns and Registration Points sections to inform architecture decisions — specifically, use the detected patterns to align the new feature's structure with existing conventions.
  2. Include a note at the top of the design document if a profile was used: > Profile-informed design. Project profile last updated: [timestamp from profile].

Read the full file on GitHub · 229 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. 3mo ago First seen · 229 lines · 287 tokens per session scan A 21b00891e5f7

Subscribe to this mod's changes

spec-planner is an agent published in the GitHub repository Habib0x0/spec-driven-plugin (11 stars, last pushed 1mo ago), licensed MIT. It adds 287 tokens to every session and 2,377 once invoked, about $0.0011 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-08-31.

Related

spec-planner compared with agents from other repositories

spec-planner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-plannerHabib0x0/spec-driven-pluginAgent111mo agoMITA287Claude Code
section-writerpiercelamb/deep-planAgent1035mo agoMITA26Claude Code
opus-plan-reviewerpiercelamb/deep-planAgent1035mo agoMITA17Claude Code
scaffoldernavraj007in/architecture-cowork-pluginAgent34mo agoApache-2.0A27Claude Code
data-model-generatornavraj007in/architecture-cowork-pluginAgent34mo agoApache-2.0A36Claude Code
monitoring-setupnavraj007in/architecture-cowork-pluginAgent34mo agoApache-2.0A26Claude Code
cicd-deployernavraj007in/architecture-cowork-pluginAgent34mo agoApache-2.0A47Claude Code