prd

A command that creates a Product Requirements Document, or PRD—a written plan describing what to build, why, for whom, and how it should work.

In plain words
What is it for?
Gathering missing project details and writing a PRD file with an overview, problem, users, features, acceptance criteria, and user experience.
Why use it?
It turns a project idea into a structured specification before implementation begins.

Command for Claude Code

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/touheedcode/claude-dev-workflow/prd
Clone the repo
git clone --depth 1 https://github.com/TouheedCode/claude-dev-workflow

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 405 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.00000 $0.00405
Opus 5 $0.00000 $0.00202
Sonnet 5 $0.00000 $0.00081
Haiku 4.5 $0.00000 $0.00040

Measured yesterday against content hash ca5a073a7774, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

.claude/commands/prd.md · 65 lines

What it actually says

/prd — Generate Product Requirements Document

Arguments

  • $ARGUMENTS — Project name and a brief description of what to build

Instructions

You are generating a Product Requirements Document (PRD) for the project described below.

Project input: $ARGUMENTS

Step 1: Gather Context

If the input is vague or missing critical details, ask the user clarifying questions before generating. You need at minimum:

  • A clear project/feature name
  • What problem it solves
  • Who the target users are

Step 2: Generate the PRD

Create a structured PRD file at docs/PRD-{name}.md where {name} is a kebab-cased version of the project name.

The PRD must contain these sections:

# PRD: {Project Name}

## Overview
One paragraph summary of the project. What is it and why does it matter?

## Problem Statement
What problem does this solve? What's the current pain point? Be specific.

## Target Users
Who are the primary users? What are their characteristics and needs?

## Core Features
Numbered list of features. Each feature should have:
- **Feature name** — One-line description
- Acceptance criteria (bulleted)

## User Experience
Describe the key user flows. How does someone use this feature end-to-end?

## Technical Constraints
- What tech stack is being used?
- Are there performance requirements?
- Security considerations?
- Integration requirements?

## Success Metrics
How will we know this is successful? Define measurable outcomes.

## Out of Scope
What are we explicitly NOT building in this iteration?

Step 3: Output

  1. Write the PRD to docs/PRD-{name}.md
  2. Print a summary: the project name, feature count, and file path
  3. Remind the user to run /story next to break the PRD into user stories
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. yesterday First seen · 65 lines · 0 tokens per session scan A ca5a073a7774

Subscribe to this mod's changes

prd is a command published in the GitHub repository TouheedCode/claude-dev-workflow (2 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 405 tokens. 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.