2025-07-06 18:26:09 -05:00
template :
id : game-story-template-v2
name : Game Development Story
version : 2.0
output :
format : markdown
filename : "stories/{{epic_name}}/{{story_id}}-{{story_name}}.md"
title : "Story: {{story_title}}"
workflow :
mode : interactive
sections :
- id : initial-setup
instruction : |
This template creates detailed game development stories that are immediately actionable by game developers. Each story should focus on a single, implementable feature that contributes to the overall game functionality.
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
Before starting, ensure you have access to :
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- Game Design Document (GDD)
- Game Architecture Document
- Any existing stories in this epic
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
The story should be specific enough that a developer can implement it without requiring additional design decisions.
- id : story-header
content : |
**Epic:** {{epic_name}}
**Story ID:** {{story_id}}
**Priority:** {{High|Medium|Low}}
**Points:** {{story_points}}
**Status:** Draft
- id : description
title : Description
instruction : Provide a clear, concise description of what this story implements. Focus on the specific game feature or system being built. Reference the GDD section that defines this feature.
template : "{{clear_description_of_what_needs_to_be_implemented}}"
- id : acceptance-criteria
title : Acceptance Criteria
instruction : Define specific, testable conditions that must be met for the story to be considered complete. Each criterion should be verifiable and directly related to gameplay functionality.
sections :
- id : functional-requirements
title : Functional Requirements
type : checklist
items :
- "{{specific_functional_requirement}}"
- id : technical-requirements
title : Technical Requirements
type : checklist
items :
- "Code follows TypeScript strict mode standards"
- "Maintains 60 FPS on target devices"
- "No memory leaks or performance degradation"
- "{{specific_technical_requirement}}"
- id : game-design-requirements
title : Game Design Requirements
type : checklist
items :
- "{{gameplay_requirement_from_gdd}}"
- "{{balance_requirement_if_applicable}}"
- "{{player_experience_requirement}}"
- id : technical-specifications
title : Technical Specifications
instruction : Provide specific technical details that guide implementation. Include class names, file locations, and integration points based on the game architecture.
sections :
- id : files-to-modify
title : Files to Create/Modify
template : |
**New Files:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- `{{file_path_1}}` - {{purpose}}
- `{{file_path_2}}` - {{purpose}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Modified Files:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- `{{existing_file_1}}` - {{changes_needed}}
- `{{existing_file_2}}` - {{changes_needed}}
- id : class-interface-definitions
title : Class/Interface Definitions
instruction : Define specific TypeScript interfaces and class structures needed
type : code
language : typescript
template : |
// {{interface_name}}
interface {{interface_name}} {
{{property_1}} : {{type}};
{{property_2}} : {{type}};
{{method_1}}({{params}}): {{return_type}};
}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
// {{class_name}}
class {{class_name}} extends {{phaser_class}} {
private {{property}}: {{type}};
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
constructor({{params}}) {
// Implementation requirements
}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
public {{method}}({{params}}): {{return_type}} {
// Method requirements
}
}
- id : integration-points
title : Integration Points
instruction : Specify how this feature integrates with existing systems
template : |
**Scene Integration:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{scene_name}} : {{integration_details}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**System Dependencies:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{system_name}} : {{dependency_description}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Event Communication:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- Emits : `{{event_name}}` when {{condition}}
- Listens : `{{event_name}}` to {{response}}
- id : implementation-tasks
title : Implementation Tasks
instruction : Break down the implementation into specific, ordered tasks. Each task should be completable in 1-4 hours.
sections :
- id : dev-agent-record
title : Dev Agent Record
template : |
**Tasks:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- [ ] {{task_1_description}}
- [ ] {{task_2_description}}
- [ ] {{task_3_description}}
- [ ] {{task_4_description}}
- [ ] Write unit tests for {{component}}
- [ ] Integration testing with {{related_system}}
- [ ] Performance testing and optimization
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Debug Log:**
| Task | File | Change | Reverted? |
|------|------|--------|-----------|
| | | | |
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Completion Notes:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
<!-- Only note deviations from requirements, keep under 50 words -->
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Change Log:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
<!-- Only requirement changes during implementation -->
- id : game-design-context
title : Game Design Context
instruction : Reference the specific sections of the GDD that this story implements
template : |
**GDD Reference:** {{section_name}} ({{page_or_section_number}})
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Game Mechanic:** {{mechanic_name}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Player Experience Goal:** {{experience_description}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Balance Parameters:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{parameter_1}} : {{value_or_range}}
- {{parameter_2}} : {{value_or_range}}
- id : testing-requirements
title : Testing Requirements
instruction : Define specific testing criteria for this game feature
sections :
- id : unit-tests
title : Unit Tests
template : |
**Test Files:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- `tests/{{component_name}}.test.ts`
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Test Scenarios:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{test_scenario_1}}
- {{test_scenario_2}}
- {{edge_case_test}}
- id : game-testing
title : Game Testing
template : |
**Manual Test Cases:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
1 . {{test_case_1_description}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- Expected : {{expected_behavior}}
- Performance : {{performance_expectation}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
2 . {{test_case_2_description}}
- Expected : {{expected_behavior}}
- Edge Case : {{edge_case_handling}}
- id : performance-tests
title : Performance Tests
template : |
**Metrics to Verify:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- Frame rate maintains {{fps_target}} FPS
- Memory usage stays under {{memory_limit}}MB
- {{feature_specific_performance_metric}}
- id : dependencies
title : Dependencies
instruction : List any dependencies that must be completed before this story can be implemented
template : |
**Story Dependencies:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{story_id}} : {{dependency_description}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Technical Dependencies:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{system_or_file}} : {{requirement}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Asset Dependencies:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{asset_type}} : {{asset_description}}
- Location : `{{asset_path}}`
- id : definition-of-done
title : Definition of Done
instruction : Checklist that must be completed before the story is considered finished
type : checklist
items :
- "All acceptance criteria met"
- "Code reviewed and approved"
- "Unit tests written and passing"
- "Integration tests passing"
- "Performance targets met"
- "No linting errors"
- "Documentation updated"
- "{{game_specific_dod_item}}"
- id : notes
title : Notes
instruction : Any additional context, design decisions, or implementation notes
template : |
**Implementation Notes:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{note_1}}
- {{note_2}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Design Decisions:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{decision_1}} : {{rationale}}
- {{decision_2}} : {{rationale}}
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
**Future Considerations:**
2025-08-15 22:22:24 -05:00
2025-07-06 18:26:09 -05:00
- {{future_enhancement_1}}
2025-08-15 22:22:24 -05:00
- {{future_optimization_1}}