plan-prd

plan-prd is a command for coding agents from Fmarzochi/EGC. It costs 18 tokens per session (1,327 once invoked), scanned A, a copy of plan-prd, Apache-2.0.

A requirements-writing command that creates a Product Requirements Document, or PRD: a short record of the problem, users, goals, success criteria, risks, and open questions. It stops before describing the technical implementation.

In plain words
What is it for?
Use it to define what a feature must achieve, agree on its scope, and hand a clear requirements document to an implementation-planning step.
Why use it?
It keeps product decisions separate from coding tasks and makes missing information explicit instead of guessing.

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/fmarzochi/egc/plan-prd
Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

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/fmarzochi/egc/plan-prd.svg)](https://agentmods.dev/commands/fmarzochi/egc/plan-prd)
Your own site
<a href="https://agentmods.dev/commands/fmarzochi/egc/plan-prd"><img src="https://agentmods.dev/badge/commands/fmarzochi/egc/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,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod 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.01327
Opus 5 $0.00009 $0.00664
Sonnet 5 $0.00004 $0.00265
Haiku 4.5 $0.00002 $0.00133

Measured yesterday against content hash 787979f1ea0a, 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

This is a copy

95% identical to plan-prd — 60 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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 .Gemini/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 787979f1ea0a

Subscribe to this mod's changes

plan-prd is a command published in the GitHub repository Fmarzochi/EGC (48 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 1,327 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to plan-prd, differing in 60 lines, and is treated as a copy.