prd-status
Check and update PRD status through lifecycle
What this skill does
# prd-status **Category**: Product & Strategy ## Usage ```bash prd-status <prd-file> <new-status> [--comment "reason for change"] ``` ## Arguments - `<prd-file>`: Required - Path to the PRD file to update - `<new-status>`: Required - New status (draft, review, approved, active, complete, archived) - `--comment`: Optional - Comment explaining the status change ## Execution Instructions for Claude Code When this command is run, Claude Code should: 1. Validate that the PRD file exists 2. Validate that the new status is one of the allowed values 3. Read the current PRD metadata 4. Check if the status transition is valid according to the lifecycle rules 5. Update the PRD metadata: - Change `status` field to new status - Update `last_updated` to current date - If moving to APPROVED: prompt for `approved_by` name and set `approved_date` - If moving to ARCHIVED: add archive metadata section 6. Add status change to a history section in the PRD (create if doesn't exist) 7. Determine the new directory location based on status 8. Move the file to the appropriate directory (using git mv if in git repo) 9. Update any relative path references in the moved PRD 10. Report the changes made ## Status Transition Rules Valid transitions: - DRAFT → REVIEW, ARCHIVED - REVIEW → APPROVED, DRAFT, ARCHIVED - APPROVED → ACTIVE, REVIEW, ARCHIVED - ACTIVE → COMPLETE, ARCHIVED - COMPLETE → ARCHIVED - ARCHIVED → (no transitions allowed) ## Metadata Updates ### Moving to APPROVED ```yaml status: APPROVED approved_by: [Prompt for name] approved_date: 2025-01-06 ``` ### Moving to ARCHIVED ```yaml status: ARCHIVED archive_date: 2025-01-06 archive_reason: [Use --comment or prompt] final_task_completion: [Calculate if task file exists] ``` ### Status History Section Add or update in PRD: ```markdown ## Status History - 2025-01-06: DRAFT → REVIEW (Ready for stakeholder feedback) - 2025-01-07: REVIEW → APPROVED (Approved by Jane Smith) - 2025-01-08: APPROVED → ACTIVE (Development started) ``` ## Output Format ``` 📝 Updating PRD Status... Current Status: REVIEW New Status: APPROVED ✅ Metadata updated: - status: APPROVED - approved_by: Jane Smith - approved_date: 2025-01-06 - last_updated: 2025-01-06 📄 Moving file: From: ./feature-auth-frd.md To: product-docs/prds/approved/feature-auth-frd.md ✅ Status change complete! Comment: "All stakeholders have reviewed and approved the requirements" ``` ## Error Handling - If file doesn't exist: Exit with error message - If invalid status: Show valid status options and exit - If invalid transition: Show allowed transitions from current status - If destination file exists: Prompt to overwrite or abort - If no write permissions: Report error and suggest using sudo ## Example ```bash # Move PRD to review status prd-status feature-auth-frd.md review --comment "Ready for stakeholder review" # Approve a PRD (will prompt for approver name) prd-status feature-auth-frd.md approved # Archive a completed PRD prd-status old-feature-frd.md archived --comment "Feature deprecated in v2.0" # Mark PRD as active development prd-status feature-auth-frd.md active ``` ## Implementation Tips for Claude Code 1. **Transition Validation**: Implement a state machine to validate transitions 2. **Interactive Prompts**: Ask for required fields like approver name when needed 3. **History Preservation**: Append to status history, don't overwrite 4. **Path Resolution**: Handle both absolute and relative paths for PRD files 5. **Atomic Operations**: Update metadata and move file in a transaction-like manner 6. **Progress Integration**: If moving to COMPLETE, calculate final task completion percentage
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.