prd-edit

A command for changing an existing product requirements document (PRD), a written plan for a feature.

In plain words
What is it for?
Use it to edit summaries, user stories, requirements, success criteria, constraints, dependencies, or scope in a named PRD.
Why use it?
It preserves the document's history while letting the user revise selected sections and flag related implementation work for review.

Command for Claude Code

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/kamiazya/scopes/prd-edit
Clone the repo
git clone --depth 1 https://github.com/kamiazya/scopes

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 357 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.00000 $0.00357
Opus 5 $0.00000 $0.00179
Sonnet 5 $0.00000 $0.00071
Haiku 4.5 $0.00000 $0.00036

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

Security

Grade A, and why

prd-edit 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 2d 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/commands/pm/prd-edit.md · 66 lines

What it actually says

PRD Edit

Edit an existing Product Requirements Document.

Usage

/pm:prd-edit <feature_name>

Instructions

1. Read Current PRD

Read .claude/prds/$ARGUMENTS.md:

  • Parse frontmatter
  • Read all sections

2. Interactive Edit

Ask user what sections to edit:

  • Executive Summary
  • Problem Statement
  • User Stories
  • Requirements (Functional/Non-Functional)
  • Success Criteria
  • Constraints & Assumptions
  • Out of Scope
  • Dependencies

3. Update PRD

Get current datetime: date -u +"%Y-%m-%dT%H:%M:%SZ"

Update PRD file:

  • Preserve frontmatter except updated field
  • Apply user's edits to selected sections
  • Update updated field with current datetime

4. Check Epic Impact

If PRD has associated epic:

  • Notify user: "This PRD has epic: {epic_name}"
  • Ask: "Epic may need updating based on PRD changes. Review epic? (yes/no)"
  • If yes, show: "Review with: /pm:epic-edit {epic_name}"

5. Output

✅ Updated PRD: $ARGUMENTS
  Sections edited: {list_of_sections}
  
{If has epic}: ⚠️ Epic may need review: {epic_name}

Next: /pm:prd-parse $ARGUMENTS to update epic

Important Notes

Preserve original creation date. Keep version history in frontmatter if needed. Follow /rules/frontmatter-operations.md.

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. 2d ago First seen · 66 lines · 0 tokens per session scan A 11a249246bfd

Subscribe to this mod's changes

prd-edit is a command published in the GitHub repository kamiazya/scopes (2 stars, last pushed 9mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 357 tokens. 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.