AgentSkillsCN

PRD

产品需求文档的全生命周期管理——创建、规划与实施 PRD

SKILL.md
--- frontmatter
name: PRD
description: Product Requirements Document lifecycle management - create, plan, and implement PRDs
version: 1.0.0
triggers:
  - "prd"
  - "create prd"
  - "plan prd"
  - "work on prd"
  - "implement"

PRD Skill

Comprehensive PRD (Product Requirements Document) management across the complete lifecycle.

Activation

This skill activates when users:

  • Mention PRDs or product requirements
  • Want to plan features or projects
  • Need to implement planned tasks

Process Flow

Upon invocation:

  1. Read the PRD specification from reference/prd-spec.md
  2. Gather context by listing existing PRDs and checking task status
  3. Determine user intent from trigger words and existing PRD state
  4. Select appropriate workflow (Create, Plan, or Work)
  5. Execute the workflow completely
  6. Report results and suggest next steps

Workflow Selection

Trigger WordsWorkflowWhen to Use
create, new, start, draftworkflows/CreatePRD.mdStarting a feature from scratch
plan, analyze, research, refineworkflows/PlanPRD.mdExisting PRD needs task breakdown
work, implement, build, code, developworkflows/WorkPRD.mdExecuting defined tasks
execute, autonomous, runworkflows/ExecutePRD.mdAutonomous execution with tracking

Autonomous Execution

For hands-off execution in a tmux session:

bash
# Start autonomous execution with task tracking
.claude/skills/PRD/scripts/execute-prd.sh <prd-name>

# Monitor progress
.claude/skills/PRD/scripts/task-status.sh <prd-name>

This ensures:

  • Task status updated to in-progress before each task
  • Validation runs before marking completed
  • Blocked tasks documented with reasons

Decision Logic

code
User mentions PRD
       │
       ▼
┌─────────────────────┐
│ PRD exists?         │
└─────────────────────┘
       │
   No  │  Yes
       │    │
       ▼    ▼
  CreatePRD  ┌─────────────────┐
             │ Tasks defined?  │
             └─────────────────┘
                    │
               No   │  Yes
                    │    │
                    ▼    ▼
               PlanPRD  WorkPRD

Available Scripts

Run via bash to query PRD state:

ScriptPurpose
scripts/list-prds.shList all PRDs
scripts/list-defined-tasks.shShow tasks ready to implement
scripts/list-draft-tasks.shShow tasks needing specs
scripts/task-status.shGet status of specific task
scripts/update-task-status.shUpdate task status
scripts/research-status.shCheck research completion
scripts/execute-prd.shStart autonomous execution

Requirements

Before proceeding:

  1. Read the workflow document completely before execution
  2. Follow each step in order - don't skip ahead
  3. Report what was accomplished with suggested next steps

Reference Materials

  • reference/prd-spec.md - PRD file format specification
  • reference/task-spec.md - Task specification template
  • schemas/tasks.schema.json - Task YAML validation
  • schemas/research.schema.json - Research YAML validation