@musashishao/agent-kit 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.

Potentially problematic release.


This version of @musashishao/agent-kit might be problematic. Click here for more details.

Files changed (220) hide show
  1. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  2. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  3. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  4. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  5. package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  6. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  7. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  8. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  9. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  10. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  11. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  12. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  13. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  14. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  15. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  16. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  17. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  18. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  19. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  20. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  21. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  22. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  23. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  25. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  26. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +487 -0
  27. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +76 -0
  28. package/.agent/ARCHITECTURE.md +225 -0
  29. package/.agent/CONTEXT.md +229 -0
  30. package/.agent/FEATURE_ROADMAP.md +435 -0
  31. package/.agent/PROMPT_TEMPLATES.md +261 -0
  32. package/.agent/agents/backend-specialist.md +263 -0
  33. package/.agent/agents/database-architect.md +226 -0
  34. package/.agent/agents/debugger.md +225 -0
  35. package/.agent/agents/devops-engineer.md +242 -0
  36. package/.agent/agents/documentation-writer.md +104 -0
  37. package/.agent/agents/explorer-agent.md +73 -0
  38. package/.agent/agents/frontend-specialist.md +556 -0
  39. package/.agent/agents/game-developer.md +162 -0
  40. package/.agent/agents/mobile-developer.md +377 -0
  41. package/.agent/agents/orchestrator.md +416 -0
  42. package/.agent/agents/penetration-tester.md +188 -0
  43. package/.agent/agents/performance-optimizer.md +187 -0
  44. package/.agent/agents/project-planner.md +403 -0
  45. package/.agent/agents/security-auditor.md +170 -0
  46. package/.agent/agents/seo-specialist.md +111 -0
  47. package/.agent/agents/test-engineer.md +158 -0
  48. package/.agent/rules/GEMINI.md +251 -0
  49. package/.agent/skills/api-patterns/SKILL.md +81 -0
  50. package/.agent/skills/api-patterns/api-style.md +42 -0
  51. package/.agent/skills/api-patterns/auth.md +24 -0
  52. package/.agent/skills/api-patterns/documentation.md +26 -0
  53. package/.agent/skills/api-patterns/graphql.md +41 -0
  54. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  55. package/.agent/skills/api-patterns/response.md +37 -0
  56. package/.agent/skills/api-patterns/rest.md +40 -0
  57. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  58. package/.agent/skills/api-patterns/security-testing.md +122 -0
  59. package/.agent/skills/api-patterns/trpc.md +41 -0
  60. package/.agent/skills/api-patterns/versioning.md +22 -0
  61. package/.agent/skills/app-builder/SKILL.md +75 -0
  62. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  63. package/.agent/skills/app-builder/feature-building.md +53 -0
  64. package/.agent/skills/app-builder/project-detection.md +34 -0
  65. package/.agent/skills/app-builder/scaffolding.md +118 -0
  66. package/.agent/skills/app-builder/tech-stack.md +40 -0
  67. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  68. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  69. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  70. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  71. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  72. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  73. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  74. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  75. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
  76. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
  77. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
  78. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
  79. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  80. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
  81. package/.agent/skills/architecture/SKILL.md +55 -0
  82. package/.agent/skills/architecture/context-discovery.md +43 -0
  83. package/.agent/skills/architecture/examples.md +94 -0
  84. package/.agent/skills/architecture/pattern-selection.md +68 -0
  85. package/.agent/skills/architecture/patterns-reference.md +50 -0
  86. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  87. package/.agent/skills/bash-linux/SKILL.md +199 -0
  88. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  89. package/.agent/skills/brainstorming/SKILL.md +163 -0
  90. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  91. package/.agent/skills/clean-code/SKILL.md +201 -0
  92. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  93. package/.agent/skills/database-design/SKILL.md +52 -0
  94. package/.agent/skills/database-design/database-selection.md +43 -0
  95. package/.agent/skills/database-design/indexing.md +39 -0
  96. package/.agent/skills/database-design/migrations.md +48 -0
  97. package/.agent/skills/database-design/optimization.md +36 -0
  98. package/.agent/skills/database-design/orm-selection.md +30 -0
  99. package/.agent/skills/database-design/schema-design.md +56 -0
  100. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  101. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  102. package/.agent/skills/doc.md +177 -0
  103. package/.agent/skills/docker-expert/SKILL.md +409 -0
  104. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  105. package/.agent/skills/frontend-design/SKILL.md +396 -0
  106. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  107. package/.agent/skills/frontend-design/color-system.md +311 -0
  108. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  109. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  110. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  111. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  112. package/.agent/skills/frontend-design/typography-system.md +345 -0
  113. package/.agent/skills/frontend-design/ux-psychology.md +541 -0
  114. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  115. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  116. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  117. package/.agent/skills/game-development/SKILL.md +167 -0
  118. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  119. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  120. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  121. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  122. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  123. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  124. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  125. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  126. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  127. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  128. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  129. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  130. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  131. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
  132. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  133. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  134. package/.agent/skills/mobile-design/SKILL.md +394 -0
  135. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  136. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  137. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  138. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  139. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  140. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  141. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  142. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  143. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  144. package/.agent/skills/mobile-design/platform-android.md +666 -0
  145. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  146. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  147. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  148. package/.agent/skills/nestjs-expert/SKILL.md +552 -0
  149. package/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
  150. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  151. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  152. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  153. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  154. package/.agent/skills/plan-writing/SKILL.md +152 -0
  155. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  156. package/.agent/skills/prisma-expert/SKILL.md +355 -0
  157. package/.agent/skills/python-patterns/SKILL.md +441 -0
  158. package/.agent/skills/react-patterns/SKILL.md +198 -0
  159. package/.agent/skills/red-team-tactics/SKILL.md +199 -0
  160. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  161. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  162. package/.agent/skills/server-management/SKILL.md +161 -0
  163. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  164. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  165. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  166. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  167. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  168. package/.agent/skills/typescript-expert/SKILL.md +429 -0
  169. package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
  170. package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
  171. package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
  172. package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
  173. package/.agent/skills/ui-ux-pro-max/SKILL.md +351 -0
  174. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  175. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  176. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  177. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  178. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  179. package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  180. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  181. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  182. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  183. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  184. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  185. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  186. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  187. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  188. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  189. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  190. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  191. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  192. package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  193. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  194. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  195. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  196. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  197. package/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
  198. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
  199. package/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
  200. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  201. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  202. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  203. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  204. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  205. package/.agent/workflows/brainstorm.md +113 -0
  206. package/.agent/workflows/create.md +59 -0
  207. package/.agent/workflows/debug.md +103 -0
  208. package/.agent/workflows/deploy.md +176 -0
  209. package/.agent/workflows/enhance.md +63 -0
  210. package/.agent/workflows/orchestrate.md +237 -0
  211. package/.agent/workflows/plan.md +89 -0
  212. package/.agent/workflows/preview.md +80 -0
  213. package/.agent/workflows/status.md +86 -0
  214. package/.agent/workflows/test.md +144 -0
  215. package/.agent/workflows/ui-ux-pro-max.md +231 -0
  216. package/LICENSE +21 -0
  217. package/README.md +101 -0
  218. package/bin/cli.js +235 -0
  219. package/index.js +1 -0
  220. package/package.json +43 -0
@@ -0,0 +1,167 @@
1
+ ---
2
+ name: game-development
3
+ description: Game development orchestrator. Routes to platform-specific skills based on project needs.
4
+ allowed-tools: Read, Write, Edit, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Game Development
8
+
9
+ > **Orchestrator skill** that provides core principles and routes to specialized sub-skills.
10
+
11
+ ---
12
+
13
+ ## When to Use This Skill
14
+
15
+ You are working on a game development project. This skill teaches the PRINCIPLES of game development and directs you to the right sub-skill based on context.
16
+
17
+ ---
18
+
19
+ ## Sub-Skill Routing
20
+
21
+ ### Platform Selection
22
+
23
+ | If the game targets... | Use Sub-Skill |
24
+ |------------------------|---------------|
25
+ | Web browsers (HTML5, WebGL) | `game-development/web-games` |
26
+ | Mobile (iOS, Android) | `game-development/mobile-games` |
27
+ | PC (Steam, Desktop) | `game-development/pc-games` |
28
+ | VR/AR headsets | `game-development/vr-ar` |
29
+
30
+ ### Dimension Selection
31
+
32
+ | If the game is... | Use Sub-Skill |
33
+ |-------------------|---------------|
34
+ | 2D (sprites, tilemaps) | `game-development/2d-games` |
35
+ | 3D (meshes, shaders) | `game-development/3d-games` |
36
+
37
+ ### Specialty Areas
38
+
39
+ | If you need... | Use Sub-Skill |
40
+ |----------------|---------------|
41
+ | GDD, balancing, player psychology | `game-development/game-design` |
42
+ | Multiplayer, networking | `game-development/multiplayer` |
43
+ | Visual style, asset pipeline, animation | `game-development/game-art` |
44
+ | Sound design, music, adaptive audio | `game-development/game-audio` |
45
+
46
+ ---
47
+
48
+ ## Core Principles (All Platforms)
49
+
50
+ ### 1. The Game Loop
51
+
52
+ Every game, regardless of platform, follows this pattern:
53
+
54
+ ```
55
+ INPUT → Read player actions
56
+ UPDATE → Process game logic (fixed timestep)
57
+ RENDER → Draw the frame (interpolated)
58
+ ```
59
+
60
+ **Fixed Timestep Rule:**
61
+ - Physics/logic: Fixed rate (e.g., 50Hz)
62
+ - Rendering: As fast as possible
63
+ - Interpolate between states for smooth visuals
64
+
65
+ ---
66
+
67
+ ### 2. Pattern Selection Matrix
68
+
69
+ | Pattern | Use When | Example |
70
+ |---------|----------|---------|
71
+ | **State Machine** | 3-5 discrete states | Player: Idle→Walk→Jump |
72
+ | **Object Pooling** | Frequent spawn/destroy | Bullets, particles |
73
+ | **Observer/Events** | Cross-system communication | Health→UI updates |
74
+ | **ECS** | Thousands of similar entities | RTS units, particles |
75
+ | **Command** | Undo, replay, networking | Input recording |
76
+ | **Behavior Tree** | Complex AI decisions | Enemy AI |
77
+
78
+ **Decision Rule:** Start with State Machine. Add ECS only when performance demands.
79
+
80
+ ---
81
+
82
+ ### 3. Input Abstraction
83
+
84
+ Abstract input into ACTIONS, not raw keys:
85
+
86
+ ```
87
+ "jump" → Space, Gamepad A, Touch tap
88
+ "move" → WASD, Left stick, Virtual joystick
89
+ ```
90
+
91
+ **Why:** Enables multi-platform, rebindable controls.
92
+
93
+ ---
94
+
95
+ ### 4. Performance Budget (60 FPS = 16.67ms)
96
+
97
+ | System | Budget |
98
+ |--------|--------|
99
+ | Input | 1ms |
100
+ | Physics | 3ms |
101
+ | AI | 2ms |
102
+ | Game Logic | 4ms |
103
+ | Rendering | 5ms |
104
+ | Buffer | 1.67ms |
105
+
106
+ **Optimization Priority:**
107
+ 1. Algorithm (O(n²) → O(n log n))
108
+ 2. Batching (reduce draw calls)
109
+ 3. Pooling (avoid GC spikes)
110
+ 4. LOD (detail by distance)
111
+ 5. Culling (skip invisible)
112
+
113
+ ---
114
+
115
+ ### 5. AI Selection by Complexity
116
+
117
+ | AI Type | Complexity | Use When |
118
+ |---------|------------|----------|
119
+ | **FSM** | Simple | 3-5 states, predictable behavior |
120
+ | **Behavior Tree** | Medium | Modular, designer-friendly |
121
+ | **GOAP** | High | Emergent, planning-based |
122
+ | **Utility AI** | High | Scoring-based decisions |
123
+
124
+ ---
125
+
126
+ ### 6. Collision Strategy
127
+
128
+ | Type | Best For |
129
+ |------|----------|
130
+ | **AABB** | Rectangles, fast checks |
131
+ | **Circle** | Round objects, cheap |
132
+ | **Spatial Hash** | Many similar-sized objects |
133
+ | **Quadtree** | Large worlds, varying sizes |
134
+
135
+ ---
136
+
137
+ ## Anti-Patterns (Universal)
138
+
139
+ | Don't | Do |
140
+ |-------|-----|
141
+ | Update everything every frame | Use events, dirty flags |
142
+ | Create objects in hot loops | Object pooling |
143
+ | Cache nothing | Cache references |
144
+ | Optimize without profiling | Profile first |
145
+ | Mix input with logic | Abstract input layer |
146
+
147
+ ---
148
+
149
+ ## Routing Examples
150
+
151
+ ### Example 1: "I want to make a browser-based 2D platformer"
152
+ → Start with `game-development/web-games` for framework selection
153
+ → Then `game-development/2d-games` for sprite/tilemap patterns
154
+ → Reference `game-development/game-design` for level design
155
+
156
+ ### Example 2: "Mobile puzzle game for iOS and Android"
157
+ → Start with `game-development/mobile-games` for touch input and stores
158
+ → Use `game-development/game-design` for puzzle balancing
159
+
160
+ ### Example 3: "Multiplayer VR shooter"
161
+ → `game-development/vr-ar` for comfort and immersion
162
+ → `game-development/3d-games` for rendering
163
+ → `game-development/multiplayer` for networking
164
+
165
+ ---
166
+
167
+ > **Remember:** Great games come from iteration, not perfection. Prototype fast, then polish.
@@ -0,0 +1,185 @@
1
+ ---
2
+ name: game-art
3
+ description: Game art principles. Visual style selection, asset pipeline, animation workflow.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Game Art Principles
8
+
9
+ > Visual design thinking for games - style selection, asset pipelines, and art direction.
10
+
11
+ ---
12
+
13
+ ## 1. Art Style Selection
14
+
15
+ ### Decision Tree
16
+
17
+ ```
18
+ What feeling should the game evoke?
19
+
20
+ ├── Nostalgic / Retro
21
+ │ ├── Limited palette? → Pixel Art
22
+ │ └── Hand-drawn feel? → Vector / Flash style
23
+
24
+ ├── Realistic / Immersive
25
+ │ ├── High budget? → PBR 3D
26
+ │ └── Stylized realism? → Hand-painted textures
27
+
28
+ ├── Approachable / Casual
29
+ │ ├── Clean shapes? → Flat / Minimalist
30
+ │ └── Soft feel? → Gradient / Soft shadows
31
+
32
+ └── Unique / Experimental
33
+ └── Define custom style guide
34
+ ```
35
+
36
+ ### Style Comparison Matrix
37
+
38
+ | Style | Production Speed | Skill Floor | Scalability | Best For |
39
+ |-------|------------------|-------------|-------------|----------|
40
+ | **Pixel Art** | Medium | Medium | Hard to hire | Indie, retro |
41
+ | **Vector/Flat** | Fast | Low | Easy | Mobile, casual |
42
+ | **Hand-painted** | Slow | High | Medium | Fantasy, stylized |
43
+ | **PBR 3D** | Slow | High | AAA pipeline | Realistic games |
44
+ | **Low-poly** | Fast | Medium | Easy | Indie 3D |
45
+ | **Cel-shaded** | Medium | Medium | Medium | Anime, cartoon |
46
+
47
+ ---
48
+
49
+ ## 2. Asset Pipeline Decisions
50
+
51
+ ### 2D Pipeline
52
+
53
+ | Phase | Tool Options | Output |
54
+ |-------|--------------|--------|
55
+ | **Concept** | Paper, Procreate, Photoshop | Reference sheet |
56
+ | **Creation** | Aseprite, Photoshop, Krita | Individual sprites |
57
+ | **Atlas** | TexturePacker, Aseprite | Spritesheet |
58
+ | **Animation** | Spine, DragonBones, Frame-by-frame | Animation data |
59
+ | **Integration** | Engine import | Game-ready assets |
60
+
61
+ ### 3D Pipeline
62
+
63
+ | Phase | Tool Options | Output |
64
+ |-------|--------------|--------|
65
+ | **Concept** | 2D art, Blockout | Reference |
66
+ | **Modeling** | Blender, Maya, 3ds Max | High-poly mesh |
67
+ | **Retopology** | Blender, ZBrush | Game-ready mesh |
68
+ | **UV/Texturing** | Substance Painter, Blender | Texture maps |
69
+ | **Rigging** | Blender, Maya | Skeletal rig |
70
+ | **Animation** | Blender, Maya, Mixamo | Animation clips |
71
+ | **Export** | FBX, glTF | Engine-ready |
72
+
73
+ ---
74
+
75
+ ## 3. Color Theory Decisions
76
+
77
+ ### Palette Selection
78
+
79
+ | Goal | Strategy | Example |
80
+ |------|----------|---------|
81
+ | **Harmony** | Complementary or analogous | Nature games |
82
+ | **Contrast** | High saturation differences | Action games |
83
+ | **Mood** | Warm/cool temperature | Horror, cozy |
84
+ | **Readability** | Value contrast over hue | Gameplay clarity |
85
+
86
+ ### Color Principles
87
+
88
+ - **Hierarchy:** Important elements should pop
89
+ - **Consistency:** Same object = same color family
90
+ - **Context:** Colors read differently on backgrounds
91
+ - **Accessibility:** Don't rely only on color
92
+
93
+ ---
94
+
95
+ ## 4. Animation Principles
96
+
97
+ ### The 12 Principles (Applied to Games)
98
+
99
+ | Principle | Game Application |
100
+ |-----------|------------------|
101
+ | **Squash & Stretch** | Jump arcs, impacts |
102
+ | **Anticipation** | Wind-up before attack |
103
+ | **Staging** | Clear silhouettes |
104
+ | **Follow-through** | Hair, capes after movement |
105
+ | **Slow in/out** | Easing on transitions |
106
+ | **Arcs** | Natural movement paths |
107
+ | **Secondary Action** | Breathing, blinking |
108
+ | **Timing** | Frame count = weight/speed |
109
+ | **Exaggeration** | Readable from distance |
110
+ | **Appeal** | Memorable design |
111
+
112
+ ### Frame Count Guidelines
113
+
114
+ | Action Type | Typical Frames | Feel |
115
+ |-------------|----------------|------|
116
+ | Idle breathing | 4-8 | Subtle |
117
+ | Walk cycle | 6-12 | Smooth |
118
+ | Run cycle | 4-8 | Energetic |
119
+ | Attack | 3-6 | Snappy |
120
+ | Death | 8-16 | Dramatic |
121
+
122
+ ---
123
+
124
+ ## 5. Resolution & Scale Decisions
125
+
126
+ ### 2D Resolution by Platform
127
+
128
+ | Platform | Base Resolution | Sprite Scale |
129
+ |----------|-----------------|--------------|
130
+ | Mobile | 1080p | 64-128px characters |
131
+ | Desktop | 1080p-4K | 128-256px characters |
132
+ | Pixel art | 320x180 to 640x360 | 16-32px characters |
133
+
134
+ ### Consistency Rule
135
+
136
+ Choose a base unit and stick to it:
137
+ - Pixel art: Work at 1x, scale up (never down)
138
+ - HD art: Define DPI, maintain ratio
139
+ - 3D: 1 unit = 1 meter (industry standard)
140
+
141
+ ---
142
+
143
+ ## 6. Asset Organization
144
+
145
+ ### Naming Convention
146
+
147
+ ```
148
+ [type]_[object]_[variant]_[state].[ext]
149
+
150
+ Examples:
151
+ spr_player_idle_01.png
152
+ tex_stone_wall_normal.png
153
+ mesh_tree_oak_lod2.fbx
154
+ ```
155
+
156
+ ### Folder Structure Principle
157
+
158
+ ```
159
+ assets/
160
+ ├── characters/
161
+ │ ├── player/
162
+ │ └── enemies/
163
+ ├── environment/
164
+ │ ├── props/
165
+ │ └── tiles/
166
+ ├── ui/
167
+ ├── effects/
168
+ └── audio/
169
+ ```
170
+
171
+ ---
172
+
173
+ ## 7. Anti-Patterns
174
+
175
+ | Don't | Do |
176
+ |-------|-----|
177
+ | Mix art styles randomly | Define and follow style guide |
178
+ | Work at final resolution only | Create at source resolution |
179
+ | Ignore silhouette readability | Test at gameplay distance |
180
+ | Over-detail background | Focus detail on player area |
181
+ | Skip color testing | Test on target display |
182
+
183
+ ---
184
+
185
+ > **Remember:** Art serves gameplay. If it doesn't help the player, it's decoration.
@@ -0,0 +1,190 @@
1
+ ---
2
+ name: game-audio
3
+ description: Game audio principles. Sound design, music integration, adaptive audio systems.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Game Audio Principles
8
+
9
+ > Sound design and music integration for immersive game experiences.
10
+
11
+ ---
12
+
13
+ ## 1. Audio Category System
14
+
15
+ ### Category Definitions
16
+
17
+ | Category | Behavior | Examples |
18
+ |----------|----------|----------|
19
+ | **Music** | Looping, crossfade, ducking | BGM, combat music |
20
+ | **SFX** | One-shot, 3D positioned | Footsteps, impacts |
21
+ | **Ambient** | Looping, background layer | Wind, crowd, forest |
22
+ | **UI** | Immediate, non-3D | Button clicks, notifications |
23
+ | **Voice** | Priority, ducking trigger | Dialogue, announcer |
24
+
25
+ ### Priority Hierarchy
26
+
27
+ ```
28
+ When sounds compete for channels:
29
+
30
+ 1. Voice (highest - always audible)
31
+ 2. Player SFX (feedback critical)
32
+ 3. Enemy SFX (gameplay important)
33
+ 4. Music (mood, but duckable)
34
+ 5. Ambient (lowest - can drop)
35
+ ```
36
+
37
+ ---
38
+
39
+ ## 2. Sound Design Decisions
40
+
41
+ ### SFX Creation Approach
42
+
43
+ | Approach | When to Use | Trade-offs |
44
+ |----------|-------------|------------|
45
+ | **Recording** | Realistic needs | High quality, time intensive |
46
+ | **Synthesis** | Sci-fi, retro, UI | Unique, requires skill |
47
+ | **Library samples** | Fast production | Common sounds, licensing |
48
+ | **Layering** | Complex sounds | Best results, more work |
49
+
50
+ ### Layering Structure
51
+
52
+ | Layer | Purpose | Example: Gunshot |
53
+ |-------|---------|------------------|
54
+ | **Attack** | Initial transient | Click, snap |
55
+ | **Body** | Main character | Boom, blast |
56
+ | **Tail** | Decay, room | Reverb, echo |
57
+ | **Sweetener** | Special sauce | Shell casing, mechanical |
58
+
59
+ ---
60
+
61
+ ## 3. Music Integration
62
+
63
+ ### Music State System
64
+
65
+ ```
66
+ Game State → Music Response
67
+
68
+ ├── Menu → Calm, loopable theme
69
+ ├── Exploration → Ambient, atmospheric
70
+ ├── Combat detected → Transition to tension
71
+ ├── Combat engaged → Full battle music
72
+ ├── Victory → Stinger + calm transition
73
+ ├── Defeat → Somber stinger
74
+ └── Boss → Unique, multi-phase track
75
+ ```
76
+
77
+ ### Transition Techniques
78
+
79
+ | Technique | Use When | Feel |
80
+ |-----------|----------|------|
81
+ | **Crossfade** | Smooth mood shift | Gradual |
82
+ | **Stinger** | Immediate event | Dramatic |
83
+ | **Stem mixing** | Dynamic intensity | Seamless |
84
+ | **Beat-synced** | Rhythmic gameplay | Musical |
85
+ | **Queue point** | Next natural break | Clean |
86
+
87
+ ---
88
+
89
+ ## 4. Adaptive Audio Decisions
90
+
91
+ ### Intensity Parameters
92
+
93
+ | Parameter | Affects | Example |
94
+ |-----------|---------|---------|
95
+ | **Threat level** | Music intensity | Enemy count |
96
+ | **Health** | Filter, reverb | Low health = muffled |
97
+ | **Speed** | Tempo, energy | Racing speed |
98
+ | **Environment** | Reverb, EQ | Cave vs outdoor |
99
+ | **Time of day** | Mood, volume | Night = quieter |
100
+
101
+ ### Vertical vs Horizontal
102
+
103
+ | System | What Changes | Best For |
104
+ |--------|--------------|----------|
105
+ | **Vertical (layers)** | Add/remove instrument layers | Intensity scaling |
106
+ | **Horizontal (segments)** | Different music sections | State changes |
107
+ | **Combined** | Both | AAA adaptive scores |
108
+
109
+ ---
110
+
111
+ ## 5. 3D Audio Decisions
112
+
113
+ ### Spatialization
114
+
115
+ | Element | 3D Positioned? | Reason |
116
+ |---------|----------------|--------|
117
+ | Player footsteps | No (or subtle) | Always audible |
118
+ | Enemy footsteps | Yes | Directional awareness |
119
+ | Gunfire | Yes | Combat awareness |
120
+ | Music | No | Mood, non-diegetic |
121
+ | Ambient zone | Yes (area) | Environmental |
122
+ | UI sounds | No | Interface feedback |
123
+
124
+ ### Distance Behavior
125
+
126
+ | Distance | Sound Behavior |
127
+ |----------|----------------|
128
+ | **Near** | Full volume, full frequency |
129
+ | **Medium** | Volume falloff, high-freq rolloff |
130
+ | **Far** | Low volume, low-pass filter |
131
+ | **Max** | Silent or ambient hint |
132
+
133
+ ---
134
+
135
+ ## 6. Platform Considerations
136
+
137
+ ### Format Selection
138
+
139
+ | Platform | Recommended Format | Reason |
140
+ |----------|-------------------|--------|
141
+ | PC | OGG Vorbis, WAV | Quality, no licensing |
142
+ | Console | Platform-specific | Certification |
143
+ | Mobile | MP3, AAC | Size, compatibility |
144
+ | Web | WebM/Opus, MP3 fallback | Browser support |
145
+
146
+ ### Memory Budget
147
+
148
+ | Game Type | Audio Budget | Strategy |
149
+ |-----------|--------------|----------|
150
+ | Mobile casual | 10-50 MB | Compressed, fewer variants |
151
+ | PC indie | 100-500 MB | Quality focus |
152
+ | AAA | 1+ GB | Full quality, many variants |
153
+
154
+ ---
155
+
156
+ ## 7. Mix Hierarchy
157
+
158
+ ### Volume Balance Reference
159
+
160
+ | Category | Relative Level | Notes |
161
+ |----------|----------------|-------|
162
+ | **Voice** | 0 dB (reference) | Always clear |
163
+ | **Player SFX** | -3 to -6 dB | Prominent but not harsh |
164
+ | **Music** | -6 to -12 dB | Foundation, ducks for voice |
165
+ | **Enemy SFX** | -6 to -9 dB | Important but not dominant |
166
+ | **Ambient** | -12 to -18 dB | Subtle background |
167
+
168
+ ### Ducking Rules
169
+
170
+ | When | Duck What | Amount |
171
+ |------|-----------|--------|
172
+ | Voice plays | Music, Ambient | -6 to -9 dB |
173
+ | Explosion | All except explosion | Brief duck |
174
+ | Menu open | Gameplay audio | -3 to -6 dB |
175
+
176
+ ---
177
+
178
+ ## 8. Anti-Patterns
179
+
180
+ | Don't | Do |
181
+ |-------|-----|
182
+ | Play same sound repeatedly | Use variations (3-5 per sound) |
183
+ | Max volume everything | Use proper mix hierarchy |
184
+ | Ignore silence | Silence creates contrast |
185
+ | One music track loops forever | Provide variety, transitions |
186
+ | Skip audio in prototype | Placeholder audio matters |
187
+
188
+ ---
189
+
190
+ > **Remember:** 50% of the game experience is audio. A muted game loses half its soul.
@@ -0,0 +1,129 @@
1
+ ---
2
+ name: game-design
3
+ description: Game design principles. GDD structure, balancing, player psychology, progression.
4
+ allowed-tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Game Design Principles
8
+
9
+ > Design thinking for engaging games.
10
+
11
+ ---
12
+
13
+ ## 1. Core Loop Design
14
+
15
+ ### The 30-Second Test
16
+
17
+ ```
18
+ Every game needs a fun 30-second loop:
19
+ 1. ACTION → Player does something
20
+ 2. FEEDBACK → Game responds
21
+ 3. REWARD → Player feels good
22
+ 4. REPEAT
23
+ ```
24
+
25
+ ### Loop Examples
26
+
27
+ | Genre | Core Loop |
28
+ |-------|-----------|
29
+ | Platformer | Run → Jump → Land → Collect |
30
+ | Shooter | Aim → Shoot → Kill → Loot |
31
+ | Puzzle | Observe → Think → Solve → Advance |
32
+ | RPG | Explore → Fight → Level → Gear |
33
+
34
+ ---
35
+
36
+ ## 2. Game Design Document (GDD)
37
+
38
+ ### Essential Sections
39
+
40
+ | Section | Content |
41
+ |---------|---------|
42
+ | **Pitch** | One-sentence description |
43
+ | **Core Loop** | 30-second gameplay |
44
+ | **Mechanics** | How systems work |
45
+ | **Progression** | How player advances |
46
+ | **Art Style** | Visual direction |
47
+ | **Audio** | Sound direction |
48
+
49
+ ### Principles
50
+
51
+ - Keep it living (update regularly)
52
+ - Visuals help communicate
53
+ - Less is more (start small)
54
+
55
+ ---
56
+
57
+ ## 3. Player Psychology
58
+
59
+ ### Motivation Types
60
+
61
+ | Type | Driven By |
62
+ |------|-----------|
63
+ | **Achiever** | Goals, completion |
64
+ | **Explorer** | Discovery, secrets |
65
+ | **Socializer** | Interaction, community |
66
+ | **Killer** | Competition, dominance |
67
+
68
+ ### Reward Schedules
69
+
70
+ | Schedule | Effect | Use |
71
+ |----------|--------|-----|
72
+ | **Fixed** | Predictable | Milestone rewards |
73
+ | **Variable** | Addictive | Loot drops |
74
+ | **Ratio** | Effort-based | Grind games |
75
+
76
+ ---
77
+
78
+ ## 4. Difficulty Balancing
79
+
80
+ ### Flow State
81
+
82
+ ```
83
+ Too Hard → Frustration → Quit
84
+ Too Easy → Boredom → Quit
85
+ Just Right → Flow → Engagement
86
+ ```
87
+
88
+ ### Balancing Strategies
89
+
90
+ | Strategy | How |
91
+ |----------|-----|
92
+ | **Dynamic** | Adjust to player skill |
93
+ | **Selection** | Let player choose |
94
+ | **Accessibility** | Options for all |
95
+
96
+ ---
97
+
98
+ ## 5. Progression Design
99
+
100
+ ### Progression Types
101
+
102
+ | Type | Example |
103
+ |------|---------|
104
+ | **Skill** | Player gets better |
105
+ | **Power** | Character gets stronger |
106
+ | **Content** | New areas unlock |
107
+ | **Story** | Narrative advances |
108
+
109
+ ### Pacing Principles
110
+
111
+ - Early wins (hook quickly)
112
+ - Gradually increase challenge
113
+ - Rest beats between intensity
114
+ - Meaningful choices
115
+
116
+ ---
117
+
118
+ ## 6. Anti-Patterns
119
+
120
+ | ❌ Don't | ✅ Do |
121
+ |----------|-------|
122
+ | Design in isolation | Playtest constantly |
123
+ | Polish before fun | Prototype first |
124
+ | Force one way to play | Allow player expression |
125
+ | Punish excessively | Reward progress |
126
+
127
+ ---
128
+
129
+ > **Remember:** Fun is discovered through iteration, not designed on paper.