speckit.product-forge.product-spec

speckit.product-forge.product-spec is a command for Claude Code from VaiYav/speckit-product-forge. It costs 104 tokens per session (6,176 once invoked), scanned A, original, MIT.

A guided product-specification step that turns research into a detailed plan for a product feature. It creates linked documents such as user journeys, wireframes (rough screen layouts), metrics, and clickable mockups.

In plain words
What is it for?
Use it to define a feature’s requirements, user journeys, screens, success measures, and design direction. It can also create a dry-run copy of the specification without changing project status.
Why use it?
It gives the team one shared description of what to build before coding starts. Structured questions help fill in missing detail and connect requirements to user flows and designs.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is convention in [docs/interaction.md](../docs/interaction.md) (ready snippets in.

Part of the speckit-product-forge plugin — 31 commands shipped together

Good fit Use it to define a feature’s requirements, user journeys, screens, success measures, and design direction. It can also create a dry-run copy of the specification without changing project status.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/VaiYav/speckit-product-forge
agentmods
npx agentmods add commands/vaiyav/speckit-product-forge/product-spec

Made for: Claude Code.

Or install speckit-product-forge, the plugin that ships this one along with the rest of its 31 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 speckit.product-forge.product-spec

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/vaiyav/speckit-product-forge/product-spec"><img src="https://agentmods.dev/badge/commands/vaiyav/speckit-product-forge/product-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,176 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.00104 $0.06176
Opus 5 $0.00052 $0.03088
Sonnet 5 $0.00021 $0.01235
Haiku 4.5 $0.00010 $0.00618

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

Security

Grade A, and why

speckit.product-forge.product-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 10d 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/product-spec.md · 641 lines

How it starts

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

Product Forge — Phase 2: Product Spec Creation

You are the Product Spec Architect for Product Forge Phase 2. Your goal: transform research findings into a complete, structured, and fully linked product specification — the definitive source of truth before any code is written.

User Input

$ARGUMENTS

If $ARGUMENTS contains --dry-run, honor docs/runtime.md §7: write the product-spec/ artifacts under {FEATURE_DIR}/.forge-dry-run/product_spec/, do not update .forge-status.yml, and emit a DRY-RUN-REPORT.md.


Step 1: Load Context

Read:

  • {FEATURE_DIR}/research/README.md — research summary
  • {FEATURE_DIR}/research/competitors.md — competitor insights
  • {FEATURE_DIR}/research/ux-patterns.md — UX/UI patterns
  • {FEATURE_DIR}/research/codebase-analysis.md — integration analysis

Set PRODUCT_SPEC_DIR = {FEATURE_DIR}/product-spec/


Interaction (normative): every question in this phase uses the structured convention in docs/interaction.md (ready snippets in docs/templates/interaction-prompts.md). Present 2–4 labeled options with a recommended first option and a free-text fallback; never dump a wall of open questions.

Step 2: Detail Level Configuration

This is the most important configuration step. Ask the user the questions below as discrete structured prompts (one decision each, related toggles grouped) before creating any documents.

2A. Feature Complexity Assessment

Ask: "How large/complex is this feature?"

  • Small — Single screen or widget, 1-2 user flows, clear scope
  • Medium — 2-4 screens, multiple user roles or states, moderate complexity
  • Large — 5+ screens, multiple interconnected flows, requires decomposition into sub-features

Store as FEATURE_SIZE.


2B. Product Spec Main Document — Detail Level

Ask: "How detailed should the main product-spec.md be?"

Read the full file on GitHub · 641 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. 10d ago First seen · 641 lines · 104 tokens per session scan A 9da76ffe4273

Subscribe to this mod's changes

speckit.product-forge.product-spec is a command published in the GitHub repository VaiYav/speckit-product-forge (23 stars, last pushed 16d ago), licensed MIT. It adds 104 tokens to every session and 6,176 once invoked, about $0.0005 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-30.