prd-archive
Archive completed or cancelled PRDs
What this skill does
# prd-archive **Category**: Product & Strategy ## Usage ```bash prd-archive <prd-file> [--reason <reason>] [--force] ``` ## Arguments - `<prd-file>`: Required - Path to the PRD file to archive - `--reason`: Optional - Reason for archiving (default: "Implementation complete" or "Project cancelled") - `--force`: Optional - Archive even if status is not COMPLETE or ARCHIVED ## Execution Instructions for Claude Code When this command is run, Claude Code should: 1. Read the PRD file and validate it exists 2. Check current status: - If COMPLETE: proceed with archiving - If ARCHIVED: warn that it's already archived - If other status and no --force: ask for confirmation 3. If PRD has a linked task file, calculate final completion percentage 4. Add archive metadata to the PRD: - archive_date - archive_reason - final_task_completion (if applicable) - implementation_duration (if dates available) 5. Determine archive location: - Extract year from last_updated or use current year - Create path: `product-docs/prds/archive/YYYY/` - For cancelled PRDs: `product-docs/prds/archive/YYYY/cancelled/` 6. Move the PRD file to archive location (use git mv if in git repo) 7. Update status to ARCHIVED 8. Optionally archive the linked task file to the same location 9. Create an archive summary file if this is the first archive of the month ## Archive Metadata Add to PRD header before moving: ```yaml status: ARCHIVED archive_date: 2025-01-06 archive_reason: Implementation complete - v1.0 released final_task_completion: 100% implementation_duration: 15 days original_location: product-docs/prds/active/feature-prds/ ``` ## Archive Directory Structure ``` product-docs/prds/archive/ ├── 2025/ │ ├── Q1/ │ │ ├── completed/ │ │ │ ├── user-auth-frd.md │ │ │ └── user-auth-frd-tasks.md │ │ ├── cancelled/ │ │ │ └── experimental-feature-frd.md │ │ └── 2025-Q1-archive-summary.md │ └── Q2/ └── 2024/ ``` ## Output Format ``` 📦 Archiving PRD: user-authentication-frd.md Current Status: COMPLETE Task Completion: 100% (20/20 tasks) ✅ Adding archive metadata: - archive_date: 2025-01-06 - archive_reason: Implementation complete - v1.0 released - final_task_completion: 100% - implementation_duration: 15 days 📁 Moving to archive: From: product-docs/prds/active/feature-prds/user-authentication-frd.md To: product-docs/prds/archive/2025/Q1/completed/user-authentication-frd.md 📄 Also archiving linked task file: To: product-docs/prds/archive/2025/Q1/completed/user-authentication-frd-tasks.md ✅ Archive complete! 📊 Archive Summary: - Implementation started: 2024-12-22 - Implementation completed: 2025-01-06 - Total duration: 15 days - Final status: Successfully delivered ``` ## Archive Summary File Create quarterly summary when archiving (e.g., `2025-Q1-archive-summary.md`): ```markdown # Q1 2025 Archive Summary ## Completed PRDs (3) 1. **user-authentication-frd.md** - Archived: 2025-01-06 - Duration: 15 days - Completion: 100% 2. **search-enhancement-frd.md** - Archived: 2025-02-15 - Duration: 22 days - Completion: 100% ## Cancelled PRDs (1) 1. **experimental-ai-frd.md** - Archived: 2025-01-20 - Reason: Project scope changed - Completion at cancellation: 35% ## Statistics - Total PRDs archived: 4 - Success rate: 75% (3/4) - Average implementation time: 18.5 days ``` ## Error Handling - If file doesn't exist: Exit with error - If already archived: Show current location and exit - If no write permission: Suggest using appropriate permissions - If task file missing: Continue with PRD only, note in output - If archive directory missing: Create it automatically ## Example ```bash # Archive a completed PRD prd-archive user-authentication-frd.md # Archive with custom reason prd-archive old-feature-frd.md --reason "Superseded by new design" # Force archive of active PRD prd-archive experimental-frd.md --force --reason "Project cancelled" # Archive from different location prd-archive ./drafts/completed-feature-frd.md ``` ## Implementation Tips for Claude Code 1. **Git Integration**: Always use git mv when in a git repository 2. **Task File Handling**: Look for task file in same directory and ./tasks/ 3. **Quarter Calculation**: Use Q1-Q4 based on month for organization 4. **Backup Safety**: Consider creating backup before archiving 5. **Summary Updates**: Append to existing quarterly summary if it exists 6. **Path Preservation**: Store original location in metadata for reference
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.