prd-writer

prd-writer is an agent for Claude Code from vshidlovsky/prd-agents-framework. It costs 44 tokens per session (17,696 once invoked), scanned B, original, MIT.

An agent that turns a plain-language initiative description into a structured product requirements document, or PRD.

In plain words
What is it for?
Use it to create a new software initiative spec with user-visible requirements and testable acceptance criteria.
Why use it?
It helps turn an idea into a precise, complete specification by researching the codebase and API documentation and resolving unclear points.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/validate-handoff.py --type writer {handoff_file}.

Good fit Use it to create a new software initiative spec with user-visible requirements and testable acceptance criteria.

Compare 6 agents 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/vshidlovsky/prd-agents-framework
agentmods
npx agentmods add agents/vshidlovsky/prd-agents-framework/prd-writer

Made for: Claude Code.

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/vshidlovsky/prd-agents-framework/prd-writer/github.svg)](https://agentmods.dev/agents/vshidlovsky/prd-agents-framework/prd-writer)
Your own site
<a href="https://agentmods.dev/agents/vshidlovsky/prd-agents-framework/prd-writer"><img src="https://agentmods.dev/badge/agents/vshidlovsky/prd-agents-framework/prd-writer/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 prd-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/vshidlovsky/prd-agents-framework/prd-writer"><img src="https://agentmods.dev/badge/agents/vshidlovsky/prd-agents-framework/prd-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 17,696 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00044 $0.17696
Opus 5.5 $0.00018 $0.07078
Sonnet 5.5 $0.00009 $0.03539
Haiku 4.5 $0.00004 $0.01770

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

Security

Grade B, and why

prd-writer scanned grade B with 1 finding 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 11d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**SR-candidate detection**: when a question's answer does not depend on this initiative — it would be true for any feature in this project, not just this one (e.g., "screen-view events fire only when a screen actually re
agents/prd-writer.md · 526 lines

How it starts

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

You are a senior product manager drafting a PRD. Your specs will be reviewed by a PRD Reviewer agent, then broken into dev tickets and implemented. This means your specs must be:

  • Product-focused: Describe WHAT the user sees and does (or what the system does), not HOW it is built. Architecture, file structure, function names, and testing strategy are the tech lead's job. The research document keeps you tied to facts — use it to learn how things work today, then write each requirement as an outcome a person can watch happen.
  • Complete — no open questions: Clear up everything unclear BEFORE writing. Ask the user.
  • Precise for AI agents: Clear acceptance criteria, concrete values and limits, specific edge cases. AI cannot fill in what you leave out. Precise means exact behavior a person can watch (format patterns, values at the limits, error messages), not code references.
  • Manually verifiable: Every acceptance criterion must be checkable by running the application.

Step 0: Load Project Context, Lessons, and Templates (MANDATORY — DO THIS FIRST)

Pipeline guard (before anything else)

You run only inside a /create-prd run (.claude/rules/prd-pipeline.md). Your prompt must carry Pipeline run: <RUN_ID>. Run state: <path>., and that file must exist with "status":"in_progress" and the same runId:

python3 -c "import json,sys; d=json.load(open(sys.argv[1])); sys.exit(0 if d.get('status')=='in_progress' and d.get('runId')==sys.argv[2] else 1)" "<run state path>" "<RUN_ID>" || echo "NO ACTIVE PIPELINE RUN"

If the line is missing from your prompt or the check prints NO ACTIVE PIPELINE RUN, STOP and reply: "This agent runs only inside /create-prd. Run /create-prd <initiative> instead." Only exception: the prompt says, in the user's words, that the user asked for a standalone run. Then continue, and put STANDALONE — not a pipeline result as the first line of every file you write and of your reply. A standalone result never counts as a finished step of the pipeline.

Read the full file on GitHub · 526 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. 11d ago Changed ed2239c6fb61
  2. 12d ago Changed · +1 lines f3fc955c1acf
  3. 14d ago Changed · +1 lines 143e6f80d315
  4. 20d ago Changed · +16 lines 0be4d56fb297
  5. 3mo ago First seen · 508 lines · 44 tokens per session scan B efe9525dfb0f

Subscribe to this mod's changes

prd-writer is an agent published in the GitHub repository vshidlovsky/prd-agents-framework (4 stars, last pushed 12d ago), licensed MIT. It adds 44 tokens to every session and 17,696 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

prd-writer compared with agents from other repositories

prd-writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prd-writervshidlovsky/prd-agents-frameworkAgent412d agoMITB44Claude Code
research-expanderanombyte93/prd-taskmasterAgent61126d agoMITA80Claude Code
hydra-runnerAR6420/Hail_HydraAgent5229d agoMITA105Claude Code
task-finderOdinMB/ops-workflowAgent67d agoMITA33Claude Code
ralph-agentjoaquimscosta/arkhe-claude-pluginsAgent241mo agoMITA52Claude Code
spring-boot-reviewerjoaquimscosta/arkhe-claude-pluginsAgent241mo agoMITA66Claude Code
session-reviewerluiseiman/dotforgeAgent826d agoMITA46Claude Code