plan-prd

plan-prd is a command for coding agents from mturac/everything-openai-codex. It costs 18 tokens per session (1,329 once invoked), scanned A, original, MIT.

A command for writing a Product Requirements Document, or PRD: a short description of the problem, users, goals, and success criteria for a product change.

In plain words
What is it for?
It helps define a feature's problem, scope, success measures, open questions, and risks before handing the work to an implementation planner.
Why use it?
It keeps requirements focused on what needs to be true before implementation details are chosen.

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/mturac/everything-openai-codex/plan-prd
Clone the repo
git clone --depth 1 https://github.com/mturac/everything-openai-codex

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 plan-prd

README.md
[![agentmods](https://agentmods.dev/badge/commands/mturac/everything-openai-codex/plan-prd.svg)](https://agentmods.dev/commands/mturac/everything-openai-codex/plan-prd)
Your own site
<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/plan-prd"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/plan-prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 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,329 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.00018 $0.01329
Opus 5 $0.00009 $0.00665
Sonnet 5 $0.00004 $0.00266
Haiku 4.5 $0.00002 $0.00133

Measured yesterday against content hash f053b2ddf732, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plan-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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • plan-prd — 95% identical, 60 lines differ
commands/plan-prd.md · 161 lines

How it starts

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

PRD Command

Produces a Product Requirements Document — the requirements-phase artifact of the SDLC. Captures what must be true for success and why, and stops before how. Implementation decomposition is delegated to /plan.

Input: $ARGUMENTS

Scope of this command

This command does This command does NOT do
Frame the problem and users Design the architecture
Capture success criteria and scope Pick files or write patterns
List open questions and risks Enumerate implementation tasks
Write .codex/prds/{name}.prd.md Produce an implementation plan — that's /plan

If you find yourself writing implementation detail, stop and cut it. It belongs in /plan.

Anti-fluff rule: When information is missing, write TBD — needs validation via {method}. Never invent plausible-sounding requirements.

Workflow

Four phases. Each phase is a single gate — ask the questions, wait for the user, then move on. No nested loops, no parallel research ceremony.

Phase 1 — FRAME

If $ARGUMENTS is empty, ask:

What do you want to build? One or two sentences.

If provided, restate in one sentence and ask:

I understand: {restated}. Correct, or should I adjust?

Then ask the framing questions in a single set:

  1. Who has this problem? (specific role or segment)
  2. What is the observable pain? (describe behavior, not assumed needs)
  3. Why can't they solve it with what exists today?
  4. Why now? — what changed that makes this worth doing?

Wait for the user. Do not proceed without answers (or explicit "skip").

Phase 2 — GROUND

Ask for evidence. This is the shortest phase and the most load-bearing:

What evidence do you have that this problem is real and worth solving? (user quotes, support tickets, metrics, observed behavior, failed workarounds — anything concrete)

If the user has none, record the PRD's Evidence section as Assumption — needs validation via {user research | analytics | prototype}. This keeps the PRD honest.

Read the full file on GitHub · 161 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. yesterday First seen · 161 lines · 18 tokens per session scan A f053b2ddf732

Subscribe to this mod's changes

plan-prd is a command published in the GitHub repository mturac/everything-openai-codex (89 stars, last pushed 11d ago), licensed MIT. It adds 18 tokens to every session and 1,329 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-09-03.