Documentation Creation Criteria
Templates
- prd-template.md - Product Requirements Document template
- adr-template.md - Architecture Decision Record template
- design-template.md - Technical Design Document template
- plan-template.md - Work Plan template
- task-template.md - Task file template for implementation tasks
- uxrd-template.md - UX Requirements Document template
- gdd-template.md - Game Design Document template
- market-analysis-template.md - Market Analysis template
- feature-spec-template.md - Feature Specification template
- analytics-setup-template.md - Analytics Setup template
- engine-setup-template.md - Engine Setup template
- handoff-template.md - Handoff Document template
Creation Decision Matrix
| Condition |
Required Documents |
Creation Order |
| New Feature Addition |
PRD → [ADR] → Design Doc → Work Plan |
After PRD approval |
| ADR Conditions Met (see below) |
ADR → Design Doc → Work Plan |
Start immediately |
| 6+ Files |
ADR → Design Doc → Work Plan (Required) |
Start immediately |
| 3-5 Files |
Design Doc → Work Plan (Recommended) |
Start immediately |
| 1-2 Files |
None |
Direct implementation |
| New Game Project |
GDD → Market Analysis → [ADR] → Design Doc → Work Plan |
After GDD approval |
| New Game Feature |
Feature Spec → [GDD Update] → Design Doc → Work Plan |
After Feature Spec approval |
| Art/Visual Change |
Art Direction → Design Doc |
After Art Direction approval |
ADR Creation Conditions (Required if Any Apply)
1. Contract System Changes
- Adding nested contracts with 3+ levels:
Contract A { Contract B { Contract C { field: T } } }
- Rationale: Deep nesting has high complexity and wide impact scope
- Changing/deleting contracts used in 3+ locations
- Rationale: Multiple location impacts require careful consideration
- Contract responsibility changes (e.g., DTO→Entity, Request→Domain)
- Rationale: Conceptual model changes affect design philosophy
2. Data Flow Changes
- Storage location changes (DB→File, Memory→Cache)
- Processing order changes with 3+ steps
- Example: "Input→Validation→Save" to "Input→Save→Async Validation"
- Data passing method changes (parameter passing→shared state, direct reference→event-based communication)
3. Architecture Changes
- Layer addition, responsibility changes, component relocation
4. External Dependency Changes
- Library/framework/external API introduction or replacement
5. Complex Implementation Logic (Regardless of Scale)
- Managing 3+ states
- Coordinating 5+ asynchronous processes
Detailed Document Definitions
PRD (Product Requirements Document)
Purpose: Define business requirements and user value
Includes:
- Business requirements and user value
- Success metrics and KPIs (measurable format)
- User stories and use cases
- MoSCoW prioritization (Must/Should/Could/Won't)
- MVP and Future phase separation
- User journey diagram (required)
- Scope boundary diagram (required)
Excludes:
- Technical implementation details (→Design Doc)
- Technical selection rationale (→ADR)
- Implementation phases (→Work Plan)
- Task breakdown (→Work Plan)
ADR (Architecture Decision Record)
Purpose: Record technical decision rationale and background
Includes:
- Decision (what was selected)
- Rationale (why that selection was made)
- Option comparison (minimum 3 options) and trade-offs
- Architecture impact
- Principled implementation guidelines (e.g., "Use dependency injection")
Excludes:
- Implementation schedule, duration (→Work Plan)
- Detailed implementation procedures (→Design Doc)
- Specific code examples (→Design Doc)
- Resource assignments (→Work Plan)
Design Document
Purpose: Define technical implementation methods in detail
Includes:
- Existing codebase analysis (required)
- Implementation path mapping (both existing and new)
- Integration point clarification (connection points with existing code even for new implementations)
- Technical implementation approach (vertical/horizontal/hybrid)
- Technical dependencies and implementation constraints (required implementation order)
- Interface and contract definitions
- Data flow and component design
- E2E verification procedures at integration points
- Acceptance criteria (measurable format)
- Change impact map (clearly specify direct impact/indirect impact/no ripple effect)
- Complete enumeration of integration points
- Data contract clarification
- Agreement checklist (agreements with stakeholders)
- Prerequisite ADRs (including common ADRs)
Required Structural Elements:
Change Impact Map:
Change Target: [Component/Feature]
Direct Impact: [Files/Functions]
Indirect Impact: [Data format/Processing time]
No Ripple Effect: [Unaffected features]
Interface Change Matrix:
Existing: [Function/method/operation name]
New: [Function/method/operation name]
Conversion Required: [Yes/No]
Compatibility Method: [Approach]
Excludes:
- Why that technology was chosen (→Reference ADR)
- When to implement, duration (→Work Plan)
- Who will implement (→Work Plan)
GDD (Game Design Document)
Purpose: Define game vision, core mechanics, progression, and systems
Includes:
- Core loop
- Game pillars
- Progression systems
- Balancing parameters
- Content specifications
Excludes:
- Technical implementation (→Design Doc)
- Market analysis (→Market Analysis)
- Art specifications (→Art Direction)
Market Analysis
Purpose: Validate market opportunity and competitive positioning
Includes:
- Competitor analysis
- Market sizing
- Target audience
- Monetization potential
- Risk assessment
- Go/No-Go recommendation
Excludes:
- Game design details (→GDD)
- Technical specs (→Design Doc)
Feature Specification
Purpose: Detailed specification of a single game feature or system
Includes:
- User stories
- Acceptance criteria
- Balancing parameters
- Edge cases
Excludes:
- Full game vision (→GDD)
- Implementation plan (→Work Plan)
Work Plan
Purpose: Implementation task management and progress tracking
Includes:
- Task breakdown and dependencies (maximum 2 levels)
- Schedule and duration estimates
- Copy E2E verification procedures from Design Doc (cannot delete, can add)
- Phase 4 Quality Assurance Phase (required)
- Progress records (checkbox format)
Excludes:
- Technical rationale (→ADR)
- Design details (→Design Doc)
Phase Division Criteria:
- Phase 1: Foundation Implementation - Contract definitions, interfaces/signatures, test preparation
- Phase 2: Core Feature Implementation - Business logic, unit tests
- Phase 3: Integration Implementation - External connections, presentation layer
- Phase 4: Quality Assurance (Required) - Acceptance criteria achievement, all tests passing, quality checks
Three Elements of Task Completion Definition:
- Implementation Complete: Code is functional
- Quality Complete: Tests, static checks, linting pass
- Integration Complete: Verified connection with other components
Creation Process
- Problem Analysis: Change scale assessment, ADR condition check
- ADR Option Consideration (ADR only): Compare 3+ options, specify trade-offs
- Creation: Use templates, include measurable conditions
- Approval: "Accepted" after review enables implementation
Storage Locations
| Document |
Path |
Naming Convention |
Template |
| PRD |
docs/prd/ |
[feature-name]-prd.md |
prd-template.md |
| ADR |
docs/adr/ |
ADR-[4-digits]-[title].md |
adr-template.md |
| Design Doc |
docs/design/ |
[feature-name]-design.md |
design-template.md |
| Work Plan |
docs/plans/ |
YYYYMMDD-{type}-{description}.md |
plan-template.md |
| Task File |
docs/plans/tasks/{plan-name}/ |
task-{number}.md |
task-template.md |
| UXRD |
docs/uxrd/ |
[feature-name]-uxrd.md |
uxrd-template.md |
| GDD |
docs/game-design/ |
[project-name]-gdd.md |
gdd-template.md |
| Market Analysis |
docs/market-research/ |
[project-name]-market-analysis.md |
market-analysis-template.md |
| Feature Spec |
docs/game-design/features/ |
[feature-name]-spec.md |
feature-spec-template.md |
| Art Direction |
docs/art/ |
[project-name]-art-direction.md |
N/A |
| Analytics Setup |
docs/analytics/ |
[project-name]-analytics.md |
analytics-setup-template.md |
| Handoff |
docs/handoffs/ |
[handoff-name]-handoff.md |
handoff-template.md |
*Note: Work plans are excluded by .gitignore
ADR Status
Proposed → Accepted → Deprecated/Superseded/Rejected
AI Automation Rules
- 5+ files: Suggest ADR creation
- Contract/data flow change detected: ADR mandatory
- Check existing ADRs before implementation
Diagram Requirements
Required diagrams for each document (using mermaid notation):
| Document |
Required Diagrams |
Purpose |
| PRD |
User journey diagram, Scope boundary diagram |
Clarify user experience and scope |
| ADR |
Option comparison diagram (when needed) |
Visualize trade-offs |
| Design Doc |
Architecture diagram, Data flow diagram |
Understand technical structure |
| Work Plan |
Phase structure diagram, Task dependency diagram |
Clarify implementation order |
Common ADR Relationships
- At creation: Identify common technical areas (logging, error handling, async processing, etc.), reference existing common ADRs
- When missing: Consider creating necessary common ADRs
- Design Doc: Specify common ADRs in "Prerequisite ADRs" section
- Compliance check: Verify design aligns with common ADR decisions
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: documentation-criteria3description: This skill should be used when the user asks to "create a PRD", "write an ADR", "create a design doc", "make a work plan", "create task files", or needs guidance on document templates, creation criteria, or determining which documents are required for a given change scope. Use when this capability is needed.4---56# Documentation Creation Criteria78## Templates910- **[prd-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/prd-template.md)** - Product Requirements Document template11- **[adr-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/adr-template.md)** - Architecture Decision Record template12- **[design-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/design-template.md)** - Technical Design Document template13- **[plan-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/plan-template.md)** - Work Plan template14- **[task-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/task-template.md)** - Task file template for implementation tasks15- **[uxrd-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/uxrd-template.md)** - UX Requirements Document template16- **[gdd-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/gdd-template.md)** - Game Design Document template17- **[market-analysis-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/market-analysis-template.md)** - Market Analysis template18- **[feature-spec-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/feature-spec-template.md)** - Feature Specification template19- **[analytics-setup-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/analytics-setup-template.md)** - Analytics Setup template20- **[engine-setup-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/engine-setup-template.md)** - Engine Setup template21- **[handoff-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/handoff-template.md)** - Handoff Document template2223## Creation Decision Matrix2425| Condition | Required Documents | Creation Order |26|-----------|-------------------|----------------|27| New Feature Addition | PRD → [ADR] → Design Doc → Work Plan | After PRD approval |28| ADR Conditions Met (see below) | ADR → Design Doc → Work Plan | Start immediately |29| 6+ Files | ADR → Design Doc → Work Plan (Required) | Start immediately |30| 3-5 Files | Design Doc → Work Plan (Recommended) | Start immediately |31| 1-2 Files | None | Direct implementation |32| New Game Project | GDD → Market Analysis → [ADR] → Design Doc → Work Plan | After GDD approval |33| New Game Feature | Feature Spec → [GDD Update] → Design Doc → Work Plan | After Feature Spec approval |34| Art/Visual Change | Art Direction → Design Doc | After Art Direction approval |3536## ADR Creation Conditions (Required if Any Apply)3738### 1. Contract System Changes39- **Adding nested contracts with 3+ levels**: `Contract A { Contract B { Contract C { field: T } } }`40 - Rationale: Deep nesting has high complexity and wide impact scope41- **Changing/deleting contracts used in 3+ locations**42 - Rationale: Multiple location impacts require careful consideration43- **Contract responsibility changes** (e.g., DTO→Entity, Request→Domain)44 - Rationale: Conceptual model changes affect design philosophy4546### 2. Data Flow Changes47- **Storage location changes** (DB→File, Memory→Cache)48- **Processing order changes with 3+ steps**49 - Example: "Input→Validation→Save" to "Input→Save→Async Validation"50- **Data passing method changes** (parameter passing→shared state, direct reference→event-based communication)5152### 3. Architecture Changes53- Layer addition, responsibility changes, component relocation5455### 4. External Dependency Changes56- Library/framework/external API introduction or replacement5758### 5. Complex Implementation Logic (Regardless of Scale)59- Managing 3+ states60- Coordinating 5+ asynchronous processes6162## Detailed Document Definitions6364### PRD (Product Requirements Document)6566**Purpose**: Define business requirements and user value6768**Includes**:69- Business requirements and user value70- Success metrics and KPIs (measurable format)71- User stories and use cases72- MoSCoW prioritization (Must/Should/Could/Won't)73- MVP and Future phase separation74- User journey diagram (required)75- Scope boundary diagram (required)7677**Excludes**:78- Technical implementation details (→Design Doc)79- Technical selection rationale (→ADR)80- **Implementation phases** (→Work Plan)81- **Task breakdown** (→Work Plan)8283### ADR (Architecture Decision Record)8485**Purpose**: Record technical decision rationale and background8687**Includes**:88- Decision (what was selected)89- Rationale (why that selection was made)90- Option comparison (minimum 3 options) and trade-offs91- Architecture impact92- Principled implementation guidelines (e.g., "Use dependency injection")9394**Excludes**:95- Implementation schedule, duration (→Work Plan)96- Detailed implementation procedures (→Design Doc)97- Specific code examples (→Design Doc)98- Resource assignments (→Work Plan)99100### Design Document101102**Purpose**: Define technical implementation methods in detail103104**Includes**:105- **Existing codebase analysis** (required)106 - Implementation path mapping (both existing and new)107 - Integration point clarification (connection points with existing code even for new implementations)108- Technical implementation approach (vertical/horizontal/hybrid)109- **Technical dependencies and implementation constraints** (required implementation order)110- Interface and contract definitions111- Data flow and component design112- **E2E verification procedures at integration points**113- **Acceptance criteria (measurable format)**114- Change impact map (clearly specify direct impact/indirect impact/no ripple effect)115- Complete enumeration of integration points116- Data contract clarification117- **Agreement checklist** (agreements with stakeholders)118- **Prerequisite ADRs** (including common ADRs)119120**Required Structural Elements**:121```yaml122Change Impact Map:123 Change Target: [Component/Feature]124 Direct Impact: [Files/Functions]125 Indirect Impact: [Data format/Processing time]126 No Ripple Effect: [Unaffected features]127128Interface Change Matrix:129 Existing: [Function/method/operation name]130 New: [Function/method/operation name]131 Conversion Required: [Yes/No]132 Compatibility Method: [Approach]133```134135**Excludes**:136- Why that technology was chosen (→Reference ADR)137- When to implement, duration (→Work Plan)138- Who will implement (→Work Plan)139140### GDD (Game Design Document)141142**Purpose**: Define game vision, core mechanics, progression, and systems143144**Includes**:145- Core loop146- Game pillars147- Progression systems148- Balancing parameters149- Content specifications150151**Excludes**:152- Technical implementation (→Design Doc)153- Market analysis (→Market Analysis)154- Art specifications (→Art Direction)155156### Market Analysis157158**Purpose**: Validate market opportunity and competitive positioning159160**Includes**:161- Competitor analysis162- Market sizing163- Target audience164- Monetization potential165- Risk assessment166- Go/No-Go recommendation167168**Excludes**:169- Game design details (→GDD)170- Technical specs (→Design Doc)171172### Feature Specification173174**Purpose**: Detailed specification of a single game feature or system175176**Includes**:177- User stories178- Acceptance criteria179- Balancing parameters180- Edge cases181182**Excludes**:183- Full game vision (→GDD)184- Implementation plan (→Work Plan)185186### Work Plan187188**Purpose**: Implementation task management and progress tracking189190**Includes**:191- Task breakdown and dependencies (maximum 2 levels)192- Schedule and duration estimates193- **Copy E2E verification procedures from Design Doc** (cannot delete, can add)194- **Phase 4 Quality Assurance Phase (required)**195- Progress records (checkbox format)196197**Excludes**:198- Technical rationale (→ADR)199- Design details (→Design Doc)200201**Phase Division Criteria**:2021. **Phase 1: Foundation Implementation** - Contract definitions, interfaces/signatures, test preparation2032. **Phase 2: Core Feature Implementation** - Business logic, unit tests2043. **Phase 3: Integration Implementation** - External connections, presentation layer2054. **Phase 4: Quality Assurance (Required)** - Acceptance criteria achievement, all tests passing, quality checks206207**Three Elements of Task Completion Definition**:2081. **Implementation Complete**: Code is functional2092. **Quality Complete**: Tests, static checks, linting pass2103. **Integration Complete**: Verified connection with other components211212## Creation Process2132141. **Problem Analysis**: Change scale assessment, ADR condition check2152. **ADR Option Consideration** (ADR only): Compare 3+ options, specify trade-offs2163. **Creation**: Use templates, include measurable conditions2174. **Approval**: "Accepted" after review enables implementation218219## Storage Locations220221| Document | Path | Naming Convention | Template |222|----------|------|------------------|----------|223| PRD | `docs/prd/` | `[feature-name]-prd.md` | [prd-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/prd-template.md) |224| ADR | `docs/adr/` | `ADR-[4-digits]-[title].md` | [adr-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/adr-template.md) |225| Design Doc | `docs/design/` | `[feature-name]-design.md` | [design-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/design-template.md) |226| Work Plan | `docs/plans/` | `YYYYMMDD-{type}-{description}.md` | [plan-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/plan-template.md) |227| Task File | `docs/plans/tasks/{plan-name}/` | `task-{number}.md` | [task-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/task-template.md) |228| UXRD | `docs/uxrd/` | `[feature-name]-uxrd.md` | [uxrd-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/uxrd-template.md) |229| GDD | `docs/game-design/` | `[project-name]-gdd.md` | [gdd-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/gdd-template.md) |230| Market Analysis | `docs/market-research/` | `[project-name]-market-analysis.md` | [market-analysis-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/market-analysis-template.md) |231| Feature Spec | `docs/game-design/features/` | `[feature-name]-spec.md` | [feature-spec-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/feature-spec-template.md) |232| Art Direction | `docs/art/` | `[project-name]-art-direction.md` | N/A |233| Analytics Setup | `docs/analytics/` | `[project-name]-analytics.md` | [analytics-setup-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/analytics-setup-template.md) |234| Handoff | `docs/handoffs/` | `[handoff-name]-handoff.md` | [handoff-template.md](${CLAUDE_PLUGIN_ROOT}/skills/documentation-criteria/references/handoff-template.md) |235236*Note: Work plans are excluded by `.gitignore`237238## ADR Status239`Proposed` → `Accepted` → `Deprecated`/`Superseded`/`Rejected`240241## AI Automation Rules242- 5+ files: Suggest ADR creation243- Contract/data flow change detected: ADR mandatory244- Check existing ADRs before implementation245246## Diagram Requirements247248Required diagrams for each document (using mermaid notation):249250| Document | Required Diagrams | Purpose |251|----------|------------------|---------|252| PRD | User journey diagram, Scope boundary diagram | Clarify user experience and scope |253| ADR | Option comparison diagram (when needed) | Visualize trade-offs |254| Design Doc | Architecture diagram, Data flow diagram | Understand technical structure |255| Work Plan | Phase structure diagram, Task dependency diagram | Clarify implementation order |256257## Common ADR Relationships2581. **At creation**: Identify common technical areas (logging, error handling, async processing, etc.), reference existing common ADRs2592. **When missing**: Consider creating necessary common ADRs2603. **Design Doc**: Specify common ADRs in "Prerequisite ADRs" section2614. **Compliance check**: Verify design aligns with common ADR decisions262263---264> Converted and distributed by [TomeVault](https://tomevault.io/claim/tundraray) — claim your Tome and manage your conversions.265<!-- tomevault:4.0:skill_md:2026-04-13 -->