From rp1-dev
Archives completed PRD files from active to archives directory with associated features and closure summary. Confirms status, handles partial completion, and checks knowledge base staleness in RP1 workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rp1-dev:blueprint-archiveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Archives completed PRD docs from active -> archives dir with associated features.
Archives completed PRD docs from active -> archives dir with associated features.
Extract these parameters from the user's input:
| Parameter | Required | Default | Description |
|---|---|---|---|
PRD_NAME | Yes | - | PRD filename without extension (kebab-case) |
Environment values (resolve via shell):
RP1_ROOT: !rp1 agent-tools rp1-root-dir (extract data.root from JSON response)/rp1-dev:blueprint-archive <prd-name>
{{$RP1_ROOT}}/work/prds/<PRD_NAME>.md -> {{$RP1_ROOT}}/work/archives/prds/<PRD_NAME>/prd.md{{$RP1_ROOT}}/work/archives/features/closure_summary.md with archive metadata/knowledge-build if needed{% dispatch_agent "rp1-dev:prd-archiver" %} MODE: scan PRD_NAME: {PRD_NAME} {% enddispatch_agent %}
Parse JSON response from agent.
Error Response (type: "error"):
{"type":"error","message":"...","available_prds":["prd1","prd2"]}
Output error message with available PRDs list, then STOP.
Needs Confirmation (type: "needs_confirmation"):
{
"type": "needs_confirmation",
"prd_name": "...",
"prd_title": "...",
"associated_features": [...],
"message": "..."
}
Continue to Step 3.
{% ask_user "Archive PRD '{PRD_NAME}' ({prd_title})? {message}", options: "Yes - Objectives fully met", "Partial - Some objectives met", "No - Cancel" %}
Handle response:
CLOSURE_STATUS=completeArchive aborted by user. + STOP{% ask_user "Document the gaps or unmet objectives:" %}
Capture response as GAPS.
{% dispatch_agent "rp1-dev:prd-archiver" %} MODE: archive PRD_NAME: {PRD_NAME} CLOSURE_STATUS: {complete|partial} GAPS: {user-provided gaps or empty} {% enddispatch_agent %}
Display agent success output directly. Include:
npx claudepluginhub rp1-run/rp1Archives completed or cancelled PRD files to product-docs/prds/archive/YYYY/QX/ directories, adds YAML metadata (archive_date, reason, task completion %), moves linked tasks, uses git mv. Use post-implementation.
Archives completed PRDs and associated tasks/progress files to .plans/archive/. Parses task YAML to verify completion. Preview with --dry-run.
Audits PRD blueprints against implementation evidence in archives, features directories, and codebase. Classifies phases as Complete/Partial/Not Started and guides disposition decisions like archive, add/remove scope, defer, or continue.