@musashishao/agent-kit 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/.agent/agents/ai-asset-factory.md +700 -0
  2. package/.agent/agents/ai-audio-factory.md +503 -0
  3. package/.agent/agents/game-developer.md +4 -4
  4. package/.agent/agents/orchestrator.md +113 -3
  5. package/.agent/agents/project-planner.md +67 -0
  6. package/.agent/agents/unity-mobile-master.md +949 -0
  7. package/.agent/mcp/config/registry.json +65 -51
  8. package/.agent/mcp/servers/notebooklm/README.md +114 -0
  9. package/.agent/mcp/servers/notebooklm/package.json +35 -0
  10. package/.agent/mcp/servers/notebooklm/src/auth/chrome.ts +225 -0
  11. package/.agent/mcp/servers/notebooklm/src/auth/index.ts +1 -0
  12. package/.agent/mcp/servers/notebooklm/src/index.ts +516 -0
  13. package/.agent/mcp/servers/notebooklm/src/services/index.ts +3 -0
  14. package/.agent/mcp/servers/notebooklm/src/services/library.ts +217 -0
  15. package/.agent/mcp/servers/notebooklm/src/services/notebooklm.ts +380 -0
  16. package/.agent/mcp/servers/notebooklm/tsconfig.json +15 -0
  17. package/.agent/mcp-gateway/README.md +169 -20
  18. package/.agent/mcp-gateway/package.json +22 -7
  19. package/.agent/mcp-gateway/src/auth/index.ts +55 -0
  20. package/.agent/mcp-gateway/src/auth/middleware.ts +242 -0
  21. package/.agent/mcp-gateway/src/auth/oauth.ts +462 -0
  22. package/.agent/mcp-gateway/src/auth/scopes.ts +227 -0
  23. package/.agent/mcp-gateway/src/index.ts +252 -105
  24. package/.agent/mcp-gateway/src/observability/index.ts +5 -0
  25. package/.agent/mcp-gateway/src/observability/otel.ts +405 -0
  26. package/.agent/mcp-gateway/src/transports/index.ts +5 -0
  27. package/.agent/mcp-gateway/src/transports/streamableHttp.ts +235 -0
  28. package/.agent/rules/CODEX.md +89 -0
  29. package/.agent/rules/CODE_RULES.md +73 -0
  30. package/.agent/rules/GEMINI.md +25 -0
  31. package/.agent/rules/MEMORY_STATE.md +110 -0
  32. package/.agent/rules/REFERENCE.md +33 -141
  33. package/.agent/rules/REF_SKILLS.md +116 -0
  34. package/.agent/rules/REF_WORKFLOWS.md +81 -0
  35. package/.agent/scripts/ak_cli.py +106 -5
  36. package/.agent/scripts/memory_manager.py +48 -9
  37. package/.agent/skills/anti-hallucination/SKILL.md +295 -0
  38. package/.agent/skills/anti-hallucination/scripts/check_hallucination.py +299 -0
  39. package/.agent/skills/bifurcation-analysis/SKILL.md +56 -0
  40. package/.agent/skills/brainstorming/SKILL.md +80 -6
  41. package/.agent/skills/decision-memory/SKILL.md +317 -0
  42. package/.agent/skills/emergence-detector/SKILL.md +230 -0
  43. package/.agent/skills/emergence-detector/scripts/check_emergence.py +265 -0
  44. package/.agent/skills/explained-qa/SKILL.md +142 -0
  45. package/.agent/skills/explained-qa/game-terminology.md +214 -0
  46. package/.agent/skills/game-development/ai-dialogue-engine/SKILL.md +442 -0
  47. package/.agent/skills/game-development/ai-graphics-generator/SKILL.md +463 -0
  48. package/.agent/skills/game-development/ai-playtest-framework/SKILL.md +570 -0
  49. package/.agent/skills/game-development/camera-systems/SKILL.md +607 -0
  50. package/.agent/skills/game-development/card-battle-engine/SKILL.md +618 -0
  51. package/.agent/skills/game-development/character-controller-3d/SKILL.md +908 -0
  52. package/.agent/skills/game-development/cloud-save-sync/SKILL.md +527 -0
  53. package/.agent/skills/game-development/combat-system/SKILL.md +748 -0
  54. package/.agent/skills/game-development/compliance-rating/SKILL.md +277 -0
  55. package/.agent/skills/game-development/crossplatform-build/SKILL.md +386 -0
  56. package/.agent/skills/game-development/cultivation-progression/SKILL.md +520 -0
  57. package/.agent/skills/game-development/data-driven-balance/SKILL.md +535 -0
  58. package/.agent/skills/game-development/game-analytics-integrator/SKILL.md +410 -0
  59. package/.agent/skills/game-development/game-audio-advanced/SKILL.md +646 -0
  60. package/.agent/skills/game-development/game-economy-designer/SKILL.md +375 -0
  61. package/.agent/skills/game-development/game-marketing/SKILL.md +85 -0
  62. package/.agent/skills/game-development/game-state-manager/SKILL.md +883 -0
  63. package/.agent/skills/game-development/hybrid-game-spec/SKILL.md +220 -0
  64. package/.agent/skills/game-development/inventory-quest/SKILL.md +747 -0
  65. package/.agent/skills/game-development/liveops/SKILL.md +308 -0
  66. package/.agent/skills/game-development/localization/SKILL.md +286 -0
  67. package/.agent/skills/game-development/mobile-input-patterns/SKILL.md +343 -0
  68. package/.agent/skills/game-development/monetization-strategy/SKILL.md +94 -0
  69. package/.agent/skills/game-development/multiplayer-master/SKILL.md +727 -0
  70. package/.agent/skills/game-development/narrative-branching/SKILL.md +593 -0
  71. package/.agent/skills/game-development/procedural-level-ai/SKILL.md +367 -0
  72. package/.agent/skills/game-development/prototyping-rapid/SKILL.md +205 -0
  73. package/.agent/skills/game-development/spec-ecosystem/SKILL.md +155 -0
  74. package/.agent/skills/game-development/spec-ecosystem/decision-log-format.md +129 -0
  75. package/.agent/skills/game-development/spec-ecosystem/templates/PLAN-template.md +178 -0
  76. package/.agent/skills/game-development/spec-ecosystem/templates/SPEC-template.md +110 -0
  77. package/.agent/skills/game-development/spec-ecosystem/templates/TASKS-template.md +156 -0
  78. package/.agent/skills/game-development/survival-systems/SKILL.md +493 -0
  79. package/.agent/skills/game-development/testing-qa/SKILL.md +270 -0
  80. package/.agent/skills/game-development/unity-mobile-optimization/SKILL.md +271 -0
  81. package/.agent/skills/intent-capture/SKILL.md +65 -0
  82. package/.agent/skills/mcp-composition/SKILL.md +362 -0
  83. package/.agent/skills/mcp-observability/SKILL.md +323 -0
  84. package/.agent/skills/mcp-security/SKILL.md +314 -0
  85. package/.agent/skills/trust-spectrum/SKILL.md +291 -0
  86. package/.agent/skills/vibe-coding-guard/SKILL.md +328 -0
  87. package/.agent/templates/AGENTS.game.md +63 -0
  88. package/.agent/templates/docs/WORKFLOW_GUIDE.en.md +100 -0
  89. package/.agent/templates/docs/WORKFLOW_GUIDE.vi.md +100 -0
  90. package/.agent/workflows/ai-agent.md +2 -0
  91. package/.agent/workflows/autofix.md +1 -0
  92. package/.agent/workflows/brainstorm.md +1 -0
  93. package/.agent/workflows/context.md +1 -0
  94. package/.agent/workflows/create.md +39 -8
  95. package/.agent/workflows/dashboard.md +1 -0
  96. package/.agent/workflows/debug.md +14 -0
  97. package/.agent/workflows/deploy.md +14 -0
  98. package/.agent/workflows/enhance.md +44 -0
  99. package/.agent/workflows/gamekit-init.md +177 -0
  100. package/.agent/workflows/gamekit-launch.md +338 -0
  101. package/.agent/workflows/gamekit-plan.md +204 -0
  102. package/.agent/workflows/gamekit-qa.md +153 -0
  103. package/.agent/workflows/gamekit-spec.md +243 -0
  104. package/.agent/workflows/gamekit-tasks.md +208 -0
  105. package/.agent/workflows/marketing.md +2 -0
  106. package/.agent/workflows/next.md +1 -0
  107. package/.agent/workflows/orchestrate.md +12 -0
  108. package/.agent/workflows/pentest.md +2 -0
  109. package/.agent/workflows/plan.md +42 -0
  110. package/.agent/workflows/preview.md +1 -0
  111. package/.agent/workflows/quality.md +1 -0
  112. package/.agent/workflows/saas.md +2 -0
  113. package/.agent/workflows/spec.md +42 -0
  114. package/.agent/workflows/status.md +1 -0
  115. package/.agent/workflows/test.md +14 -0
  116. package/.agent/workflows/ui-ux-pro-max.md +1 -0
  117. package/bin/cli.js +411 -111
  118. package/package.json +1 -2
  119. package/.agent/agents/game-asset-curator.md +0 -317
  120. package/.agent/agents/game-narrative-designer.md +0 -310
  121. package/.agent/agents/game-qa-agent.md +0 -441
  122. package/.agent/workflows/game-prototype.md +0 -154
  123. package/docs/AI_DATA_INFRASTRUCTURE.md +0 -288
  124. package/docs/CHANGELOG_AI_INFRA.md +0 -141
  125. package/docs/MIGRATION_GUIDE_V1.9.md +0 -55
@@ -0,0 +1,204 @@
1
+ ---
2
+ description: "Generate implementation plan from approved game specification."
3
+ description_vi: "Tạo kế hoạch triển khai từ đặc tả game đã được duyệt."
4
+ description_en: "Generate implementation plan from approved game specification."
5
+ ---
6
+
7
+ # /gamekit.plan - Game Implementation Plan
8
+
9
+ Generate a detailed implementation plan from an approved specification. Includes task breakdown, agent assignments, and file structure.
10
+
11
+ ---
12
+
13
+ ## 🎯 Purpose
14
+
15
+ Transform SPEC into actionable PLAN:
16
+ 1. Define tech stack with rationale
17
+ 2. Create file/folder structure
18
+ 3. Break down into tasks with dependencies
19
+ 4. Assign agents to each task
20
+ 5. Define verification criteria
21
+
22
+ ---
23
+
24
+ ## Prerequisites
25
+
26
+ - `SPEC-{game}.md` exists in `docs/specs/`
27
+ - SPEC has been reviewed and approved by user
28
+
29
+ ---
30
+
31
+ ## 📋 Workflow Steps
32
+
33
+ ### Step 0: Read SPEC and Decisions
34
+
35
+ ```markdown
36
+ 🔍 **Reading specification...**
37
+
38
+ **SPEC file:** docs/specs/SPEC-{game}.md
39
+ **Decisions:** .agent/memory/decisions.md
40
+
41
+ **Key points from SPEC:**
42
+ - Platform: [from SPEC]
43
+ - Core Loop: [from SPEC]
44
+ - Constraints: [from SPEC]
45
+ ```
46
+
47
+ ### Step 1: Tech Stack Selection
48
+
49
+ Using `explained-qa` skill:
50
+
51
+ ```markdown
52
+ ### ❓ Engine nào phù hợp cho game này?
53
+
54
+ > 💡 **Giải thích:** Engine là "xưởng sản xuất" game.
55
+ > Mỗi engine có thế mạnh riêng.
56
+
57
+ **Phân tích dựa trên SPEC:**
58
+ | Factor | Requirement | Best Fit |
59
+ |--------|-------------|----------|
60
+ | Platform: [X] | [constraint] | [engine] |
61
+ | Art Style: [X] | [constraint] | [engine] |
62
+ | Complexity: [X] | [constraint] | [engine] |
63
+
64
+ **Đề xuất:**
65
+ | Option | Lý do | Trade-off |
66
+ |--------|-------|-----------|
67
+ | (A) Unity 6 | Industry standard, mobile strong | Learning curve, runtime fee |
68
+ | (B) Godot 4.3 | Free, 2D excellent | Smaller community |
69
+ | (C) Phaser/Web | Browser instant-play | Limited 3D |
70
+
71
+ **Dựa trên SPEC, AI gợi ý:** [Recommendation]
72
+ ```
73
+
74
+ → Log to `decisions.md`
75
+
76
+ ### Step 2: Architecture Decisions
77
+
78
+ Ask about (using `explained-qa`):
79
+ - State management approach
80
+ - Save system design
81
+ - Event system architecture
82
+ - Asset organization
83
+
84
+ → Log each to `decisions.md`
85
+
86
+ ### Step 3: File Structure Generation
87
+
88
+ Based on tech stack and architecture:
89
+
90
+ ```markdown
91
+ 📁 **Proposed Structure:**
92
+
93
+ [Generate structure based on engine selection]
94
+
95
+ **Unity Example:**
96
+ Assets/
97
+ ├── _Project/
98
+ │ ├── Scripts/
99
+ │ │ ├── Core/
100
+ │ │ │ ├── GameManager.cs
101
+ │ │ │ ├── GameEvents.cs
102
+ │ │ │ └── SaveSystem.cs
103
+ │ │ ├── Gameplay/
104
+ │ │ │ └── [Core loop scripts]
105
+ │ │ └── UI/
106
+ │ │ └── [UI controllers]
107
+ │ ├── ScriptableObjects/
108
+ │ │ └── [Data definitions]
109
+ │ └── Scenes/
110
+ │ ├── Bootstrap.unity
111
+ │ └── Game.unity
112
+ └── Art/
113
+ └── [Based on art style]
114
+ ```
115
+
116
+ ### Step 4: Task Breakdown
117
+
118
+ Generate tasks following pattern:
119
+
120
+ ```markdown
121
+ ## Phase 1: Core Systems
122
+
123
+ | Task | Agent | Priority | Depends | I→O→V |
124
+ |------|-------|----------|---------|-------|
125
+ | 1.1 Create GameEvents.cs (Event Bus) | unity-mobile-master | P0 | None | SPEC → Script → Events fire |
126
+ | 1.2 Create GameManager.cs | unity-mobile-master | P0 | 1.1 | Events → Manager → Game state works |
127
+ | 1.3 Create SaveSystem.cs | unity-mobile-master | P0 | 1.1 | Design → Script → Save/Load works |
128
+
129
+ ## Phase 2: Gameplay (from Core Loop)
130
+
131
+ [Tasks derived from SPEC core loop]
132
+
133
+ ## Phase 3: UI
134
+
135
+ [Tasks for UI based on SPEC]
136
+
137
+ ## Phase 4: Audio & Polish
138
+
139
+ [Tasks for audio, effects, juice]
140
+ ```
141
+
142
+ ### Step 5: Agent Assignment Matrix
143
+
144
+ ```markdown
145
+ ## Agent Assignments
146
+
147
+ | Agent | Responsibility | Tasks |
148
+ |-------|----------------|-------|
149
+ | `unity-mobile-master` | Core systems, gameplay | 1.1-1.3, 2.1-2.x |
150
+ | `game-developer` | Architecture decisions | Review all |
151
+ | `ai-asset-factory` | Art assets | 4.x |
152
+ | `ai-audio-factory` | Audio assets | 4.x |
153
+ ```
154
+
155
+ ### Step 6: Generate PLAN File
156
+
157
+ Using template from `spec-ecosystem/templates/PLAN-template.md`:
158
+
159
+ ```bash
160
+ # Generate PLAN file
161
+ # Location: docs/plans/PLAN-{game-slug}.md
162
+ ```
163
+
164
+ ---
165
+
166
+ ## 📁 Output Files
167
+
168
+ | File | Location | Content |
169
+ |------|----------|---------|
170
+ | PLAN | `docs/plans/PLAN-{game}.md` | Full implementation plan |
171
+ | Decisions | `.agent/memory/decisions.md` | Tech stack decisions |
172
+
173
+ ---
174
+
175
+ ## ⏭️ Next Steps
176
+
177
+ ```markdown
178
+ ✅ Implementation Plan created!
179
+
180
+ **File:** `docs/plans/PLAN-{game}.md`
181
+ **Total tasks:** X tasks across Y phases
182
+
183
+ **Review Checklist:**
184
+ - [ ] Tech stack justified?
185
+ - [ ] File structure complete?
186
+ - [ ] All tasks have I→O→V?
187
+ - [ ] Dependencies clear?
188
+ - [ ] Phase X verification defined?
189
+
190
+ **Sau khi review và approve:**
191
+ → Chạy `/gamekit.tasks` để tạo task list executable
192
+ → Hoặc `/game-hybrid` để bắt đầu implementation
193
+ ```
194
+
195
+ ---
196
+
197
+ ## 🔗 Integration
198
+
199
+ | Skill | Usage |
200
+ |-------|-------|
201
+ | `explained-qa` | Tech stack questions |
202
+ | `spec-ecosystem` | PLAN template |
203
+ | `game-developer` | Architecture decisions |
204
+ | `project-planner` | Task breakdown logic |
@@ -0,0 +1,153 @@
1
+ ---
2
+ description: "Playtest and QA loop for iterative game refinement."
3
+ description_vi: "Vòng lặp playtest và QA để tinh chỉnh game liên tục."
4
+ description_en: "Playtest and QA loop for iterative game refinement."
5
+ ---
6
+
7
+ # /gamekit-qa - Evaluative Loop (QA & Refinement)
8
+
9
+ Playtest, collect feedback, and iteratively refine game feel and balance.
10
+
11
+ > 💡 **Migrated from:** `/game-hybrid` Tier 3
12
+
13
+ ---
14
+
15
+ ## 🎯 Purpose
16
+
17
+ After implementation, enter the QA loop to:
18
+ 1. Playtest the game
19
+ 2. Collect feedback (user or AI)
20
+ 3. Refine values via ScriptableObjects
21
+ 4. Run automated balance testing
22
+ 5. Loop until satisfied
23
+
24
+ ---
25
+
26
+ ## Prerequisites
27
+
28
+ - Game is playable (core loop working)
29
+ - ScriptableObjects configured for tuning
30
+ - Basic gameplay complete
31
+
32
+ ---
33
+
34
+ ## 📋 Workflow Steps
35
+
36
+ ### Step 1: Playtest Session
37
+
38
+ // turbo
39
+ ```bash
40
+ # Open Unity and play
41
+ echo "Open Unity Editor and Play game"
42
+ ```
43
+
44
+ Manual playtest checklist:
45
+ - [ ] Core loop feels good?
46
+ - [ ] Controls responsive?
47
+ - [ ] Difficulty appropriate?
48
+ - [ ] Any bugs encountered?
49
+
50
+ ### Step 2: Collect Feedback
51
+
52
+ User or AI notes issues:
53
+
54
+ ```markdown
55
+ ## Playtest Feedback - [DATE]
56
+
57
+ ### Feel Issues
58
+ - "Jump feels too heavy"
59
+ - "Enemies spawn too fast"
60
+
61
+ ### Balance Issues
62
+ - "Level 3 is impossible"
63
+ - "Gold rewards too low"
64
+
65
+ ### Bug Reports
66
+ - "Sound cuts out after 5 minutes"
67
+ ```
68
+
69
+ → Log to `.agent/memory/playtest-log.md`
70
+
71
+ ### Step 3: AI Refinement
72
+
73
+ Using `unity-mobile-master` or `game-developer`:
74
+
75
+ ```markdown
76
+ INPUT: "Make character jump higher and feel lighter"
77
+
78
+ ACTION: Modify CharacterData.asset
79
+ - JumpForce: 10 → 15
80
+ - Gravity: 2 → 1.5
81
+
82
+ VERIFY: Playtest again, compare feel
83
+ ```
84
+
85
+ > 🔴 **RULE:** Only modify ScriptableObject values, NOT code.
86
+
87
+ ### Step 4: Automated Balance Testing
88
+
89
+ Using `game-developer`:
90
+
91
+ ```markdown
92
+ INPUT: "Run 100 combat simulations, report win rate"
93
+
94
+ OUTPUT:
95
+ - Player win rate: 65%
96
+ - Average fight duration: 12s
97
+ - Most used skill: Dash (78%)
98
+ - Recommended: Increase enemy HP by 10%
99
+ ```
100
+
101
+ ### Step 5: Loop Back
102
+
103
+ ```
104
+ IF feedback addressed AND feel good:
105
+ → Exit QA loop, proceed to /gamekit-launch
106
+ ELSE:
107
+ → Return to Step 1 (Playtest again)
108
+ ```
109
+
110
+ ---
111
+
112
+ ## 📊 QA Metrics Dashboard
113
+
114
+ | Metric | Target | Current |
115
+ |--------|--------|---------|
116
+ | Core Loop Fun | 8/10 | [?] |
117
+ | Control Responsiveness | 9/10 | [?] |
118
+ | Difficulty Balance | 7/10 | [?] |
119
+ | Session Length | 5-15 min | [?] |
120
+ | Retention Intent | "Would play again" | [?] |
121
+
122
+ ---
123
+
124
+ ## 📁 Output Files
125
+
126
+ | File | Location | Content |
127
+ |------|----------|---------|
128
+ | Playtest Log | `.agent/memory/playtest-log.md` | All feedback sessions |
129
+ | Tuning Changes | ScriptableObjects | Modified values |
130
+
131
+ ---
132
+
133
+ ## ⏭️ Next Steps
134
+
135
+ ```markdown
136
+ ✅ QA Loop complete!
137
+
138
+ **Iterations:** X playtest sessions
139
+ **Key changes:** [summary of tuning]
140
+
141
+ **Game feels good?**
142
+ → Chạy `/gamekit-launch` để chuẩn bị release
143
+ ```
144
+
145
+ ---
146
+
147
+ ## 🔗 Integration
148
+
149
+ | Skill | Usage |
150
+ |-------|-------|
151
+ | `game-development/data-driven-balance` | ScriptableObject tuning |
152
+ | `game-development/testing-qa` | Playtest methodology |
153
+ | `unity-mobile-master` | Value adjustments |
@@ -0,0 +1,243 @@
1
+ ---
2
+ description: "Create game specification with Explained Q&A for all stakeholders."
3
+ description_vi: "Tạo đặc tả game với Q&A có giải thích cho mọi stakeholders."
4
+ description_en: "Create game specification with Explained Q&A for all stakeholders."
5
+ ---
6
+
7
+ # /gamekit.spec - Game Specification Creation
8
+
9
+ Create a comprehensive game specification using the Explained Q&A system. Designed for ALL stakeholders (Developer, PM, Designer).
10
+
11
+ ---
12
+
13
+ ## 🎯 Purpose
14
+
15
+ Transform a game idea into a formal specification:
16
+ 1. Use `explained-qa` for all technical questions
17
+ 2. Log all decisions to `decisions.md`
18
+ 3. Generate `SPEC-{game}.md` following template
19
+
20
+ ---
21
+
22
+ ## Prerequisites
23
+
24
+ - Project initialized with `/gamekit.init` OR
25
+ - `.agent/memory/decisions.md` exists
26
+
27
+ ---
28
+
29
+ ## 📋 Workflow Steps
30
+
31
+ ### Step 0: Check Existing Context
32
+
33
+ ```markdown
34
+ 🔍 **Reading existing decisions...**
35
+
36
+ [If decisions.md exists, summarize existing decisions]
37
+ [Skip questions that are already answered]
38
+ ```
39
+
40
+ ### Step 1: Problem Statement
41
+
42
+ Using `explained-qa` skill:
43
+
44
+ ```markdown
45
+ ### ❓ Game này giải quyết vấn đề gì?
46
+
47
+ > 💡 **Giải thích:** Mỗi game tốt đều giải quyết một "nhu cầu" của người chơi.
48
+ > Có thể là: giải trí, thư giãn, thử thách, kết nối xã hội, học hỏi...
49
+
50
+ **Gợi ý:**
51
+ | Need | Ví dụ game |
52
+ |------|------------|
53
+ | Giải trí nhanh (3-5 phút) | Candy Crush, Subway Surfers |
54
+ | Thử thách/Thành tựu | Dark Souls, Hollow Knight |
55
+ | Thư giãn/Zen | Stardew Valley, Journey |
56
+ | Kết nối xã hội | Among Us, Fall Guys |
57
+ | Học hỏi/Sáng tạo | Minecraft, Kerbal Space Program |
58
+
59
+ **Câu hỏi:** Game của bạn đáp ứng nhu cầu nào của người chơi?
60
+ ```
61
+
62
+ → Log to `decisions.md`
63
+
64
+ ### Step 1.5: Generate 3 Professional Concepts
65
+
66
+ > 💡 **From /game-from-idea**: Tạo 3 hướng đi khác nhau để user chọn.
67
+
68
+ Present 3 distinct directions with:
69
+
70
+ | Concept | USP | Core Loop | Monetization |
71
+ |---------|-----|-----------|--------------|
72
+ | A: [Name] | [Unique Selling Point] | [Action→Reward→Progression] | [F2P/Premium/Hybrid] |
73
+ | B: [Name] | [Unique Selling Point] | [Action→Reward→Progression] | [F2P/Premium/Hybrid] |
74
+ | C: [Name] | [Unique Selling Point] | [Action→Reward→Progression] | [F2P/Premium/Hybrid] |
75
+
76
+ ```markdown
77
+ ### ❓ Bạn thích hướng nào nhất?
78
+
79
+ > 💡 **Giải thích:** USP (Unique Selling Point) = Điểm khác biệt khiến game nổi bật.
80
+ > Core Loop = Vòng lặp 30 giây mà người chơi lặp lại liên tục.
81
+
82
+ **Chọn A, B, hoặc C (hoặc mix)?**
83
+ ```
84
+
85
+ → Log to `decisions.md`
86
+
87
+ ### Step 1.6: Create Mini-GDD
88
+
89
+ > 💡 **From /game-from-idea**: Expand concept thành Game Design Document.
90
+
91
+ Once a concept is selected, create `docs/GDD.md`:
92
+
93
+ ```markdown
94
+ # Mini-GDD: [Game Name]
95
+
96
+ ## Core Mechanics
97
+ - [Mechanic 1]
98
+ - [Mechanic 2]
99
+
100
+ ## Player Progression
101
+ | Milestone | Unlock |
102
+ |-----------|--------|
103
+ | Level 5 | [Feature] |
104
+ | Level 10 | [Feature] |
105
+
106
+ ## Art Style
107
+ - Style: [e.g., Pixel Art, Low Poly, Hand-drawn]
108
+ - Palette: [Color scheme]
109
+
110
+ ## Audio Direction
111
+ - Music: [Mood/Genre]
112
+ - SFX: [Style]
113
+ ```
114
+
115
+ → Log to `decisions.md`
116
+
117
+ ### Step 2: User Stories
118
+
119
+ ```markdown
120
+ ### ❓ Ai là người chơi chính của game?
121
+
122
+ > 💡 **Giải thích:** "User Story" mô tả AI là, TÔI MUỐN gì, ĐỂ được gì.
123
+ > Ví dụ: "Là người chơi casual, tôi muốn chơi một tay để chơi trên bus."
124
+
125
+ **Gợi ý đối tượng:**
126
+ | Persona | Đặc điểm |
127
+ |---------|----------|
128
+ | Casual Gamer | Chơi 5-15 phút, không muốn phức tạp |
129
+ | Core Gamer | Chơi 30-60 phút, thích thử thách |
130
+ | Hardcore | Chơi hàng giờ, master mọi thứ |
131
+ | Social Player | Chơi vì bạn bè, không cần giỏi |
132
+
133
+ **Câu hỏi:** Mô tả 2-3 loại người chơi và họ muốn gì từ game?
134
+ ```
135
+
136
+ → Log to `decisions.md`
137
+
138
+ ### Step 3: Core Loop
139
+
140
+ ```markdown
141
+ ### ❓ Vòng lặp 30 giây của game là gì?
142
+
143
+ > 💡 **Giải thích:** Core Loop = Hành động → Phần thưởng → Tiến bộ
144
+ > Đây là trải nghiệm người chơi lặp đi lặp lại mỗi 30 giây.
145
+
146
+ **Ví dụ:**
147
+ | Game | Action | Reward | Progression |
148
+ |------|--------|--------|-------------|
149
+ | Candy Crush | Ghép kẹo | Điểm + Effects | Level mới |
150
+ | Flappy Bird | Tap để bay | Qua ống = +1 | High score |
151
+ | Clash Royale | Đặt quân | Phá tháp | Trophies |
152
+
153
+ **Câu hỏi:** Mô tả core loop của game bạn: [Action] → [Reward] → [Progression]
154
+ ```
155
+
156
+ → Log to `decisions.md`
157
+
158
+ ### Step 4: Platform & Constraints
159
+
160
+ Using `explained-qa`, ask about:
161
+ - Target platform (Mobile/PC/Web)
162
+ - Art style preference
163
+ - Audio direction
164
+ - Performance requirements
165
+
166
+ → Log each to `decisions.md`
167
+
168
+ ### Step 5: Out of Scope
169
+
170
+ ```markdown
171
+ ### ❓ Những gì KHÔNG làm trong phiên bản đầu?
172
+
173
+ > 💡 **Giải thích:** Định nghĩa rõ "Out of Scope" giúp AI không đề xuất features không cần thiết.
174
+ > MVP = Minimum Viable Product = Phiên bản nhỏ nhất mà vẫn chơi được.
175
+
176
+ **Gợi ý cắt bỏ cho MVP:**
177
+ - [ ] Multiplayer (làm single-player trước)
178
+ - [ ] Cloud Save (local save trước)
179
+ - [ ] IAP/Monetization (free prototype trước)
180
+ - [ ] Social features (standalone trước)
181
+ - [ ] Localization (1 ngôn ngữ trước)
182
+
183
+ **Câu hỏi:** Liệt kê những features bạn muốn LÀM SAU, không trong MVP?
184
+ ```
185
+
186
+ → Log to `decisions.md`
187
+
188
+ ### Step 6: Generate SPEC File
189
+
190
+ Using template from `spec-ecosystem/templates/SPEC-template.md`:
191
+
192
+ ```bash
193
+ # Generate SPEC file
194
+ # Location: docs/specs/SPEC-{game-slug}.md
195
+ ```
196
+
197
+ Fill template with:
198
+ - Problem Statement (from Step 1)
199
+ - User Stories (from Step 2)
200
+ - Core Loop (from Step 3)
201
+ - Technical Constraints (from Step 4)
202
+ - Out of Scope (from Step 5)
203
+ - Acceptance Criteria (derived from above)
204
+
205
+ ---
206
+
207
+ ## 📁 Output Files
208
+
209
+ | File | Location | Content |
210
+ |------|----------|---------|
211
+ | GDD | `docs/GDD.md` | Mini Game Design Document |
212
+ | SPEC | `docs/specs/SPEC-{game}.md` | Full specification |
213
+ | Decisions | `.agent/memory/decisions.md` | All Q&A logged |
214
+
215
+ ---
216
+
217
+ ## ⏭️ Next Steps
218
+
219
+ ```markdown
220
+ ✅ Specification created!
221
+
222
+ **File:** `docs/specs/SPEC-{game}.md`
223
+ **Decisions logged:** X questions answered
224
+
225
+ **Review Checklist:**
226
+ - [ ] Problem statement clear?
227
+ - [ ] User stories have benefits?
228
+ - [ ] Core loop defined?
229
+ - [ ] Out of scope explicit?
230
+
231
+ **Sau khi review và approve:**
232
+ → Chạy `/gamekit.plan` để tạo implementation plan
233
+ ```
234
+
235
+ ---
236
+
237
+ ## 🔗 Integration
238
+
239
+ | Skill | Usage |
240
+ |-------|-------|
241
+ | `explained-qa` | All questions use this format |
242
+ | `spec-ecosystem` | Template and structure |
243
+ | `brainstorming` | Dynamic question generation |