@iamnishankhan/opencode-kit-grok 1.0.0

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 (198) hide show
  1. package/bin/cli.js +46 -0
  2. package/kit/.opencode/AGENTS.md +392 -0
  3. package/kit/.opencode/README.md +71 -0
  4. package/kit/.opencode/USAGE.md +405 -0
  5. package/kit/.opencode/agents/backend-specialist.md +278 -0
  6. package/kit/.opencode/agents/code-archaeologist.md +114 -0
  7. package/kit/.opencode/agents/database-architect.md +233 -0
  8. package/kit/.opencode/agents/debugger.md +234 -0
  9. package/kit/.opencode/agents/devops-engineer.md +252 -0
  10. package/kit/.opencode/agents/documentation-writer.md +111 -0
  11. package/kit/.opencode/agents/explorer-agent.md +83 -0
  12. package/kit/.opencode/agents/frontend-specialist.md +606 -0
  13. package/kit/.opencode/agents/game-developer.md +169 -0
  14. package/kit/.opencode/agents/mobile-developer.md +385 -0
  15. package/kit/.opencode/agents/orchestrator.md +213 -0
  16. package/kit/.opencode/agents/penetration-tester.md +197 -0
  17. package/kit/.opencode/agents/performance-optimizer.md +194 -0
  18. package/kit/.opencode/agents/product-manager.md +120 -0
  19. package/kit/.opencode/agents/product-owner.md +103 -0
  20. package/kit/.opencode/agents/project-planner.md +418 -0
  21. package/kit/.opencode/agents/qa-automation-engineer.md +113 -0
  22. package/kit/.opencode/agents/security-auditor.md +179 -0
  23. package/kit/.opencode/agents/seo-specialist.md +119 -0
  24. package/kit/.opencode/agents/test-engineer.md +169 -0
  25. package/kit/.opencode/commands/brainstorm.md +113 -0
  26. package/kit/.opencode/commands/coordinate.md +72 -0
  27. package/kit/.opencode/commands/create.md +63 -0
  28. package/kit/.opencode/commands/debug.md +102 -0
  29. package/kit/.opencode/commands/deploy.md +175 -0
  30. package/kit/.opencode/commands/enhance.md +62 -0
  31. package/kit/.opencode/commands/orchestrate.md +241 -0
  32. package/kit/.opencode/commands/plan.md +89 -0
  33. package/kit/.opencode/commands/preview.md +80 -0
  34. package/kit/.opencode/commands/remember.md +67 -0
  35. package/kit/.opencode/commands/status.md +86 -0
  36. package/kit/.opencode/commands/test.md +143 -0
  37. package/kit/.opencode/commands/verify.md +71 -0
  38. package/kit/.opencode/memory/MEMORY.md +6 -0
  39. package/kit/.opencode/memory/feedback-history.md +9 -0
  40. package/kit/.opencode/memory/project-conventions.md +16 -0
  41. package/kit/.opencode/memory/tech-decisions.md +10 -0
  42. package/kit/.opencode/memory/user-preferences.md +9 -0
  43. package/kit/.opencode/opencode.json +15 -0
  44. package/kit/.opencode/scripts/README.md +95 -0
  45. package/kit/.opencode/scripts/auto_preview.py +149 -0
  46. package/kit/.opencode/scripts/checklist.py +75 -0
  47. package/kit/.opencode/scripts/component_registry.py +238 -0
  48. package/kit/.opencode/scripts/dependency_graph.py +73 -0
  49. package/kit/.opencode/scripts/generate_manifest.py +44 -0
  50. package/kit/.opencode/scripts/session_manager.py +120 -0
  51. package/kit/.opencode/scripts/tests/test_toolkit.py +238 -0
  52. package/kit/.opencode/scripts/validate_kit.py +397 -0
  53. package/kit/.opencode/scripts/validation_runner.py +216 -0
  54. package/kit/.opencode/scripts/verify_all.py +85 -0
  55. package/kit/.opencode/skills/api-patterns/SKILL.md +83 -0
  56. package/kit/.opencode/skills/api-patterns/api-style.md +42 -0
  57. package/kit/.opencode/skills/api-patterns/auth.md +24 -0
  58. package/kit/.opencode/skills/api-patterns/documentation.md +26 -0
  59. package/kit/.opencode/skills/api-patterns/graphql.md +41 -0
  60. package/kit/.opencode/skills/api-patterns/rate-limiting.md +31 -0
  61. package/kit/.opencode/skills/api-patterns/response.md +37 -0
  62. package/kit/.opencode/skills/api-patterns/rest.md +40 -0
  63. package/kit/.opencode/skills/api-patterns/scripts/api_validator.py +211 -0
  64. package/kit/.opencode/skills/api-patterns/security-testing.md +122 -0
  65. package/kit/.opencode/skills/api-patterns/trpc.md +41 -0
  66. package/kit/.opencode/skills/api-patterns/versioning.md +22 -0
  67. package/kit/.opencode/skills/app-builder/SKILL.md +78 -0
  68. package/kit/.opencode/skills/app-builder/agent-coordination.md +71 -0
  69. package/kit/.opencode/skills/app-builder/feature-building.md +53 -0
  70. package/kit/.opencode/skills/app-builder/project-detection.md +45 -0
  71. package/kit/.opencode/skills/app-builder/scaffolding.md +110 -0
  72. package/kit/.opencode/skills/app-builder/tech-stack.md +41 -0
  73. package/kit/.opencode/skills/app-builder/templates/SKILL.md +39 -0
  74. package/kit/.opencode/skills/app-builder/templates/astro-static/TEMPLATE.md +78 -0
  75. package/kit/.opencode/skills/app-builder/templates/chrome-extension/TEMPLATE.md +96 -0
  76. package/kit/.opencode/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  77. package/kit/.opencode/skills/app-builder/templates/electron-desktop/TEMPLATE.md +97 -0
  78. package/kit/.opencode/skills/app-builder/templates/express-api/TEMPLATE.md +89 -0
  79. package/kit/.opencode/skills/app-builder/templates/flutter-app/TEMPLATE.md +93 -0
  80. package/kit/.opencode/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +97 -0
  81. package/kit/.opencode/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +126 -0
  82. package/kit/.opencode/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +125 -0
  83. package/kit/.opencode/skills/app-builder/templates/nextjs-static/TEMPLATE.md +174 -0
  84. package/kit/.opencode/skills/app-builder/templates/nuxt-app/TEMPLATE.md +127 -0
  85. package/kit/.opencode/skills/app-builder/templates/python-fastapi/TEMPLATE.md +94 -0
  86. package/kit/.opencode/skills/app-builder/templates/react-native-app/TEMPLATE.md +121 -0
  87. package/kit/.opencode/skills/architecture/SKILL.md +57 -0
  88. package/kit/.opencode/skills/architecture/context-discovery.md +43 -0
  89. package/kit/.opencode/skills/architecture/examples.md +94 -0
  90. package/kit/.opencode/skills/architecture/pattern-selection.md +68 -0
  91. package/kit/.opencode/skills/architecture/patterns-reference.md +50 -0
  92. package/kit/.opencode/skills/architecture/trade-off-analysis.md +77 -0
  93. package/kit/.opencode/skills/bash-linux/SKILL.md +201 -0
  94. package/kit/.opencode/skills/batch-operations/SKILL.md +105 -0
  95. package/kit/.opencode/skills/behavioral-modes/SKILL.md +253 -0
  96. package/kit/.opencode/skills/brainstorming/SKILL.md +178 -0
  97. package/kit/.opencode/skills/brainstorming/dynamic-questioning.md +350 -0
  98. package/kit/.opencode/skills/clean-code/SKILL.md +201 -0
  99. package/kit/.opencode/skills/code-review-checklist/SKILL.md +111 -0
  100. package/kit/.opencode/skills/code-review-graph/SKILL.md +305 -0
  101. package/kit/.opencode/skills/context-compression/SKILL.md +145 -0
  102. package/kit/.opencode/skills/coordinator-mode/SKILL.md +208 -0
  103. package/kit/.opencode/skills/database-design/SKILL.md +54 -0
  104. package/kit/.opencode/skills/database-design/database-selection.md +43 -0
  105. package/kit/.opencode/skills/database-design/indexing.md +39 -0
  106. package/kit/.opencode/skills/database-design/migrations.md +48 -0
  107. package/kit/.opencode/skills/database-design/optimization.md +36 -0
  108. package/kit/.opencode/skills/database-design/orm-selection.md +30 -0
  109. package/kit/.opencode/skills/database-design/schema-design.md +56 -0
  110. package/kit/.opencode/skills/database-design/scripts/schema_validator.py +172 -0
  111. package/kit/.opencode/skills/deployment-procedures/SKILL.md +243 -0
  112. package/kit/.opencode/skills/design-spec/SKILL.md +185 -0
  113. package/kit/.opencode/skills/design-spec/collection.md +106 -0
  114. package/kit/.opencode/skills/documentation-templates/SKILL.md +196 -0
  115. package/kit/.opencode/skills/frontend-architecture/SKILL.md +245 -0
  116. package/kit/.opencode/skills/frontend-design/SKILL.md +1222 -0
  117. package/kit/.opencode/skills/frontend-design/redesign.md +178 -0
  118. package/kit/.opencode/skills/frontend-design/scripts/accessibility_checker.py +145 -0
  119. package/kit/.opencode/skills/frontend-design/scripts/ux_audit.py +722 -0
  120. package/kit/.opencode/skills/frontend-design/style-brutalist.md +92 -0
  121. package/kit/.opencode/skills/frontend-design/style-minimalist.md +85 -0
  122. package/kit/.opencode/skills/game-development/2d-games/SKILL.md +118 -0
  123. package/kit/.opencode/skills/game-development/3d-games/SKILL.md +134 -0
  124. package/kit/.opencode/skills/game-development/SKILL.md +169 -0
  125. package/kit/.opencode/skills/game-development/game-art/SKILL.md +184 -0
  126. package/kit/.opencode/skills/game-development/game-audio/SKILL.md +189 -0
  127. package/kit/.opencode/skills/game-development/game-design/SKILL.md +128 -0
  128. package/kit/.opencode/skills/game-development/mobile-games/SKILL.md +107 -0
  129. package/kit/.opencode/skills/game-development/multiplayer/SKILL.md +131 -0
  130. package/kit/.opencode/skills/game-development/pc-games/SKILL.md +143 -0
  131. package/kit/.opencode/skills/game-development/vr-ar/SKILL.md +122 -0
  132. package/kit/.opencode/skills/game-development/web-games/SKILL.md +149 -0
  133. package/kit/.opencode/skills/geo-fundamentals/SKILL.md +158 -0
  134. package/kit/.opencode/skills/geo-fundamentals/scripts/geo_checker.py +273 -0
  135. package/kit/.opencode/skills/i18n-localization/SKILL.md +156 -0
  136. package/kit/.opencode/skills/i18n-localization/scripts/i18n_checker.py +223 -0
  137. package/kit/.opencode/skills/intelligent-routing/SKILL.md +337 -0
  138. package/kit/.opencode/skills/lint-and-validate/SKILL.md +47 -0
  139. package/kit/.opencode/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  140. package/kit/.opencode/skills/lint-and-validate/scripts/type_coverage.py +245 -0
  141. package/kit/.opencode/skills/mcp-builder/SKILL.md +205 -0
  142. package/kit/.opencode/skills/memory-system/SKILL.md +181 -0
  143. package/kit/.opencode/skills/mobile-design/SKILL.md +396 -0
  144. package/kit/.opencode/skills/mobile-design/decision-trees.md +516 -0
  145. package/kit/.opencode/skills/mobile-design/mobile-backend.md +491 -0
  146. package/kit/.opencode/skills/mobile-design/mobile-color-system.md +420 -0
  147. package/kit/.opencode/skills/mobile-design/mobile-debugging.md +122 -0
  148. package/kit/.opencode/skills/mobile-design/mobile-design-thinking.md +357 -0
  149. package/kit/.opencode/skills/mobile-design/mobile-navigation.md +458 -0
  150. package/kit/.opencode/skills/mobile-design/mobile-performance.md +767 -0
  151. package/kit/.opencode/skills/mobile-design/mobile-testing.md +356 -0
  152. package/kit/.opencode/skills/mobile-design/mobile-typography.md +433 -0
  153. package/kit/.opencode/skills/mobile-design/platform-android.md +666 -0
  154. package/kit/.opencode/skills/mobile-design/platform-ios.md +561 -0
  155. package/kit/.opencode/skills/mobile-design/scripts/mobile_audit.py +670 -0
  156. package/kit/.opencode/skills/mobile-design/touch-psychology.md +537 -0
  157. package/kit/.opencode/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  158. package/kit/.opencode/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  159. package/kit/.opencode/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  160. package/kit/.opencode/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  161. package/kit/.opencode/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  162. package/kit/.opencode/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  163. package/kit/.opencode/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  164. package/kit/.opencode/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  165. package/kit/.opencode/skills/nextjs-react-expert/9-cache-components.md +103 -0
  166. package/kit/.opencode/skills/nextjs-react-expert/SKILL.md +293 -0
  167. package/kit/.opencode/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  168. package/kit/.opencode/skills/nextjs-react-expert/scripts/react_performance_checker.py +281 -0
  169. package/kit/.opencode/skills/nodejs-best-practices/SKILL.md +336 -0
  170. package/kit/.opencode/skills/parallel-agents/SKILL.md +192 -0
  171. package/kit/.opencode/skills/performance-profiling/SKILL.md +145 -0
  172. package/kit/.opencode/skills/performance-profiling/scripts/bundle_analyzer.py +120 -0
  173. package/kit/.opencode/skills/performance-profiling/scripts/lighthouse_audit.py +108 -0
  174. package/kit/.opencode/skills/plan-writing/SKILL.md +153 -0
  175. package/kit/.opencode/skills/powershell-windows/SKILL.md +169 -0
  176. package/kit/.opencode/skills/python-patterns/SKILL.md +443 -0
  177. package/kit/.opencode/skills/red-team-tactics/SKILL.md +201 -0
  178. package/kit/.opencode/skills/rust-pro/SKILL.md +177 -0
  179. package/kit/.opencode/skills/seo-fundamentals/SKILL.md +131 -0
  180. package/kit/.opencode/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  181. package/kit/.opencode/skills/server-management/SKILL.md +163 -0
  182. package/kit/.opencode/skills/simplify-code/SKILL.md +131 -0
  183. package/kit/.opencode/skills/skillify/SKILL.md +115 -0
  184. package/kit/.opencode/skills/systematic-debugging/SKILL.md +111 -0
  185. package/kit/.opencode/skills/tailwind-patterns/SKILL.md +271 -0
  186. package/kit/.opencode/skills/tdd-workflow/SKILL.md +151 -0
  187. package/kit/.opencode/skills/testing-patterns/SKILL.md +180 -0
  188. package/kit/.opencode/skills/testing-patterns/scripts/test_runner.py +219 -0
  189. package/kit/.opencode/skills/verify-changes/SKILL.md +127 -0
  190. package/kit/.opencode/skills/vulnerability-scanner/SKILL.md +278 -0
  191. package/kit/.opencode/skills/vulnerability-scanner/checklists.md +124 -0
  192. package/kit/.opencode/skills/vulnerability-scanner/scripts/dependency_analyzer.py +144 -0
  193. package/kit/.opencode/skills/vulnerability-scanner/scripts/security_scan.py +410 -0
  194. package/kit/.opencode/skills/web-design-guidelines/SKILL.md +56 -0
  195. package/kit/.opencode/skills/webapp-testing/SKILL.md +189 -0
  196. package/kit/.opencode/skills/webapp-testing/scripts/playwright_runner.py +123 -0
  197. package/lib/init.js +61 -0
  198. package/package.json +21 -0
@@ -0,0 +1,184 @@
1
+ ---
2
+ name: game-art
3
+ description: Game art principles. Visual style selection, asset pipeline, animation workflow.
4
+ compatibility: opencode
5
+ ---
6
+ # Game Art Principles
7
+
8
+ > Visual design thinking for games - style selection, asset pipelines, and art direction.
9
+
10
+ ---
11
+
12
+ ## 1. Art Style Selection
13
+
14
+ ### Decision Tree
15
+
16
+ ```
17
+ What feeling should the game evoke?
18
+
19
+ ├── Nostalgic / Retro
20
+ │ ├── Limited palette? → Pixel Art
21
+ │ └── Hand-drawn feel? → Vector / Flash style
22
+
23
+ ├── Realistic / Immersive
24
+ │ ├── High budget? → PBR 3D
25
+ │ └── Stylized realism? → Hand-painted textures
26
+
27
+ ├── Approachable / Casual
28
+ │ ├── Clean shapes? → Flat / Minimalist
29
+ │ └── Soft feel? → Gradient / Soft shadows
30
+
31
+ └── Unique / Experimental
32
+ └── Define custom style guide
33
+ ```
34
+
35
+ ### Style Comparison Matrix
36
+
37
+ | Style | Production Speed | Skill Floor | Scalability | Best For |
38
+ |-------|------------------|-------------|-------------|----------|
39
+ | **Pixel Art** | Medium | Medium | Hard to hire | Indie, retro |
40
+ | **Vector/Flat** | Fast | Low | Easy | Mobile, casual |
41
+ | **Hand-painted** | Slow | High | Medium | Fantasy, stylized |
42
+ | **PBR 3D** | Slow | High | AAA pipeline | Realistic games |
43
+ | **Low-poly** | Fast | Medium | Easy | Indie 3D |
44
+ | **Cel-shaded** | Medium | Medium | Medium | Anime, cartoon |
45
+
46
+ ---
47
+
48
+ ## 2. Asset Pipeline Decisions
49
+
50
+ ### 2D Pipeline
51
+
52
+ | Phase | Tool Options | Output |
53
+ |-------|--------------|--------|
54
+ | **Concept** | Paper, Procreate, Photoshop | Reference sheet |
55
+ | **Creation** | Aseprite, Photoshop, Krita | Individual sprites |
56
+ | **Atlas** | TexturePacker, Aseprite | Spritesheet |
57
+ | **Animation** | Spine, DragonBones, Frame-by-frame | Animation data |
58
+ | **Integration** | Engine import | Game-ready assets |
59
+
60
+ ### 3D Pipeline
61
+
62
+ | Phase | Tool Options | Output |
63
+ |-------|--------------|--------|
64
+ | **Concept** | 2D art, Blockout | Reference |
65
+ | **Modeling** | Blender, Maya, 3ds Max | High-poly mesh |
66
+ | **Retopology** | Blender, ZBrush | Game-ready mesh |
67
+ | **UV/Texturing** | Substance Painter, Blender | Texture maps |
68
+ | **Rigging** | Blender, Maya | Skeletal rig |
69
+ | **Animation** | Blender, Maya, Mixamo | Animation clips |
70
+ | **Export** | FBX, glTF | Engine-ready |
71
+
72
+ ---
73
+
74
+ ## 3. Color Theory Decisions
75
+
76
+ ### Palette Selection
77
+
78
+ | Goal | Strategy | Example |
79
+ |------|----------|---------|
80
+ | **Harmony** | Complementary or analogous | Nature games |
81
+ | **Contrast** | High saturation differences | Action games |
82
+ | **Mood** | Warm/cool temperature | Horror, cozy |
83
+ | **Readability** | Value contrast over hue | Gameplay clarity |
84
+
85
+ ### Color Principles
86
+
87
+ - **Hierarchy:** Important elements should pop
88
+ - **Consistency:** Same object = same color family
89
+ - **Context:** Colors read differently on backgrounds
90
+ - **Accessibility:** Don't rely only on color
91
+
92
+ ---
93
+
94
+ ## 4. Animation Principles
95
+
96
+ ### The 12 Principles (Applied to Games)
97
+
98
+ | Principle | Game Application |
99
+ |-----------|------------------|
100
+ | **Squash & Stretch** | Jump arcs, impacts |
101
+ | **Anticipation** | Wind-up before attack |
102
+ | **Staging** | Clear silhouettes |
103
+ | **Follow-through** | Hair, capes after movement |
104
+ | **Slow in/out** | Easing on transitions |
105
+ | **Arcs** | Natural movement paths |
106
+ | **Secondary Action** | Breathing, blinking |
107
+ | **Timing** | Frame count = weight/speed |
108
+ | **Exaggeration** | Readable from distance |
109
+ | **Appeal** | Memorable design |
110
+
111
+ ### Frame Count Guidelines
112
+
113
+ | Action Type | Typical Frames | Feel |
114
+ |-------------|----------------|------|
115
+ | Idle breathing | 4-8 | Subtle |
116
+ | Walk cycle | 6-12 | Smooth |
117
+ | Run cycle | 4-8 | Energetic |
118
+ | Attack | 3-6 | Snappy |
119
+ | Death | 8-16 | Dramatic |
120
+
121
+ ---
122
+
123
+ ## 5. Resolution & Scale Decisions
124
+
125
+ ### 2D Resolution by Platform
126
+
127
+ | Platform | Base Resolution | Sprite Scale |
128
+ |----------|-----------------|--------------|
129
+ | Mobile | 1080p | 64-128px characters |
130
+ | Desktop | 1080p-4K | 128-256px characters |
131
+ | Pixel art | 320x180 to 640x360 | 16-32px characters |
132
+
133
+ ### Consistency Rule
134
+
135
+ Choose a base unit and stick to it:
136
+ - Pixel art: Work at 1x, scale up (never down)
137
+ - HD art: Define DPI, maintain ratio
138
+ - 3D: 1 unit = 1 meter (industry standard)
139
+
140
+ ---
141
+
142
+ ## 6. Asset Organization
143
+
144
+ ### Naming Convention
145
+
146
+ ```
147
+ [type]_[object]_[variant]_[state].[ext]
148
+
149
+ Examples:
150
+ spr_player_idle_01.png
151
+ tex_stone_wall_normal.png
152
+ mesh_tree_oak_lod2.fbx
153
+ ```
154
+
155
+ ### Folder Structure Principle
156
+
157
+ ```
158
+ assets/
159
+ ├── characters/
160
+ │ ├── player/
161
+ │ └── enemies/
162
+ ├── environment/
163
+ │ ├── props/
164
+ │ └── tiles/
165
+ ├── ui/
166
+ ├── effects/
167
+ └── audio/
168
+ ```
169
+
170
+ ---
171
+
172
+ ## 7. Anti-Patterns
173
+
174
+ | Don't | Do |
175
+ |-------|-----|
176
+ | Mix art styles randomly | Define and follow style guide |
177
+ | Work at final resolution only | Create at source resolution |
178
+ | Ignore silhouette readability | Test at gameplay distance |
179
+ | Over-detail background | Focus detail on player area |
180
+ | Skip color testing | Test on target display |
181
+
182
+ ---
183
+
184
+ > **Remember:** Art serves gameplay. If it doesn't help the player, it's decoration.
@@ -0,0 +1,189 @@
1
+ ---
2
+ name: game-audio
3
+ description: Game audio principles. Sound design, music integration, adaptive audio systems.
4
+ compatibility: opencode
5
+ ---
6
+ # Game Audio Principles
7
+
8
+ > Sound design and music integration for immersive game experiences.
9
+
10
+ ---
11
+
12
+ ## 1. Audio Category System
13
+
14
+ ### Category Definitions
15
+
16
+ | Category | Behavior | Examples |
17
+ |----------|----------|----------|
18
+ | **Music** | Looping, crossfade, ducking | BGM, combat music |
19
+ | **SFX** | One-shot, 3D positioned | Footsteps, impacts |
20
+ | **Ambient** | Looping, background layer | Wind, crowd, forest |
21
+ | **UI** | Immediate, non-3D | Button clicks, notifications |
22
+ | **Voice** | Priority, ducking trigger | Dialogue, announcer |
23
+
24
+ ### Priority Hierarchy
25
+
26
+ ```
27
+ When sounds compete for channels:
28
+
29
+ 1. Voice (highest - always audible)
30
+ 2. Player SFX (feedback critical)
31
+ 3. Enemy SFX (gameplay important)
32
+ 4. Music (mood, but duckable)
33
+ 5. Ambient (lowest - can drop)
34
+ ```
35
+
36
+ ---
37
+
38
+ ## 2. Sound Design Decisions
39
+
40
+ ### SFX Creation Approach
41
+
42
+ | Approach | When to Use | Trade-offs |
43
+ |----------|-------------|------------|
44
+ | **Recording** | Realistic needs | High quality, time intensive |
45
+ | **Synthesis** | Sci-fi, retro, UI | Unique, requires skill |
46
+ | **Library samples** | Fast production | Common sounds, licensing |
47
+ | **Layering** | Complex sounds | Best results, more work |
48
+
49
+ ### Layering Structure
50
+
51
+ | Layer | Purpose | Example: Gunshot |
52
+ |-------|---------|------------------|
53
+ | **Attack** | Initial transient | Click, snap |
54
+ | **Body** | Main character | Boom, blast |
55
+ | **Tail** | Decay, room | Reverb, echo |
56
+ | **Sweetener** | Special sauce | Shell casing, mechanical |
57
+
58
+ ---
59
+
60
+ ## 3. Music Integration
61
+
62
+ ### Music State System
63
+
64
+ ```
65
+ Game State → Music Response
66
+
67
+ ├── Menu → Calm, loopable theme
68
+ ├── Exploration → Ambient, atmospheric
69
+ ├── Combat detected → Transition to tension
70
+ ├── Combat engaged → Full battle music
71
+ ├── Victory → Stinger + calm transition
72
+ ├── Defeat → Somber stinger
73
+ └── Boss → Unique, multi-phase track
74
+ ```
75
+
76
+ ### Transition Techniques
77
+
78
+ | Technique | Use When | Feel |
79
+ |-----------|----------|------|
80
+ | **Crossfade** | Smooth mood shift | Gradual |
81
+ | **Stinger** | Immediate event | Dramatic |
82
+ | **Stem mixing** | Dynamic intensity | Seamless |
83
+ | **Beat-synced** | Rhythmic gameplay | Musical |
84
+ | **Queue point** | Next natural break | Clean |
85
+
86
+ ---
87
+
88
+ ## 4. Adaptive Audio Decisions
89
+
90
+ ### Intensity Parameters
91
+
92
+ | Parameter | Affects | Example |
93
+ |-----------|---------|---------|
94
+ | **Threat level** | Music intensity | Enemy count |
95
+ | **Health** | Filter, reverb | Low health = muffled |
96
+ | **Speed** | Tempo, energy | Racing speed |
97
+ | **Environment** | Reverb, EQ | Cave vs outdoor |
98
+ | **Time of day** | Mood, volume | Night = quieter |
99
+
100
+ ### Vertical vs Horizontal
101
+
102
+ | System | What Changes | Best For |
103
+ |--------|--------------|----------|
104
+ | **Vertical (layers)** | Add/remove instrument layers | Intensity scaling |
105
+ | **Horizontal (segments)** | Different music sections | State changes |
106
+ | **Combined** | Both | AAA adaptive scores |
107
+
108
+ ---
109
+
110
+ ## 5. 3D Audio Decisions
111
+
112
+ ### Spatialization
113
+
114
+ | Element | 3D Positioned? | Reason |
115
+ |---------|----------------|--------|
116
+ | Player footsteps | No (or subtle) | Always audible |
117
+ | Enemy footsteps | Yes | Directional awareness |
118
+ | Gunfire | Yes | Combat awareness |
119
+ | Music | No | Mood, non-diegetic |
120
+ | Ambient zone | Yes (area) | Environmental |
121
+ | UI sounds | No | Interface feedback |
122
+
123
+ ### Distance Behavior
124
+
125
+ | Distance | Sound Behavior |
126
+ |----------|----------------|
127
+ | **Near** | Full volume, full frequency |
128
+ | **Medium** | Volume falloff, high-freq rolloff |
129
+ | **Far** | Low volume, low-pass filter |
130
+ | **Max** | Silent or ambient hint |
131
+
132
+ ---
133
+
134
+ ## 6. Platform Considerations
135
+
136
+ ### Format Selection
137
+
138
+ | Platform | Recommended Format | Reason |
139
+ |----------|-------------------|--------|
140
+ | PC | OGG Vorbis, WAV | Quality, no licensing |
141
+ | Console | Platform-specific | Certification |
142
+ | Mobile | MP3, AAC | Size, compatibility |
143
+ | Web | WebM/Opus, MP3 fallback | Browser support |
144
+
145
+ ### Memory Budget
146
+
147
+ | Game Type | Audio Budget | Strategy |
148
+ |-----------|--------------|----------|
149
+ | Mobile casual | 10-50 MB | Compressed, fewer variants |
150
+ | PC indie | 100-500 MB | Quality focus |
151
+ | AAA | 1+ GB | Full quality, many variants |
152
+
153
+ ---
154
+
155
+ ## 7. Mix Hierarchy
156
+
157
+ ### Volume Balance Reference
158
+
159
+ | Category | Relative Level | Notes |
160
+ |----------|----------------|-------|
161
+ | **Voice** | 0 dB (reference) | Always clear |
162
+ | **Player SFX** | -3 to -6 dB | Prominent but not harsh |
163
+ | **Music** | -6 to -12 dB | Foundation, ducks for voice |
164
+ | **Enemy SFX** | -6 to -9 dB | Important but not dominant |
165
+ | **Ambient** | -12 to -18 dB | Subtle background |
166
+
167
+ ### Ducking Rules
168
+
169
+ | When | Duck What | Amount |
170
+ |------|-----------|--------|
171
+ | Voice plays | Music, Ambient | -6 to -9 dB |
172
+ | Explosion | All except explosion | Brief duck |
173
+ | Menu open | Gameplay audio | -3 to -6 dB |
174
+
175
+ ---
176
+
177
+ ## 8. Anti-Patterns
178
+
179
+ | Don't | Do |
180
+ |-------|-----|
181
+ | Play same sound repeatedly | Use variations (3-5 per sound) |
182
+ | Max volume everything | Use proper mix hierarchy |
183
+ | Ignore silence | Silence creates contrast |
184
+ | One music track loops forever | Provide variety, transitions |
185
+ | Skip audio in prototype | Placeholder audio matters |
186
+
187
+ ---
188
+
189
+ > **Remember:** 50% of the game experience is audio. A muted game loses half its soul.
@@ -0,0 +1,128 @@
1
+ ---
2
+ name: game-design
3
+ description: Game design principles. GDD structure, balancing, player psychology, progression.
4
+ compatibility: opencode
5
+ ---
6
+ # Game Design Principles
7
+
8
+ > Design thinking for engaging games.
9
+
10
+ ---
11
+
12
+ ## 1. Core Loop Design
13
+
14
+ ### The 30-Second Test
15
+
16
+ ```
17
+ Every game needs a fun 30-second loop:
18
+ 1. ACTION → Player does something
19
+ 2. FEEDBACK → Game responds
20
+ 3. REWARD → Player feels good
21
+ 4. REPEAT
22
+ ```
23
+
24
+ ### Loop Examples
25
+
26
+ | Genre | Core Loop |
27
+ |-------|-----------|
28
+ | Platformer | Run → Jump → Land → Collect |
29
+ | Shooter | Aim → Shoot → Kill → Loot |
30
+ | Puzzle | Observe → Think → Solve → Advance |
31
+ | RPG | Explore → Fight → Level → Gear |
32
+
33
+ ---
34
+
35
+ ## 2. Game Design Document (GDD)
36
+
37
+ ### Essential Sections
38
+
39
+ | Section | Content |
40
+ |---------|---------|
41
+ | **Pitch** | One-sentence description |
42
+ | **Core Loop** | 30-second gameplay |
43
+ | **Mechanics** | How systems work |
44
+ | **Progression** | How player advances |
45
+ | **Art Style** | Visual direction |
46
+ | **Audio** | Sound direction |
47
+
48
+ ### Principles
49
+
50
+ - Keep it living (update regularly)
51
+ - Visuals help communicate
52
+ - Less is more (start small)
53
+
54
+ ---
55
+
56
+ ## 3. Player Psychology
57
+
58
+ ### Motivation Types
59
+
60
+ | Type | Driven By |
61
+ |------|-----------|
62
+ | **Achiever** | Goals, completion |
63
+ | **Explorer** | Discovery, secrets |
64
+ | **Socializer** | Interaction, community |
65
+ | **Killer** | Competition, dominance |
66
+
67
+ ### Reward Schedules
68
+
69
+ | Schedule | Effect | Use |
70
+ |----------|--------|-----|
71
+ | **Fixed** | Predictable | Milestone rewards |
72
+ | **Variable** | Addictive | Loot drops |
73
+ | **Ratio** | Effort-based | Grind games |
74
+
75
+ ---
76
+
77
+ ## 4. Difficulty Balancing
78
+
79
+ ### Flow State
80
+
81
+ ```
82
+ Too Hard → Frustration → Quit
83
+ Too Easy → Boredom → Quit
84
+ Just Right → Flow → Engagement
85
+ ```
86
+
87
+ ### Balancing Strategies
88
+
89
+ | Strategy | How |
90
+ |----------|-----|
91
+ | **Dynamic** | Adjust to player skill |
92
+ | **Selection** | Let player choose |
93
+ | **Accessibility** | Options for all |
94
+
95
+ ---
96
+
97
+ ## 5. Progression Design
98
+
99
+ ### Progression Types
100
+
101
+ | Type | Example |
102
+ |------|---------|
103
+ | **Skill** | Player gets better |
104
+ | **Power** | Character gets stronger |
105
+ | **Content** | New areas unlock |
106
+ | **Story** | Narrative advances |
107
+
108
+ ### Pacing Principles
109
+
110
+ - Early wins (hook quickly)
111
+ - Gradually increase challenge
112
+ - Rest beats between intensity
113
+ - Meaningful choices
114
+
115
+ ---
116
+
117
+ ## 6. Anti-Patterns
118
+
119
+ | ❌ Don't | ✅ Do |
120
+ |----------|-------|
121
+ | Design in isolation | Playtest constantly |
122
+ | Polish before fun | Prototype first |
123
+ | Force one way to play | Allow player expression |
124
+ | Punish excessively | Reward progress |
125
+
126
+ ---
127
+
128
+ > **Remember:** Fun is discovered through iteration, not designed on paper.
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: mobile-games
3
+ description: Mobile game development principles. Touch input, battery, performance, app stores.
4
+ compatibility: opencode
5
+ ---
6
+ # Mobile Game Development
7
+
8
+ > Platform constraints and optimization principles.
9
+
10
+ ---
11
+
12
+ ## 1. Platform Considerations
13
+
14
+ ### Key Constraints
15
+
16
+ | Constraint | Strategy |
17
+ |------------|----------|
18
+ | **Touch input** | Large hit areas, gestures |
19
+ | **Battery** | Limit CPU/GPU usage |
20
+ | **Thermal** | Throttle when hot |
21
+ | **Screen size** | Responsive UI |
22
+ | **Interruptions** | Pause on background |
23
+
24
+ ---
25
+
26
+ ## 2. Touch Input Principles
27
+
28
+ ### Touch vs Controller
29
+
30
+ | Touch | Desktop/Console |
31
+ |-------|-----------------|
32
+ | Imprecise | Precise |
33
+ | Occludes screen | No occlusion |
34
+ | Limited buttons | Many buttons |
35
+ | Gestures available | Buttons/sticks |
36
+
37
+ ### Best Practices
38
+
39
+ - Minimum touch target: 44x44 points
40
+ - Visual feedback on touch
41
+ - Avoid precise timing requirements
42
+ - Support both portrait and landscape
43
+
44
+ ---
45
+
46
+ ## 3. Performance Targets
47
+
48
+ ### Thermal Management
49
+
50
+ | Action | Trigger |
51
+ |--------|---------|
52
+ | Reduce quality | Device warm |
53
+ | Limit FPS | Device hot |
54
+ | Pause effects | Critical temp |
55
+
56
+ ### Battery Optimization
57
+
58
+ - 30 FPS often sufficient
59
+ - Sleep when paused
60
+ - Minimize GPS/network
61
+ - Dark mode saves OLED battery
62
+
63
+ ---
64
+
65
+ ## 4. App Store Requirements
66
+
67
+ ### iOS (App Store)
68
+
69
+ | Requirement | Note |
70
+ |-------------|------|
71
+ | Privacy labels | Required |
72
+ | Account deletion | If account creation exists |
73
+ | Screenshots | For all device sizes |
74
+
75
+ ### Android (Google Play)
76
+
77
+ | Requirement | Note |
78
+ |-------------|------|
79
+ | Target API | Current year's SDK |
80
+ | 64-bit | Required |
81
+ | App bundles | Recommended |
82
+
83
+ ---
84
+
85
+ ## 5. Monetization Models
86
+
87
+ | Model | Best For |
88
+ |-------|----------|
89
+ | **Premium** | Quality games, loyal audience |
90
+ | **Free + IAP** | Casual, progression-based |
91
+ | **Ads** | Hyper-casual, high volume |
92
+ | **Subscription** | Content updates, multiplayer |
93
+
94
+ ---
95
+
96
+ ## 6. Anti-Patterns
97
+
98
+ | ❌ Don't | ✅ Do |
99
+ |----------|-------|
100
+ | Desktop controls on mobile | Design for touch |
101
+ | Ignore battery drain | Monitor thermals |
102
+ | Force landscape | Support player preference |
103
+ | Always-on network | Cache and sync |
104
+
105
+ ---
106
+
107
+ > **Remember:** Mobile is the most constrained platform. Respect battery and attention.