docs.local/prd-archive/20260123-153000/
├── index.json # PRD index at time of archive
├── stories/ # All story files (completed + pending)
│ ├── US-001.json
│ ├── US-002.json
│ └── ...
└── progress.txt # Ralph progress log
Cleanup Behavior
When cleanup is triggered (via --clean or confirming prompt):
Completed stories deleted - All *.json files where passes=true
Index reset - Stats reset, pending array rebuilt from remaining stories
Progress cleared - progress.txt replaced with fresh start header
History is always preserved - The archive contains full state before cleanup.
Safety Notes
Always archives first - Cleanup only happens after successful archive
Blocked stories preserved - Stories in blocked array are kept
Pending stories preserved - Only completed (passes=true) stories removed
Reversible - Full state available in docs.local/prd-archive/
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: etanhey-golems-archive3description: Archive PRD Stories4---56# Archive PRD Stories78> Archive completed stories to `docs.local/prd-archive/` with full history preservation. Optionally reset the working PRD for a fresh start.910## Available Scripts1112Run these directly - standalone, no ralph.zsh dependency:1314| Script | Purpose | Usage |15|--------|---------|-------|16| `scripts/archive-snapshot.sh` | Create archive snapshot | `bash ~/.claude/commands/archive/scripts/archive-snapshot.sh` |17| `scripts/cleanup-completed.sh` | Archive + remove completed | `bash ~/.claude/commands/archive/scripts/cleanup-completed.sh` |1819---2021## Quick Actions2223| What you want to do | Workflow |24|---------------------|----------|25| Archive current PRD state (snapshot) | [workflows/archive-snapshot.md](workflows/archive-snapshot.md) |26| Remove completed stories (cleanup) | [workflows/cleanup-completed.md](workflows/cleanup-completed.md) |2728---2930## What Gets Archived3132Each archive creates a timestamped directory:3334```35docs.local/prd-archive/20260123-153000/36├── index.json # PRD index at time of archive37├── stories/ # All story files (completed + pending)38│ ├── US-001.json39│ ├── US-002.json40│ └── ...41└── progress.txt # Ralph progress log42```4344---4546## Cleanup Behavior4748When cleanup is triggered (via `--clean` or confirming prompt):49501. **Completed stories deleted** - All `*.json` files where `passes=true`512. **Index reset** - Stats reset, pending array rebuilt from remaining stories523. **Progress cleared** - `progress.txt` replaced with fresh start header5354**History is always preserved** - The archive contains full state before cleanup.5556---5758## Safety Notes59601. **Always archives first** - Cleanup only happens after successful archive612. **Blocked stories preserved** - Stories in blocked array are kept623. **Pending stories preserved** - Only completed (passes=true) stories removed634. **Reversible** - Full state available in `docs.local/prd-archive/`6465---66> Converted and distributed by [TomeVault](https://tomevault.io/claim/etanhey) — claim your Tome and manage your conversions.67<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/etanhey-golems-archive in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Archive PRD Stories It is listed under Product & Planning on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.