Imported from neumachen/dotfiles (
private_dot_config/exact_aider-desk/exact_skills/shiki-prd/SKILL.md). Install upstream withnpx skills add neumachen/dotfiles --skill shiki-prd. Copyright stays with the author (Apache-2.0).
Product Requirements Document
Requirements discovery through strategic questioning to create comprehensive PRDs.
When to Use
Use this skill when:
- Starting a new feature or project that needs clear requirements
- Requirements are vague and need refinement through dialogue
- A comprehensive Product Requirements Document is needed
- Planning phase of development workflow
Do not use when:
- Requirements are already clear and documented
- User wants to start implementation immediately
Rules
Rule: Ask strategic questions one at a time
When: Gathering requirements
Then: Ask one question, validate answer, then proceed
Strategic questions:
Q1: What are we building and why?
- Validation requirements: Must have both problem AND goal, 2-3 sentences minimum
- If vague, probe for: Specific pain points, target users, decisions supported
Q2: Must-have core features?
- Validation requirements: At least 2 concrete features, 3-5 critical features recommended
- If vague, ask: What will users do first? What provides core value?
- If too many, help prioritize: Launch blockers vs nice-to-have
Q3: Tech stack and requirements?
- Validation requirements: Technologies, integrations, constraints
- Optional if: Extending existing project
- If existing project, ask about: Existing integrations, performance requirements, team preferences
Q4: Architecture and design choices?
- Validation requirements: Optional question
- Topics: Folder structure preferences, design patterns, architectural style, data modeling
Q5: Explicitly OUT of scope?
- Validation requirements: At least 1 explicit exclusion
- Prevents: Scope creep
- Clarifies: Boundaries
- If none, suggest: "What won't we build in this phase to keep scope manageable?"
Q6: Additional context?
- Validation requirements: Optional question
- Topics: Compliance, accessibility, deadlines, team constraints
Rule: Validate before document generation
When: All questions answered
Then: Verify all validation gates pass
Validation gates:
- Gate 1 (Q1): Both problem AND goal stated
- Gate 2 (Q2): At least 2 concrete features
- Gate 3 (Q5): At least 1 explicit scope exclusion
If any gate fails: Then: Return to relevant question, guide user to provide missing information
Rule: Save files to correct location
When: Generating PRD documents
Then: Use shiki-worktree-utils for save location
Save preference:
- If in worktree and it has
.aider-desk: use worktree's.aider-desk/shiki/outputs - Otherwise: use project root's
.aider-desk/shiki/outputs
Save files:
- Determine project name (sanitize: lowercase, spaces→hyphens)
- Create directory:
mkdir -p {SAVE_BASE}/{prd-name} - Save full PRD to:
{SAVE_BASE}/{prd-name}/full-prd.md - Save quick PRD to:
{SAVE_BASE}/{prd-name}/quick-prd.md - Verify both files with Read tool
- Display actual file paths
Rule: Use standard output structure
When: Generating PRD documents
Then: Follow standard format
Full PRD format:
# Product Requirements Document: {Project Name}
## Problem & Goal
{Q1 answer - problem and goal, 2-3 sentences}
## Requirements
### Must-Have Features
{Q2 answer expanded - list of 3-5 critical features with brief descriptions}
### Technical Requirements
{Q3 answer detailed - technologies, integrations, constraints}
### Architecture & Design
{Q4 answer if provided - folder structure, design patterns, architectural style}
## Out of Scope
{Q5 answer - explicit exclusions with rationale}
## Additional Context
{Q6 answer if provided - compliance, accessibility, deadlines, team constraints}
Quick PRD format: 2-3 paragraphs, AI-optimized summary of the full PRD
Process
- Ask Q1: What are we building and why?
- Validate Q1 answer (problem + goal, 2-3 sentences)
- Ask Q2: Must-have core features?
- Validate Q2 answer (2+ concrete features)
- Ask Q3: Tech stack and requirements? (optional if existing project)
- Ask Q4: Architecture and design choices? (optional)
- Ask Q5: Explicitly out of scope?
- Validate Q5 answer (1+ explicit exclusion)
- Ask Q6: Additional context? (optional)
- Validate all gates pass
- Generate full PRD with standard structure
- Generate quick PRD (2-3 paragraphs)
- Save files to correct location
- Verify files exist
- Display actual file paths
- Direct user to shiki-plan
Preconditions
Before using this skill, verify:
- A feature or project idea has been identified (even if vague)
- Requirements gathering is needed before implementation
- No complete PRD exists for this feature/project
- Planning Mode is appropriate
Postconditions
After completing this skill, verify:
- Full PRD document saved to
{SAVE_BASE}/{prd-name}/full-prd.md - Quick PRD document saved to
{SAVE_BASE}/{prd-name}/quick-prd.md - Actual file paths displayed to user
- User directed to next steps (shiki-plan)
Success Metrics
This skill is successful when:
- All strategic questions (Q1-Q6) asked and answered
- Validation gates pass (problem+goal stated, 2+ features, 1+ scope exclusion)
- Both full-prd.md and quick-prd.md created and verified
- Documents follow standard output structure
- User confirms satisfaction with PRD
Common Situations
Situation: User provides vague problem statement
Pattern:
- When: Problem statement unclear
- Then: Probe for specific pain points, target users, decisions supported
Situation: User lists too many features
Pattern:
- When: >5 features listed
- Then: Help prioritize (launch blockers vs nice-to-have)
Situation: User has no scope exclusions
Pattern:
- When: No exclusions provided
- Then: Suggest: "What won't we build in this phase to keep scope manageable?"