prd

A Product Requirements Document, or PRD, describes what a product should do, who it is for, and how success will be measured. This command creates one, audits an existing one, or derives one for a related repository in a multi-repository project.

In plain words
What is it for?
Use it to define a product vision, problem, users, goals, priorities, and requirements, or to review an existing PRD and create a related version for another repository.
Why use it?
It turns an idea into shared requirements before design and implementation begin. Auditing can reveal missing or unclear product decisions.

Command

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/skullninja/coco-workflow/prd
Clone the repo
git clone --depth 1 https://github.com/skullninja/coco-workflow
Per session 24 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,433 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.00024 $0.02433
Opus 5 $0.00012 $0.01216
Sonnet 5 $0.00005 $0.00487
Haiku 4.5 $0.00002 $0.00243

Measured 2d ago against content hash fe0010f27fce, 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 2d 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/prd.md · 281 lines

How it starts

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

User Input

$ARGUMENTS

Setup

  1. Read .coco/config.yaml for discovery.prd_path (default: docs/prd.md).
  2. Load PRD template from .coco/templates/prd-template.md if it exists, otherwise use ${CLAUDE_PLUGIN_ROOT}/templates/prd-template.md.
  3. Determine mode:
    • If $ARGUMENTS starts with "derive" -> Derive mode (satellite repo)
    • If $ARGUMENTS contains "audit" -> Audit mode
    • Otherwise -> Greenfield mode (use $ARGUMENTS as initial product description if non-empty)

Mode 1: Greenfield (Default)

Guided interview producing a PRD from scratch.

1. Product Vision & Problem Statement

If $ARGUMENTS provides a product description, use it as context. Otherwise ask:

Use AskUserQuestion to gather:

  • What is the product? (1-2 sentence vision)
  • What problem does it solve? Who has this problem?

2. Target Users

Use AskUserQuestion to identify 1-3 user personas:

  • Role/name for each persona
  • Context (when/where they encounter the problem)
  • Pain points (current frustrations)
  • Goals (what they want to achieve)

3. Product Goals

Use AskUserQuestion to define measurable goals:

  • 3-5 product goals
  • Success metric for each
  • Priority (P1/P2/P3)

4. Scope Boundaries

Use AskUserQuestion to establish scope:

  • What is explicitly in scope?
  • What is explicitly out of scope?

5. Constraints

Use AskUserQuestion to identify constraints:

  • Technical (platform, language, infrastructure)
  • Business (timeline, budget, regulatory)
  • Design (UX principles, accessibility)

6. Feature Candidates

Use AskUserQuestion to brainstorm features:

  • List candidate features (name + brief description)
  • Map each to product goals
  • Assign initial priority (P1/P2/P3)

Present the feature table and ask for additions or changes.

7. Open Questions

Identify unresolved questions that emerged during the interview. These are candidates for analysis documents.

8. Write PRD

Fill the PRD template with all gathered information. Ensure the directory exists:

Read the full file on GitHub · 281 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. 2d ago First seen · 281 lines · 24 tokens per session scan A fe0010f27fce

Subscribe to this mod's changes

prd is a command published in the GitHub repository skullninja/coco-workflow (7 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 2,433 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-08-31.