Back to list
steven-levey-rt

prd-spec

by steven-levey-rt

0🍴 0📅 Jan 25, 2026

SKILL.md


name: prd-spec description: PRD workflow for building products from idea to implementation. Use when (1) starting a new product, (2) creating PRD documentation, (3) generating BDD scenarios, (4) building UI specs, (5) TDD implementation. Guides through 18-step process: PRD -> BDD -> UI -> TDD.

PRD-Spec Workflow

A comprehensive workflow for building products from idea to implementation through structured phases.

Quick Start

# Standard workflow (new products)
/prd-spec                    # Check state, run next step
/prd-spec status             # Show progress only
/prd-spec init "My App"      # Start with product description
/prd-spec bdd-scenarios      # Jump to specific step
/prd-spec redo prd-init      # Re-run a completed step
/prd-spec verify US-001-S01  # Verify specific scenario
/prd-spec export             # Concatenate all PRD files into one document

# Import workflow (existing complete PRDs)
/prd-spec import             # Import from PRD-COMPLETE.md or PRD.md
/prd-spec import docs/other/Complete.md  # Import from specific path
/prd-spec import --dry-run   # Preview without writing files
/prd-spec import --force     # Overwrite existing files

# Backfill workflow (existing codebases)
/prd-spec backfill           # Start backfill from current directory
/prd-spec backfill ./src     # Backfill from specific path
/prd-spec backfill validate  # Human validation gate (after draft)
/prd-spec backfill skip      # Skip to Phase 1 with current state

Invocation Patterns

CommandBehavior
/prd-spec or /prd-spec nextCheck state, run next step
/prd-spec <step>Run specific step (use hyphens)
/prd-spec statusShow workflow progress only
/prd-spec init "description"Start with inline description
/prd-spec redo <step>Re-run a previous step
/prd-spec verify <id>Verify scenario (US-001-S01, all, or failing)
/prd-spec exportCreate PRD-COMPLETE.md from all 4 PRD files
/prd-spec import [path]Split complete PRD into 4-file structure
/prd-spec backfill [path]Start backfill mode
/prd-spec backfill validateComplete human validation

Workflow Phases

Phase 0: Backfill (Optional - for existing codebases)

StepNameOutput
0.0backfill-initProject detection & inventory structure
0.1backfill-behaviorBehavioral inventory (routes, UI, data)
0.2backfill-testsTest coverage annotations
0.3backfill-draftDraft PRD with validation markers
GATEHuman ValidationUser marks items as INTENDED/BUG/DEPRECATED
0.4backfill-finalizeValidated PRD + user stories

Key Principle: Code shows BEHAVIOR, not INTENT. Human validation required.

Phase 1: PRD (10 steps)

StepNameOutput
1.0prd-initInitial PRD structure
1.1prd-user-personasUser personas & pain points
1.2prd-generate-featuresEpics, features, prioritization
1.3prd-user-journeysUser journey maps
1.4prd-functional-requirementsFunctional requirements
1.5prd-nfrNon-functional requirements
1.6prd-data-modelData model design
1.7prd-api-endpointsAPI specifications
1.8prd-technical-architectureTechnical architecture
1.9prd-redteam-analysisRisk analysis & gaps

Phase 2: BDD & UI (5 steps)

StepNameOutput
2.0bdd-scenariosBDD Gherkin scenarios
2.1bdd-amigosThree Amigos review
2.2bdd-feature-splitSplit into .feature files
2.3ui-specUI specification document
2.4ui-implementationImplement UI from spec

Phase 3: TDD (3 steps)

StepNameOutput
3.0tdd-redtestFailing tests (Red)
3.1tdd-green-codeMinimal implementation (Green)
3.2tdd-refactorRefactor with tests passing

Alternative: Use /build-it skill After generating features-manifest.json in Phase 2, you can use the standalone /build-it skill for TDD implementation. It provides:

  • Smart scenario selection based on priority and dependencies
  • Automated RED-GREEN-REFACTOR cycle
  • Automatic manifest updates when scenarios pass
  • Run /build-it status to see progress

State Management

Progress tracked in docs/prd/.prd-workflow-state.json. See references/workflow-state.md for full details.

State is determined by:

  1. Reading state file if exists
  2. Falling back to file existence checks (PRD.md, scenarios.md, etc.)
  3. Creating state file on first step

Execution Instructions

When the user invokes /prd-spec:

  1. Parse Arguments - Determine action: next, status, step, redo, backfill
  2. Check/Create State - Read docs/prd/.prd-workflow-state.json or create if missing
  3. Determine Next Step - Use getNextStep(state) logic from references/workflow-state.md
  4. Execute Step:
    • Read prompt from references/prompts/{step-name}.md
    • Replace $ARGUMENTS with any provided arguments
    • If arguments required but not provided, ask the user
    • Execute the prompt instructions
    • Update state file on completion

Step Prompts

Phase 0: Backfill

StepPrompt File
backfill-initreferences/prompts/0.0-backfill-init.md
backfill-behaviorreferences/prompts/0.1-backfill-behavior.md
backfill-testsreferences/prompts/0.2-backfill-tests.md
backfill-draftreferences/prompts/0.3-backfill-draft.md
backfill-finalizereferences/prompts/0.4-backfill-finalize.md

Phase 1-3: Standard

StepPrompt File
prd-initreferences/prompts/1.0-prd-init.md
prd-user-personasreferences/prompts/1.1-prd-user-personas.md
prd-generate-featuresreferences/prompts/1.2-prd-generate-features.md
prd-user-journeysreferences/prompts/1.3-prd-user-journeys.md
prd-functional-requirementsreferences/prompts/1.4-prd-functional-requirements.md
prd-nfrreferences/prompts/1.5-prd-nfr.md
prd-data-modelreferences/prompts/1.6-prd-data-model.md
prd-api-endpointsreferences/prompts/1.7-prd-api-endpoints.md
prd-technical-architecturereferences/prompts/1.8-prd-technical-architecture.md
prd-redteam-analysisreferences/prompts/1.9-prd-redteam-analysis.md
bdd-scenariosreferences/prompts/2.0-bdd-scenarios.md
bdd-amigosreferences/prompts/2.1-bdd-amigos.md
bdd-feature-splitreferences/prompts/2.2-bdd-feature-split.md
ui-specreferences/prompts/2.3-ui-spec.md
ui-implementationreferences/prompts/2.4-ui-implementation.md
tdd-redtestreferences/prompts/3.0-tdd-redtest.md
tdd-green-codereferences/prompts/3.1-tdd-green-code.md
tdd-refactorreferences/prompts/3.2-tdd-refactor.md
verifyreferences/prompts/verify.md
importreferences/prompts/import.md

Arguments

StepArguments
prd-initProduct description (required)
prd-generate-featuresAdditional feature ideas (optional)
tdd-redtestScenario ID (required)
tdd-green-codeScenario ID (required)
tdd-refactorScenario ID (required)
verifyScenario ID, all, or failing (optional, defaults to failing)
importSource path (optional), --dry-run, --force
backfillSource path (optional, defaults to cwd)

If required arguments not provided, prompt the user.

Output Files

The PRD is organized into 4 logical files to manage token limits:

docs/prd/
├── PRD.md                # Summary + Meta (~8K tokens)
│   ├── Section 1: Executive Summary
│   ├── Section 2: Goals and Success Metrics
│   ├── Section 11: MVP Scope
│   ├── Section 12: Risks and Mitigations
│   ├── Section 13: Timeline and Milestones
│   └── Section 14: Open Questions
│
├── product-vision.md     # The "What" (~15K tokens)
│   ├── Section 3: User Personas
│   ├── Section 4: Epics and User Stories
│   └── Section 5: User Journeys
│
├── requirements.md       # The "Criteria" (~20K tokens)
│   ├── Section 6: Functional Requirements
│   └── Section 7: Non-Functional Requirements
│
├── technical-spec.md     # The "How" (~30K tokens)
│   ├── Section 8: Technical Architecture
│   ├── Section 9: Data Model
│   └── Section 10: API Specifications
│
├── scenarios.md          # BDD Scenarios (Phase 2)
├── UI_SPEC.md            # UI Specification (Phase 2)
└── .prd-workflow-state.json  # Workflow state

Export Command

Use /prd-spec export to create a single PRD-COMPLETE.md by concatenating:

  1. PRD.md
  2. product-vision.md
  3. requirements.md
  4. technical-spec.md

This is useful for sharing with stakeholders who want one document.

References

  • State Management: references/workflow-state.md - Full state format, step names, getNextStep() logic
  • Example Sessions: references/examples.md - Standard and backfill workflow examples
  • Step Prompts: references/prompts/*.md - Individual step instructions

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon