spec

spec is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 29 tokens per session (3,945 once invoked), scanned A, original, MIT.

A guided workflow for turning unclear or wide-ranging feature requests into a written specification before coding.

In plain words
What is it for?
Use it to investigate repository context, identify the feature's scope, and prepare a specification for review.
Why use it?
It helps clarify the work's scope and requirements before implementation begins, reducing misunderstandings and rework.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

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 feature-dev plugin — 2 skills, 8 commands, 13 agents shipped together

Good fit Use it to investigate repository context, identify the feature's scope, and prepare a specification for review.

Compare 6 commands 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 juanmhidalgo/claude-plugins
Claude Code
/plugin install feature-dev

Made for: Claude Code.

Or install feature-dev, the plugin that ships this one along with the rest of its 2 skills, 8 commands, 13 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

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/spec/github.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/spec)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/spec"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/spec/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/spec"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,945 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.00029 $0.03945
Opus 5.5 $0.00012 $0.01578
Sonnet 5.5 $0.00006 $0.00789
Haiku 4.5 $0.00003 $0.00394

Measured 17d ago against content hash a44067980164, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec 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 17d 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.

feature-dev/commands/spec.md · 160 lines

How it starts

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

Context

  • Branch: !git branch --show-current
  • Recent commits: !git log --oneline -5
  • Additional directories: !jq -r '.permissions.additionalDirectories[]? // empty' .claude/settings.local.json 2>/dev/null || true
  • Parent context file: !test -f ../CLAUDE.md && echo "../CLAUDE.md exists (read for repo catalog)" || echo "no ../CLAUDE.md"
  • Feature store: each feature lives in .feature-dev/features/<slug>/, managed by ${CLAUDE_PLUGIN_ROOT}/scripts/features.py (pass --root <repo root>). Layout: artifact-locations.md.
  • Spec store option: ${user_config.spec_store} (a literal ${user_config...} here means file).
  • Arguments: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/args.sh" '$ARGUMENTS'

<best_practices> @feature-dev/skills/spec-driven-development/SKILL.md </best_practices>

Spec-Driven Development Workflow

First, check for --publish <SPEC> <target>. --publish is a flag the parser does not know, so it stays in positional: when positional[0] is --publish, positional[1] is <SPEC> and positional[2] is <target>. Go straight to Publish Mode below — it skips the authoring phases (Specify, Handoff) entirely and never reads the rest of the arguments as a feature description. Otherwise, continue below.

Then read the description. positional, joined with spaces, is the feature description. --with-tasks was removed in 3.0.0: if it is there, drop it and say in one line that the plan comes from /feature-dev:explore-plan (or, for a small feature, /feature-dev:tdd straight from the ACs). If the Arguments line in Context is a shell error instead of JSON (an apostrophe in the description does that: "the user's profile"), read the description from the bold line below and strip the flags by hand.

Read the full file on GitHub · 160 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. 17d ago Changed · -73 lines a44067980164
  2. 26d ago Changed · +42 lines · -66 tokens per session 69deec0d9f6d
  3. 28d ago Changed · +1 lines 84609ae373b8
  4. 29d ago Changed · -41 lines · +66 tokens per session 210faa232162
  5. 1mo ago Changed · -2 lines f897eebbcc0a
  6. 1mo ago Changed · +3 lines 8565190923a2
  7. 1mo ago Changed · +4 lines ea6dd49a6da1
  8. 2mo ago Changed · +25 lines ad4057dc94ea
  9. 2mo ago Changed · +34 lines f4c05f64cca6
  10. 2mo ago First seen · 167 lines · 29 tokens per session scan A e6da8b6c4952

Subscribe to this mod's changes

spec is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 29 tokens to every session and 3,945 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-03.

Related

spec compared with commands from other repositories

spec next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
specjuanmhidalgo/claude-pluginsCommand818d agoMITA29Claude Code
importspecdog/dotdogCommand83d agoMITA10Claude Code
inspectspecdog/dotdogCommand83d agoMITA7Claude Code
servespecdog/dotdogCommand83d agoMITA10Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
speckit.bug.testgithub/spec-kitCommand153ktodayMITA13Claude Code
constitutiongithub/spec-kitCommand153ktodayMITA13Claude Code