skills/create-prd/SKILL.md
Use when creating a Product Requirements Document from a conversation or feature request through structured context gathering
npx skillsauth add giladresisi/ai-dev-env create-prdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a comprehensive Product Requirements Document (PRD) through strict context gathering, API research, and structured documentation. This command produces a production-ready PRD serving as the single source of truth for implementation.
Output File: $ARGUMENTS (default: PRD.md in project root)
DO NOT CREATE THE PRD UNTIL YOU HAVE COMPLETE CONTEXT
Workflow:
Principles:
Required Questions - Ask the user:
Do not proceed without:
Mandatory if external APIs or unfamiliar SDKs involved.
List all external APIs/SDKs, then ask user for each:
This project integrates with [API name].
Options:
1. Do you have existing research documents? (provide paths)
2. Should I research [API name] before creating PRD?
3. Skip research and document based on current knowledge (not recommended for unfamiliar APIs)
Your preference?
For each API requiring research:
/explore-api [API name].agents/research/[api]-research.mdFor EVERY external API/service, research MUST verify:
Feasibility: Is what we want to achieve technically possible with this API?
Allowability: Is what we want to achieve permitted by the service?
Setup Requirements: What external setup is needed?
Do not proceed without:
For each template section:
Business Context:
Technical Context:
Scope Definition:
Parallel Execution Design:
Risk Management:
AI Agents: Tools/capabilities? Registration pattern? Conversation flow? Result presentation? Web Apps: User workflows? Frontend framework? API design? Auth requirements? APIs/Services: Endpoints? Request/response formats? Rate limiting? Versioning? Libraries: Public API surface? Installation? Usage examples? Dependencies? Universal: Error handling? Logging? Tests (unit/integration/e2e)? Documentation?
Parallel Execution Planning:
If PRD exists:
mv PRD.md PRD.backup-$(date +%Y%m%d-%H%M%S).md
Ready to create PRD:
- Project Type: [type]
- Target File: [path]
- API Research: [completed/skipped/N/A]
- Sections: [number]
- Skipped: [list or "none"]
Proceed? (y/n)
Follow this hierarchical structure. Adapt sections based on project type.
Each section below shows:
# Product Requirements Document: [Product Name]Req: Yes | Format: H1 with "Product Requirements Document: " prefix
## Executive SummaryReq: Yes | Format: H2, 2-3 paragraphs
[Product Name] - [One-liner]
**Paddy** is an AI agent enabling Obsidian users to interact with vaults using natural language.**TaskFlow** is a collaborative PM app helping remote teams coordinate through task boards and async video.**PaymentHub** is a unified payment API abstracting multiple providers behind one interface.MVP Goal: [One sentence]
## MissionReq: Yes | Format: H2, 1-2 sentences
### Core Principles - Numbered list with bold names
1. **[Principle]** - [Explanation]
2. **[Principle]** - [Explanation]
3. **[Principle]** - [Explanation]
## Target UsersReq: Yes | Format: H2 with subsections
[User Group] who want to:
Technical Comfort Level: [Description]
## MVP ScopeReq: Yes | Format: H2 with H3 subsections
### In Scope - Categorized bullets:
### Out of Scope (Future Considerations) - Bullet list
## User StoriesReq: Yes | Format: H2 with H3 subsections
### Primary User Stories - Numbered list:
1. **As a [role], I want to [action]**, so that [benefit].
- Example: "[concrete example]"
### Technical User Stories - Same format (optional)
## Core Architecture & PatternsReq: Yes | Format: H2 with H3 subsections
### Architecture
### Key Patterns - Numbered, bold-labeled:
**1. [Pattern]**
- [Description]
- [Code example if helpful]
## Tools (AI Agents) OR ## Features (Others)Req: Yes | Format: H2 with H3 per tool/feature
For AI Agents:
### Tool N: `tool_name`
**Purpose:** [What it does]
**Operations:**
- [Operation 1]
- [Operation 2]
**Key Features:**
- [Notable feature 1]
For Other Products:
### Feature N: [Name]
**Description:** [What users get]
**Components:**
- [Component 1]
**User Experience:**
- [Interaction pattern]
## Technology StackReq: Yes | Format: H2 with H3 per category
### [Category]
- **[Tool]** (version) - [Purpose]
Categories: Backend / Frontend / Database / Infrastructure / Testing
## Parallel Execution ArchitectureReq: Yes | Format: H2 with H3 subsections
Purpose: Enable independent team/agent workstreams to execute concurrently
## Parallel Execution Architecture
### Team Structure
**Workstream Teams:**
- **Team A - [Name]**: [Responsibility scope]
- Focus: [What they build]
- Expertise: [Required skills]
- Works with: [Other teams they depend on]
- **Team B - [Name]**: [Responsibility scope]
- Focus: [What they build]
- Expertise: [Required skills]
- Works with: [Other teams]
### Interface Contracts
**CRITICAL**: These contracts enable parallel development
#### Contract 1: [Name] (Team A → Team B)
**Provider:** Team A
**Consumer:** Team B
**Interface Definition:**
```[language]
# API endpoint, data schema, or contract definition
Delivery Timeline: [When available for consumption] Mock Strategy: [How Team B can work before Team A completes]
[Repeat structure for each interface]
What ALL teams must know:
Central Configuration:
# Shared config that all teams use
Integration Checkpoint 1: [When]
Integration Checkpoint 2: [When]
Phase 1 (Parallel)
├── Workstream A: [Independent]
├── Workstream B: [Independent]
└── Workstream C: [Independent]
↓
Phase 2 (After Phase 1 completes)
├── Workstream D: [Depends on A, B]
└── Workstream E: [Depends on C]
↓
Phase 3 (Final Integration)
└── Workstream F: [Depends on D, E]
Risk: [Parallel workstreams diverge or create conflicts] Mitigation:
Risk: [Blocked waiting for dependencies] Mitigation:
---
### `## Security & Configuration`
**Req**: Yes | **Format**: H2 with H3/H4 subsections
**`### Authentication`** (if applicable)
```markdown
#### **[Method]:** [Details]
[Explanation paragraph or bullets]
### Deployment Method & Data Access (if applicable)
#### **[Mechanism]:**
[Description]
#### **How It Works:**
1. [Step 1]
2. [Step 2]
#### **Security Benefits:**
- [Benefit 1]
### Configuration Management
#### **Environment Variables (`.env`):**
```[language]
# Variables
# Config file
# Settings code
**`### Security Scope`**
```markdown
#### **In Scope:**
- [Measure 1]
#### **Out of Scope (Keep Simple):**
- [Excluded 1]
## API SpecificationReq: If applicable | Format: H2 with H3 sections
### External API Integrations (if applicable) - H4 per API:
#### API: [Name] v[Version]
**Documentation:** [URL]
**Research Document:** `.agents/research/[api]-research.md` (if applicable)
**Purpose:** [Why used]
**Authentication:** [Method]
**Supported Features:**
- [Feature X]: ✓ Supported via [method]
- [Feature Y]: ✗ Not supported - Alternative: [approach]
**Integration Pattern:**
```[language]
# Init, usage, error handling examples
Compatibility Notes:
Validation Strategy:
**`### Internal Endpoints`** (if applicable) - H4 per endpoint:
```markdown
#### Endpoint: `[METHOD] [PATH]`
**Purpose:** [What it does]
**Request:**
```[language]
[Example]
Response:
[Example]
Authentication: [How] Error Responses:
[Code]: [Condition]
---
### `## Success Criteria`
**Req**: Yes | **Format**: H2 with H3
**`### MVP Success Definition`** - Three bold-labeled lists:
```markdown
**Functional Requirements:**
- [Must work 1]
**Quality Indicators:**
- [Quality bar 1]
**User Experience:**
- [UX goal 1]
## Implementation PhasesReq: Yes | Format: H2 with H3 per phase
CRITICAL FOR PARALLEL EXECUTION: Each phase must include:
### Phase 1: [Name] ([Period])
**CRITICAL FOR EXTERNAL DEPENDENCIES:**
If project uses external APIs/services, Phase 1 MUST include:
- **External Service Setup**: Complete all account creation, API key generation, dashboard configuration
- **External Service Verification**: Test that ALL external services work as expected with our requirements
- **Fallback Planning**: Document what to do if external service setup/verification fails
**Goal:** [One sentence]
**Parallelization Strategy:**
- **Concurrent Workstreams**: [Number] independent workstreams
- **Can Start After**: External service verification passes (if applicable), or "Day 1" (if no external dependencies)
**Workstreams:**
#### Workstream A: External Service Setup & Verification (If Applicable)
**Assigned To:** integration-specialist
**Dependencies:** None - must happen FIRST
**Deliverables:**
- All external API accounts created and configured
- API keys/credentials securely stored
- Dashboard/console settings configured
- Connectivity tests passing
- Feature compatibility verified
**Setup Tasks:**
- Create accounts on [Service A], [Service B]
- Generate API keys and store in secure config
- Configure webhooks/callbacks if needed
- Set up OAuth apps if needed
- Test basic API connectivity
**Verification Tests:**
```bash
# Test each external service
# Verify required features are accessible
# Confirm rate limits and quotas are sufficient
Critical Checkpoints:
If Verification Fails:
Assigned To: [Agent role - e.g., backend-specialist, frontend-specialist, test-specialist] Dependencies: [Workstream A if external APIs involved / None otherwise] Deliverables:
Integration Points:
Validation:
# Commands to verify this workstream's completion
Assigned To: [Agent role] Dependencies: [Workstream dependencies] Deliverables:
Integration Points:
Validation:
# Commands to verify completion
Phase 1 Integration Test:
# Commands to verify all workstreams integrate correctly
# MUST include external service integration tests if applicable
Goal: [One sentence]
Parallelization Strategy:
Workstreams:
Assigned To: [Agent role] Dependencies: [None / Workstream X from Phase Y] Deliverables:
Integration Points:
Validation:
# Commands to verify this workstream's completion
Phase Integration Test:
# Commands to verify all workstreams integrate correctly
---
### `## Future Considerations (Post-MVP)`
**Req**: Yes | **Format**: H2 with three bold-labeled lists
```markdown
**Potential Enhancements:**
- [Enhancement 1]
**Integration Opportunities:**
- [Integration 1]
**Advanced Features:**
- [Feature 1]
## Risks & MitigationsReq: Yes | Format: H2 with H3 per risk
### Risk: [Name]
**Mitigation:**
- [Strategy 1]
- [Strategy 2]
Include API-specific risks if external APIs used.
## AppendixReq: Optional | Format: H2 with H3 subsections
### Related Documents - Bullet list of links
### Key Dependencies - Categorized links
### Repository Structure - Directory tree in code block
Completeness:
Consistency:
Quality:
Present to user:
✅ PRD Created Successfully
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Product: [Product Name]
📄 File Location: [path]
📦 Project Type: [type]
🔬 API Research: [Completed/Skipped/N/A - list APIs]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 PRD Summary:
- Mission: [1-sentence]
- Target Users: [group]
- MVP Scope: [X] features in-scope, [Y] deferred
- Technology: [primary stack]
- Timeline: [duration]
⚠️ Assumptions Made: (if any)
- [Assumption 1]
📊 Next Steps:
1. Review PRD with stakeholders
2. Refine unclear sections
3. Begin planning (/plan-feature)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
testing
Creates a new git worktree in the auto-co-trader project for any purpose — optimization, regression, backtesting, brainstorming, etc. Use this skill when the user wants to CREATE or SET UP a new worktree — phrases like "prepare a new worktree", "set up a worktree", "create a new worktree for <purpose>", "prep a new worktree", "new worktree for autoresearch", "prepare optimization from [strategy]", or "create a worktree using [strategy]". Do NOT use this skill when the user is already in a worktree and wants to start/run/begin a task — that is handled by the relevant program file in the worktree session.
development
Use when running comprehensive project validation including tests, type checking, linting, API connectivity checks, and server startup verification
research
Use when performing a meta-level analysis of plan adherence after implementation to identify process improvements and suggest CLAUDE.md updates
documentation
Use when investigating a GitHub issue to identify root cause, assess impact, and create a fix strategy document