prd-to-epic

prd-to-epic is a command for Claude Code from dtannen/pm. It costs 11 tokens per session (1,070 once invoked), scanned A, original, MIT.

A command that turns a product requirements document, or PRD, into a detailed technical plan for building the feature.

In plain words
What is it for?
Use it to validate a PRD, create or update an epic in the project manager, record planning details, and prepare follow-up implementation tasks.
Why use it?
It connects product goals with technical decisions, risks, smaller tasks, and project-management records.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pm plugin — 4 skills, 13 commands, 5 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it to validate a PRD, create or update an epic in the project manager, record planning details, and prepare follow-up implementation tasks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dtannen/pm/prd-to-epic
View source ↗ dtannen/pm
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/dtannen/pm

Made for: Claude Code.

Or install pm, the plugin that ships this one along with the rest of its 4 skills, 13 commands, 5 agents, 3 hooks, 1 MCP server.

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-to-epic

README.md
[![agentmods](https://agentmods.dev/badge/commands/dtannen/pm/prd-to-epic/github.svg)](https://agentmods.dev/commands/dtannen/pm/prd-to-epic)
Your own site
<a href="https://agentmods.dev/commands/dtannen/pm/prd-to-epic"><img src="https://agentmods.dev/badge/commands/dtannen/pm/prd-to-epic/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-to-epic

Your own site · 80×15
<a href="https://agentmods.dev/commands/dtannen/pm/prd-to-epic"><img src="https://agentmods.dev/badge/commands/dtannen/pm/prd-to-epic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,070 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.00011 $0.01070
Opus 5 $0.00005 $0.00535
Sonnet 5 $0.00002 $0.00214
Haiku 4.5 $0.00001 $0.00107

Measured 8d ago against content hash f5838a2f3e03, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

prd-to-epic 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 8d 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.

.claude-plugin/commands/prd-to-epic.md · 155 lines

How it starts

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

Convert PRD to Epic

Transform a Product Requirements Document into a detailed technical implementation plan.

Usage

/pm:prd-to-epic <feature-name>

Instructions

You are creating a technical epic for: $ARGUMENTS

MCP Integration (preferred)

Ensure the epic exists in MCP and prime it for upcoming tasks.

  • Full name: mcp__project-manager-mcp__list_epics — Check for existing epic
  • Full name: mcp__project-manager-mcp__create_task — Upsert epic/project via a seed task
  • Full name: mcp__project-manager-mcp__update_task — Record epic planning metadata/logs

Recommended flow:

  1. If the epic is not found via ...__list_epics, create a seed task with epic_name=$ARGUMENTS to upsert the epic.
  2. Persist epic-level RA planning metadata (architecture decisions, risks) into ra_metadata.epic_plan attached to the seed task using ...__update_task.
  3. Proceed to /pm:epic-tasks $ARGUMENTS to generate granular tasks backed by MCP.

1. Validate PRD Exists

  • Check if .pm/prds/$ARGUMENTS.md exists
  • If not found: "❌ PRD not found. Create it first with: /pm:prd-new $ARGUMENTS"
  • Read and analyze the PRD content

2. Technical Analysis

Based on the PRD, analyze:

Architecture Requirements
  • What new database tables/models are needed?
  • What API endpoints need to be created/modified?
  • What UI components are required?
  • How does this integrate with existing systems?
Data Flow Design
  • How does data move through the system?
  • What are the key data transformations?
  • Where is data stored and how is it accessed?
  • What are the performance implications?
Integration Points
  • What external services are involved?
  • How does this interact with authentication?
  • What existing APIs need to be modified?
  • Are there third-party integrations required?

3. Technology-Specific Planning

Read .pm/config.json to get the project type, then create architecture decisions specific to the tech stack:

For TypeScript Projects:
  • React/Vue component architecture
  • State management approach (Context, Redux, Zustand)
  • API client structure
  • TypeScript interfaces and types
  • Build and bundling considerations

Read the full file on GitHub · 155 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. 8d ago First seen · 155 lines · 11 tokens per session scan A f5838a2f3e03

Subscribe to this mod's changes

prd-to-epic is a command published in the GitHub repository dtannen/pm (0 stars, last pushed 10mo ago), licensed MIT. It adds 11 tokens to every session and 1,070 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.