archive-prd

archive-prd is a command for Claude Code from Yassinello/claude-plugin-prd-workflow. It costs 10 tokens per session (2,599 once invoked), scanned A, original, MIT.

A command for moving completed or cancelled product requirement documents (PRDs) into an archive. A PRD is a document describing a product feature and its requirements.

In plain words
What is it for?
Use it to archive shipped, cancelled, superseded, or indefinitely blocked PRDs and keep their metadata and an archive summary.
Why use it?
It keeps active PRD folders tidy while preserving past decisions and project history.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to archive shipped, cancelled, superseded, or indefinitely blocked PRDs and keep their metadata and an archive summary.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yassinello/claude-plugin-prd-workflow/archive-prd
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/Yassinello/claude-plugin-prd-workflow

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/yassinello/claude-plugin-prd-workflow/archive-prd.svg)](https://agentmods.dev/commands/yassinello/claude-plugin-prd-workflow/archive-prd)
Your own site
<a href="https://agentmods.dev/commands/yassinello/claude-plugin-prd-workflow/archive-prd"><img src="https://agentmods.dev/badge/commands/yassinello/claude-plugin-prd-workflow/archive-prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,599 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.00010 $0.02599
Opus 5 $0.00005 $0.01300
Sonnet 5 $0.00002 $0.00520
Haiku 4.5 $0.00001 $0.00260

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

Security

Grade A, and why

archive-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 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/commands/archive-prd.md · 336 lines

How it starts

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

Archive PRD Command

Move completed or cancelled PRDs to archive folder with metadata preservation.

Purpose

Keep PRD directories clean while preserving historical context:

  • Archive completed features
  • Archive cancelled/deprecated PRDs
  • Maintain searchable history
  • Generate archive summary

Workflow

Step 1: List Archivable PRDs

Show PRDs from:

  • 04-complete/ - Completed and merged
  • Any directory if user wants to cancel/deprecate
📦 **PRDs Available for Archiving**

## Completed (Ready to Archive)
| # | PRD ID | Feature | Completed | Days Since |
|---|--------|---------|-----------|------------|
| 1 | PRD-001 | Project Setup | 2025-09-15 | 40 days |
| 2 | PRD-002 | CI/CD Pipeline | 2025-09-20 | 35 days |
| 3 | PRD-005 | Database Schema | 2025-10-10 | 15 days |

## Other PRDs
To archive a PRD from another status (e.g., cancelled):
- Enter PRD ID manually
- Enter filename

Which PRD to archive? (number, PRD-XXX, or filename)

Step 2: Confirm Archive Reason

Ask user:

Why are you archiving PRD-005 (Database Schema)?

1. ✅ Completed and shipped
2. ❌ Cancelled (no longer needed)
3. 🔀 Superseded by another PRD
4. 🚫 Blocked indefinitely
5. Other (specify)

Select reason: (1-5)

Step 3: Collect Archive Metadata

Based on reason, ask relevant questions:

If Completed:

  • PR number (if not in PRD)
  • Production deploy date
  • Any learnings/retrospective notes

If Cancelled:

  • Why cancelled?
  • Was any work done?
  • Lessons learned

If Superseded:

  • Superseded by which PRD?
  • What changed in approach?

Step 4: Update PRD Header

Add archive metadata to PRD:

**Status**: Archived
**Archive Reason**: Completed and shipped
**Archived Date**: 2025-10-25
**PR**: #42
**Production Deploy**: 2025-10-15
**Archive Notes**: Successful implementation, no major issues. Performance exceeded targets.

Step 4.5: Auto-Close Orphaned PRs (NEW)

Purpose: Clean up draft PRs that were never developed

Read the full file on GitHub · 336 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 · 336 lines · 10 tokens per session scan A 651ec84992a6

Subscribe to this mod's changes

archive-prd is a command published in the GitHub repository Yassinello/claude-plugin-prd-workflow (12 stars, last pushed 9mo ago), licensed MIT. It adds 10 tokens to every session and 2,599 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-30.