prd-new

prd-new is a command for coding agents from rodrigorjsf/prd-generator-plugin. It costs 13 tokens per session (3,430 once invoked), scanned B, original, MIT.

A command workflow for creating a complete product requirements document, or PRD—a document describing what software should do and why. It coordinates user questioning, research, technical design, documentation, and development guidance.

In plain words
What is it for?
Use it to gather product context, research identified technologies or regulations, design the architecture, and generate project documents and coding-agent skills.
Why use it?
It gives a product project one repeatable process from an early idea through a documented plan.

Command

Part of the prd-generator plugin — 1 skill, 3 commands, 9 agents shipped together

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/rodrigorjsf/prd-generator-plugin/prd-new
Clone the repo
git clone --depth 1 https://github.com/rodrigorjsf/prd-generator-plugin

Or install prd-generator, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 9 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-new

README.md
[![agentmods](https://agentmods.dev/badge/commands/rodrigorjsf/prd-generator-plugin/prd-new.svg)](https://agentmods.dev/commands/rodrigorjsf/prd-generator-plugin/prd-new)
Your own site
<a href="https://agentmods.dev/commands/rodrigorjsf/prd-generator-plugin/prd-new"><img src="https://agentmods.dev/badge/commands/rodrigorjsf/prd-generator-plugin/prd-new.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,430 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00013 $0.03430
Opus 5 $0.00006 $0.01715
Sonnet 5 $0.00003 $0.00686
Haiku 4.5 $0.00001 $0.00343

Measured 3d ago against content hash 7b847d12e6ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

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

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

- $(ls .claude/skills/ | wc -l) project enforcement skills (including docs-stack + cicd)
commands/prd-new.md · 340 lines

How it starts

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

/prd-new — PRD Generator

You orchestrate PRD generation: interrogation, research, architecture, documents, enforcement skills.

CRITICAL RULES:

  • All generated files in English; respond to user in their language
  • Each phase produces structured JSON for the next phase
  • Dispatch research agents immediately when a technology/regulation is identified
  • Never use forums, blogs, or social media as sources

PHASE 0 — Initialize

Create tasks to track progress:

  1. Interrogation
  2. Research & Validation
  3. Requirements Analysis
  4. Architecture Design
  5. Document Generation
  6. Skills & Guides Generation
  7. Commit

Initialize a context_packet object (held in memory throughout):

{
  "meta": { "initiated_at": "<timestamp>", "language": "<user_language>" },
  "identity": {},
  "business": {},
  "features": {},
  "regulatory": {},
  "integrations": {},
  "infrastructure": {
    "vcs": null,
    "branch_strategy": null
  },
  "stack": {},
  "repo_structure": "monorepo",
  "research_refs": [],
  "pending_research": []
}

Note: repo_structure is hardcoded as "monorepo" — this is a plugin-level rule, not a user choice. All projects generated by this plugin are monorepos.

If the user provided $1 (initial description), store it in context_packet.meta.initial_description and use it to pre-fill any obvious fields.


PHASE 1 — Product Interrogation (interactive)

Mark task "Interrogation" as in_progress.

Conduct the interrogation in blocks using a conversational, one-question-at-a-time format:

  • Output each question as plain chat text (markdown) — do NOT use AskUserQuestion for interrogation blocks
  • Ask ONE question, then wait for the user's response before asking the next
  • For questions with predefined options, present them as a numbered list:

    [Question text]

    1. Option A / 2. Option B / 3. Option C (Or type your own answer)

  • After each block completes, check pending_research and dispatch official-researcher agents for any identified technology or regulated domain

Read the full file on GitHub · 340 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. 3d ago First seen · 340 lines · 13 tokens per session scan B 7b847d12e6ff

Subscribe to this mod's changes

prd-new is a command published in the GitHub repository rodrigorjsf/prd-generator-plugin (2 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 3,430 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.