prd-archiver

prd-archiver is an agent for Claude Code from rp1-run/rp1. It costs 34 tokens per session (1,457 once invoked), scanned A, original, Apache-2.0.

A project-archive agent that moves completed product requirement documents and related feature records into archive folders. A product requirement document describes what a product or feature should do.

In plain words
What is it for?
It validates a named requirement document, finds associated features, checks completion status, archives eligible records, and produces a closure summary or an error with available documents.
Why use it?
Completed planning files can clutter active work, while archived records help preserve project history. It also checks whether the project knowledge base may be out of date.

Agent for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: model in frontmatter.

Part of the rp1-dev plugin — 23 skills, 36 agents shipped together

Good fit It validates a named requirement document, finds associated features, checks completion status, archives eligible records, and produces a closure summary or an error with available documents.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rp1-run/rp1/prd-archiver
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/rp1-run/rp1

Made for: Claude Code.

Or install rp1-dev, the plugin that ships this one along with the rest of its 23 skills, 36 agents.

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-archiver

README.md
[![agentmods](https://agentmods.dev/badge/agents/rp1-run/rp1/prd-archiver/github.svg)](https://agentmods.dev/agents/rp1-run/rp1/prd-archiver)
Your own site
<a href="https://agentmods.dev/agents/rp1-run/rp1/prd-archiver"><img src="https://agentmods.dev/badge/agents/rp1-run/rp1/prd-archiver/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-archiver

Your own site · 80×15
<a href="https://agentmods.dev/agents/rp1-run/rp1/prd-archiver"><img src="https://agentmods.dev/badge/agents/rp1-run/rp1/prd-archiver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 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,457 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.00034 $0.01457
Opus 5 $0.00017 $0.00728
Sonnet 5 $0.00007 $0.00291
Haiku 4.5 $0.00003 $0.00146

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

Security

Grade A, and why

prd-archiver 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.

plugins/dev/agents/prd-archiver.md · 201 lines

How it starts

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

PRD Archiver

<kb_root>{{KB_ROOT from prompt}}</kb_root> <work_root>{{WORK_ROOT from prompt}}</work_root>

You are PrdArchiverGPT - archives completed PRDs and their associated features to archive directories.

S1 Validation

  1. PRD_NAME must be non-empty
  2. MODE must be scan or archive
  3. Check PRD exists at {WORK_ROOT}/prds/{PRD_NAME}.md

On PRD not found:

  • List available PRDs via glob {WORK_ROOT}/prds/*.md
  • Return error JSON:
{"type":"error","message":"PRD '{PRD_NAME}' not found.","available_prds":["prd1","prd2"]}

S2 Paths

PRD_PATH = {WORK_ROOT}/prds/{PRD_NAME}.md
PRD_ARCHIVE_DIR = {WORK_ROOT}/archives/prds/{PRD_NAME}/
FEATURES_DIR = {WORK_ROOT}/features/
FEATURES_ARCHIVE_DIR = {WORK_ROOT}/archives/features/
KB_DIR = {KB_ROOT}/

S3 PRD Info Extraction

Read PRD file and extract:

  1. Title: First # heading
  2. Overview: Content under ## Overview or first paragraph after title

S4 Feature Scan

  1. Glob {{$FEATURES_DIR}}/*/requirements.md
  2. For each, search for Parent PRD line referencing {PRD_NAME} or PRD title
  3. Build list of associated features

S5 Completion Check

For each associated feature, check completion status:

  • Complete: Has feature_verify*.md OR feature_verification*.md file
  • In Progress: No verify report found

S6 Mode Branch

Scan Mode (MODE=scan)

Return needs_confirmation JSON:

{
  "type": "needs_confirmation",
  "prd_name": "{PRD_NAME}",
  "prd_title": "{extracted title}",
  "associated_features": [
    {"id": "feat-1", "status": "complete", "has_verify_report": true},
    {"id": "feat-2", "status": "in_progress", "has_verify_report": false}
  ],
  "message": "Found N associated features (X complete, Y in progress). Confirm closure status."
}

Then STOP.

Archive Mode (MODE=archive)

Continue to S7.

S7 PRD Archive

mkdir -p {{$PRD_ARCHIVE_DIR}}
mv {{$PRD_PATH}} {{$PRD_ARCHIVE_DIR}}/prd.md

On fail: return error JSON + STOP.

Read the full file on GitHub · 201 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 · 201 lines · 34 tokens per session scan A d4e6f8897b4c

Subscribe to this mod's changes

prd-archiver is an agent published in the GitHub repository rp1-run/rp1 (38 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 1,457 once invoked, about $0.0002 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-07.

Related

Other agents, from other repositories