prd

prd is a command for Claude Code from vinnie357/claude-skills. It costs 17 tokens per session (727 once invoked), scanned A, original, MIT.

A command that creates a structured Product Requirements Document (PRD), which describes what a product should do and why.

In plain words
What is it for?
It validates the feature name, gathers requirements through questions or an existing feature inventory, and writes the PRD to a dated file.
Why use it?
It turns product intent into a shared implementation agreement without prematurely deciding how the software will be built.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the pm plugin — 2 skills, 3 commands, 6 agents shipped together

Good fit It validates the feature name, gathers requirements through questions or an existing feature inventory, and writes the PRD to a dated file.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vinnie357/claude-skills/prd
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.

Clone the repo
git clone --depth 1 https://github.com/vinnie357/claude-skills

Made for: Claude Code.

Or install pm, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 6 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 prd

README.md
[![agentmods](https://agentmods.dev/badge/commands/vinnie357/claude-skills/prd.svg)](https://agentmods.dev/commands/vinnie357/claude-skills/prd)
Your own site
<a href="https://agentmods.dev/commands/vinnie357/claude-skills/prd"><img src="https://agentmods.dev/badge/commands/vinnie357/claude-skills/prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 727 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.00017 $0.00727
Opus 5 $0.00009 $0.00364
Sonnet 5 $0.00003 $0.00145
Haiku 4.5 $0.00002 $0.00073

Measured 3d ago against content hash 0bc4a4063075, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

prd 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.

plugins/pm/commands/prd.md · 48 lines

What it actually says

Author a Product Requirements Document via the pm-prd-author agent. The PRD is the implementation contract between product intent and the team that builds it — human or agent — and stays at the WHAT/WHY altitude, never naming implementation technologies.

What it does:

  1. Validate the slug<feature-area-slug> must match ^[a-z0-9]+(-[a-z0-9]+)*$. Reject and stop otherwise.
  2. Resolve mode--inventory=<path> present → MODE=grounded, the file at <path> is a /pm:spec-harvest feature inventory, no interview. Absent → MODE=interactive; this session conducts the interview below and collects OPERATOR_ANSWERS.
  3. Resolve OUTPUT_DIR--output=<dir> if provided, otherwise docs/pm/.
  4. Compute DATE — today, ISO format (YYYY-MM-DD).
  5. Pre-check for overwrite — confirm <OUTPUT_DIR>/prd/<DATE>-<feature-area-slug>.md does not already exist. Refuse and stop if it does.
  6. Spawn pm-prd-author with the Input contract below.

Interview (interactive mode only, conducted by THIS session, never by the spawned agent):

pm-prd-author runs as a Task-spawned subagent — it has no AskUserQuestion tool and no conversational channel to the operator. This session is the only place in the flow with a live channel, so it conducts the interview itself, before spawning the agent, using AskUserQuestion. Ask in this order, grouped into two calls (max 4 questions per call), each question offering a free-text Other option for answers that do not fit a preset choice:

  • Call 1 (4 topics): problem / opportunity; target users & personas; goals & success metrics; non-goals / out of scope.
  • Call 2 (3 topics): user stories + acceptance criteria; constraints & dependencies; release phasing.

Record each answer under its topic label. If the operator has no answer for a topic, leave that topic absent from OPERATOR_ANSWERS rather than inventing one — pm-prd-author turns an absent topic into an Open Questions row.

Input contract passed to pm-prd-author:

  • MODEinteractive or grounded
  • FEATURE_AREA — the validated <feature-area-slug>
  • INVENTORY_PATH — the --inventory path (grounded mode only)
  • OPERATOR_ANSWERS — interactive mode only; the topic-labeled answers collected by the interview above
  • OUTPUT_DIR — resolved output directory
  • DATE — resolved ISO date

Examples:

/pm:prd checkout-flow
/pm:prd checkout-flow --output=docs/product/
/pm:prd checkout-flow --inventory=docs/pm/2026-07-15-feature-inventory.md

Skills the agent loads (no globs — explicit names):

  • /pm:prd
  • /pm:spec-harvest
  • /core:anti-fabrication
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. 3d ago First seen · 48 lines · 17 tokens per session scan A 0bc4a4063075

Subscribe to this mod's changes

prd is a command published in the GitHub repository vinnie357/claude-skills (24 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 727 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-09-03.