@musashishao/agent-kit 1.8.2 → 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 (176) hide show
  1. package/.agent/agents/ai-architect.md +39 -0
  2. package/.agent/agents/ai-asset-factory.md +700 -0
  3. package/.agent/agents/ai-audio-factory.md +503 -0
  4. package/.agent/agents/cloud-engineer.md +39 -0
  5. package/.agent/agents/game-developer.md +190 -89
  6. package/.agent/agents/marketing-specialist.md +41 -0
  7. package/.agent/agents/orchestrator.md +113 -3
  8. package/.agent/agents/penetration-tester.md +15 -1
  9. package/.agent/agents/project-planner.md +67 -0
  10. package/.agent/agents/unity-mobile-master.md +949 -0
  11. package/.agent/mcp/config/registry.json +65 -51
  12. package/.agent/mcp/servers/notebooklm/README.md +114 -0
  13. package/.agent/mcp/servers/notebooklm/package.json +35 -0
  14. package/.agent/mcp/servers/notebooklm/src/auth/chrome.ts +225 -0
  15. package/.agent/mcp/servers/notebooklm/src/auth/index.ts +1 -0
  16. package/.agent/mcp/servers/notebooklm/src/index.ts +516 -0
  17. package/.agent/mcp/servers/notebooklm/src/services/index.ts +3 -0
  18. package/.agent/mcp/servers/notebooklm/src/services/library.ts +217 -0
  19. package/.agent/mcp/servers/notebooklm/src/services/notebooklm.ts +380 -0
  20. package/.agent/mcp/servers/notebooklm/tsconfig.json +15 -0
  21. package/.agent/mcp-gateway/README.md +169 -20
  22. package/.agent/mcp-gateway/package.json +22 -7
  23. package/.agent/mcp-gateway/src/auth/index.ts +55 -0
  24. package/.agent/mcp-gateway/src/auth/middleware.ts +242 -0
  25. package/.agent/mcp-gateway/src/auth/oauth.ts +462 -0
  26. package/.agent/mcp-gateway/src/auth/scopes.ts +227 -0
  27. package/.agent/mcp-gateway/src/index.ts +252 -105
  28. package/.agent/mcp-gateway/src/observability/index.ts +5 -0
  29. package/.agent/mcp-gateway/src/observability/otel.ts +405 -0
  30. package/.agent/mcp-gateway/src/transports/index.ts +5 -0
  31. package/.agent/mcp-gateway/src/transports/streamableHttp.ts +235 -0
  32. package/.agent/rules/CODEX.md +115 -2
  33. package/.agent/rules/CODE_RULES.md +73 -0
  34. package/.agent/rules/GEMINI.md +26 -1
  35. package/.agent/rules/MEMORY_STATE.md +110 -0
  36. package/.agent/rules/REFERENCE.md +40 -58
  37. package/.agent/rules/REF_SKILLS.md +116 -0
  38. package/.agent/rules/REF_WORKFLOWS.md +81 -0
  39. package/.agent/scripts/ak_cli.py +106 -5
  40. package/.agent/scripts/memory_manager.py +48 -9
  41. package/.agent/skills/3d-web-experience/SKILL.md +386 -0
  42. package/.agent/skills/DEPENDENCIES.md +54 -0
  43. package/.agent/skills/ab-test-setup/SKILL.md +77 -0
  44. package/.agent/skills/active-directory-attacks/SKILL.md +59 -0
  45. package/.agent/skills/agent-evaluation/SKILL.md +430 -0
  46. package/.agent/skills/agent-memory-systems/SKILL.md +426 -0
  47. package/.agent/skills/agent-tool-builder/SKILL.md +139 -0
  48. package/.agent/skills/ai-agents-architect/SKILL.md +115 -0
  49. package/.agent/skills/ai-product/SKILL.md +86 -0
  50. package/.agent/skills/ai-wrapper-product/SKILL.md +90 -0
  51. package/.agent/skills/analytics-tracking/SKILL.md +88 -0
  52. package/.agent/skills/anti-hallucination/SKILL.md +295 -0
  53. package/.agent/skills/anti-hallucination/scripts/check_hallucination.py +299 -0
  54. package/.agent/skills/api-fuzzing-bug-bounty/SKILL.md +66 -0
  55. package/.agent/skills/app-store-optimization/SKILL.md +66 -0
  56. package/.agent/skills/autonomous-agent-patterns/SKILL.md +414 -0
  57. package/.agent/skills/aws-penetration-testing/SKILL.md +50 -0
  58. package/.agent/skills/aws-serverless/SKILL.md +327 -0
  59. package/.agent/skills/azure-functions/SKILL.md +340 -0
  60. package/.agent/skills/bifurcation-analysis/SKILL.md +56 -0
  61. package/.agent/skills/brainstorming/SKILL.md +80 -6
  62. package/.agent/skills/broken-authentication/SKILL.md +53 -0
  63. package/.agent/skills/browser-automation/SKILL.md +408 -0
  64. package/.agent/skills/browser-extension-builder/SKILL.md +422 -0
  65. package/.agent/skills/bullmq-specialist/SKILL.md +424 -0
  66. package/.agent/skills/bun-development/SKILL.md +386 -0
  67. package/.agent/skills/burp-suite-testing/SKILL.md +60 -0
  68. package/.agent/skills/clerk-auth/SKILL.md +432 -0
  69. package/.agent/skills/cloud-penetration-testing/SKILL.md +51 -0
  70. package/.agent/skills/copywriting/SKILL.md +66 -0
  71. package/.agent/skills/crewai/SKILL.md +470 -0
  72. package/.agent/skills/decision-memory/SKILL.md +317 -0
  73. package/.agent/skills/discord-bot-architect/SKILL.md +447 -0
  74. package/.agent/skills/email-sequence/SKILL.md +73 -0
  75. package/.agent/skills/emergence-detector/SKILL.md +230 -0
  76. package/.agent/skills/emergence-detector/scripts/check_emergence.py +265 -0
  77. package/.agent/skills/ethical-hacking-methodology/SKILL.md +67 -0
  78. package/.agent/skills/explained-qa/SKILL.md +142 -0
  79. package/.agent/skills/explained-qa/game-terminology.md +214 -0
  80. package/.agent/skills/firebase/SKILL.md +377 -0
  81. package/.agent/skills/game-development/ai-dialogue-engine/SKILL.md +442 -0
  82. package/.agent/skills/game-development/ai-graphics-generator/SKILL.md +463 -0
  83. package/.agent/skills/game-development/ai-playtest-framework/SKILL.md +570 -0
  84. package/.agent/skills/game-development/camera-systems/SKILL.md +607 -0
  85. package/.agent/skills/game-development/card-battle-engine/SKILL.md +618 -0
  86. package/.agent/skills/game-development/character-controller-3d/SKILL.md +908 -0
  87. package/.agent/skills/game-development/cloud-save-sync/SKILL.md +527 -0
  88. package/.agent/skills/game-development/combat-system/SKILL.md +748 -0
  89. package/.agent/skills/game-development/compliance-rating/SKILL.md +277 -0
  90. package/.agent/skills/game-development/crossplatform-build/SKILL.md +386 -0
  91. package/.agent/skills/game-development/cultivation-progression/SKILL.md +520 -0
  92. package/.agent/skills/game-development/data-driven-balance/SKILL.md +535 -0
  93. package/.agent/skills/game-development/game-analytics-integrator/SKILL.md +410 -0
  94. package/.agent/skills/game-development/game-audio-advanced/SKILL.md +646 -0
  95. package/.agent/skills/game-development/game-economy-designer/SKILL.md +375 -0
  96. package/.agent/skills/game-development/game-marketing/SKILL.md +85 -0
  97. package/.agent/skills/game-development/game-state-manager/SKILL.md +883 -0
  98. package/.agent/skills/game-development/godot-expert/SKILL.md +462 -0
  99. package/.agent/skills/game-development/hybrid-game-spec/SKILL.md +220 -0
  100. package/.agent/skills/game-development/inventory-quest/SKILL.md +747 -0
  101. package/.agent/skills/game-development/liveops/SKILL.md +308 -0
  102. package/.agent/skills/game-development/localization/SKILL.md +286 -0
  103. package/.agent/skills/game-development/mobile-input-patterns/SKILL.md +343 -0
  104. package/.agent/skills/game-development/monetization-strategy/SKILL.md +94 -0
  105. package/.agent/skills/game-development/multiplayer-master/SKILL.md +727 -0
  106. package/.agent/skills/game-development/narrative-branching/SKILL.md +593 -0
  107. package/.agent/skills/game-development/npc-ai-integration/SKILL.md +110 -0
  108. package/.agent/skills/game-development/procedural-generation/SKILL.md +168 -0
  109. package/.agent/skills/game-development/procedural-level-ai/SKILL.md +367 -0
  110. package/.agent/skills/game-development/prototyping-rapid/SKILL.md +205 -0
  111. package/.agent/skills/game-development/spec-ecosystem/SKILL.md +155 -0
  112. package/.agent/skills/game-development/spec-ecosystem/decision-log-format.md +129 -0
  113. package/.agent/skills/game-development/spec-ecosystem/templates/PLAN-template.md +178 -0
  114. package/.agent/skills/game-development/spec-ecosystem/templates/SPEC-template.md +110 -0
  115. package/.agent/skills/game-development/spec-ecosystem/templates/TASKS-template.md +156 -0
  116. package/.agent/skills/game-development/survival-systems/SKILL.md +493 -0
  117. package/.agent/skills/game-development/testing-qa/SKILL.md +270 -0
  118. package/.agent/skills/game-development/unity-integration/SKILL.md +358 -0
  119. package/.agent/skills/game-development/unity-mobile-optimization/SKILL.md +271 -0
  120. package/.agent/skills/game-development/webgpu-shading/SKILL.md +209 -0
  121. package/.agent/skills/gcp-cloud-run/SKILL.md +358 -0
  122. package/.agent/skills/graphql/SKILL.md +492 -0
  123. package/.agent/skills/idor-testing/SKILL.md +64 -0
  124. package/.agent/skills/inngest/SKILL.md +128 -0
  125. package/.agent/skills/intent-capture/SKILL.md +65 -0
  126. package/.agent/skills/langfuse/SKILL.md +415 -0
  127. package/.agent/skills/langgraph/SKILL.md +360 -0
  128. package/.agent/skills/launch-strategy/SKILL.md +68 -0
  129. package/.agent/skills/linux-privilege-escalation/SKILL.md +62 -0
  130. package/.agent/skills/llm-app-patterns/SKILL.md +367 -0
  131. package/.agent/skills/marketing-ideas/SKILL.md +66 -0
  132. package/.agent/skills/mcp-composition/SKILL.md +362 -0
  133. package/.agent/skills/mcp-observability/SKILL.md +323 -0
  134. package/.agent/skills/mcp-security/SKILL.md +314 -0
  135. package/.agent/skills/metasploit-framework/SKILL.md +60 -0
  136. package/.agent/skills/micro-saas-launcher/SKILL.md +93 -0
  137. package/.agent/skills/neon-postgres/SKILL.md +339 -0
  138. package/.agent/skills/paid-ads/SKILL.md +64 -0
  139. package/.agent/skills/supabase-integration/SKILL.md +411 -0
  140. package/.agent/skills/trust-spectrum/SKILL.md +291 -0
  141. package/.agent/skills/vibe-coding-guard/SKILL.md +328 -0
  142. package/.agent/templates/AGENTS.game.md +63 -0
  143. package/.agent/templates/docs/WORKFLOW_GUIDE.en.md +100 -0
  144. package/.agent/templates/docs/WORKFLOW_GUIDE.vi.md +100 -0
  145. package/.agent/workflows/ai-agent.md +38 -0
  146. package/.agent/workflows/autofix.md +1 -0
  147. package/.agent/workflows/brainstorm.md +1 -0
  148. package/.agent/workflows/context.md +1 -0
  149. package/.agent/workflows/create.md +39 -8
  150. package/.agent/workflows/dashboard.md +1 -0
  151. package/.agent/workflows/debug.md +14 -0
  152. package/.agent/workflows/deploy.md +14 -0
  153. package/.agent/workflows/enhance.md +44 -0
  154. package/.agent/workflows/gamekit-init.md +177 -0
  155. package/.agent/workflows/gamekit-launch.md +338 -0
  156. package/.agent/workflows/gamekit-plan.md +204 -0
  157. package/.agent/workflows/gamekit-qa.md +153 -0
  158. package/.agent/workflows/gamekit-spec.md +243 -0
  159. package/.agent/workflows/gamekit-tasks.md +208 -0
  160. package/.agent/workflows/marketing.md +39 -0
  161. package/.agent/workflows/next.md +1 -0
  162. package/.agent/workflows/orchestrate.md +12 -0
  163. package/.agent/workflows/pentest.md +39 -0
  164. package/.agent/workflows/plan.md +42 -0
  165. package/.agent/workflows/preview.md +1 -0
  166. package/.agent/workflows/quality.md +1 -0
  167. package/.agent/workflows/saas.md +38 -0
  168. package/.agent/workflows/spec.md +42 -0
  169. package/.agent/workflows/status.md +1 -0
  170. package/.agent/workflows/test.md +14 -0
  171. package/.agent/workflows/ui-ux-pro-max.md +1 -0
  172. package/README.md +4 -4
  173. package/bin/cli.js +411 -111
  174. package/package.json +1 -2
  175. package/docs/AI_DATA_INFRASTRUCTURE.md +0 -288
  176. package/docs/CHANGELOG_AI_INFRA.md +0 -111
@@ -0,0 +1,463 @@
1
+ ---
2
+ name: ai-graphics-generator
3
+ description: Advanced AI image generation patterns for game graphics. DALL-E, Stable Diffusion, Midjourney, and ComfyUI workflows for 2D game art.
4
+ ---
5
+
6
+ # AI Graphics Generator Skill 🎨
7
+
8
+ > **Master AI image generation for game development.** Production-quality 2D graphics with the right prompts and workflows.
9
+
10
+ ---
11
+
12
+ ## AI Tool Selection Matrix
13
+
14
+ | Tool | Best For | Quality | Consistency | Cost |
15
+ |------|----------|---------|-------------|------|
16
+ | **DALL-E 3** | General sprites, quick iteration | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | $0.04/img |
17
+ | **Midjourney** | Concept art, backgrounds | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | $10/mo |
18
+ | **Stable Diffusion** | Batch generation, custom models | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Free (local) |
19
+ | **Leonardo.ai** | Game-ready assets, fine-tuned | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | Free tier |
20
+ | **Scenario.gg** | Trained game styles | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | $15/mo |
21
+ | **ComfyUI** | Complex workflows, animation | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Free |
22
+
23
+ ---
24
+
25
+ ## Prompt Engineering Fundamentals
26
+
27
+ ### Prompt Structure
28
+
29
+ ```
30
+ [MEDIUM] [SUBJECT] [STYLE] [DETAILS] [TECHNICAL] [NEGATIVE]
31
+ ```
32
+
33
+ **Components:**
34
+ - **MEDIUM**: 2D game sprite, pixel art, digital painting
35
+ - **SUBJECT**: What you're generating (character, tileset, icon)
36
+ - **STYLE**: Art style keywords (see style library below)
37
+ - **DETAILS**: Specific characteristics (colors, pose, expression)
38
+ - **TECHNICAL**: Size, format, requirements (transparent, tileable)
39
+ - **NEGATIVE**: What to avoid (no text, no watermarks)
40
+
41
+ ### Golden Rules
42
+
43
+ 1. **Be Specific, Not Verbose**: "orange cat with chef hat" beats "a cute cat that is orange colored wearing a small hat like a chef would wear"
44
+
45
+ 2. **Front-Load Important Terms**: First 10 words matter most
46
+
47
+ 3. **Use Art Style Keywords**: AI recognizes style terms better than descriptions
48
+
49
+ 4. **Include Technical Requirements**: "transparent background" prevents cleanup work
50
+
51
+ 5. **Iterate with Variations**: Generate 4-8, pick the best
52
+
53
+ ---
54
+
55
+ ## Style Library
56
+
57
+ ### Pixel Art Styles
58
+
59
+ ```
60
+ Keywords by Era:
61
+ - "8-bit NES style" → 4-color limited palette, chunky pixels
62
+ - "16-bit SNES style" → More colors, detailed sprites
63
+ - "32-bit PS1 style" → Pre-rendered look, dithering
64
+ - "modern pixel art" → HD pixels, smooth gradients allowed
65
+ - "Celeste style" → Clean, expressive, limited palette
66
+ - "Stardew Valley style" → Warm, cozy, detailed
67
+
68
+ Technical Modifiers:
69
+ - "clean pixel edges"
70
+ - "no anti-aliasing"
71
+ - "limited color palette"
72
+ - "dithering for gradients"
73
+ ```
74
+
75
+ ### Cartoon Styles
76
+
77
+ ```
78
+ Mobile Game Styles:
79
+ - "Clash Royale style" → 3D-rendered look, bold outlines
80
+ - "Brawl Stars style" → Chunky, colorful, energetic
81
+ - "Candy Crush style" → Glossy, shiny, appealing
82
+ - "Angry Birds style" → Round, expressive, simple shapes
83
+
84
+ Classic Cartoon:
85
+ - "Disney animation style"
86
+ - "Pixar 3D render style"
87
+ - "Studio Ghibli style"
88
+ - "Adventure Time style"
89
+ - "Cuphead 1930s cartoon style"
90
+ ```
91
+
92
+ ### Realistic/Painted Styles
93
+
94
+ ```
95
+ Fantasy Art:
96
+ - "fantasy illustration style"
97
+ - "D&D character art style"
98
+ - "Magic: The Gathering card art"
99
+ - "oil painting medieval"
100
+
101
+ Sci-Fi:
102
+ - "concept art sci-fi"
103
+ - "Mass Effect style"
104
+ - "cyberpunk illustration"
105
+
106
+ Nature:
107
+ - "environmental concept art"
108
+ - "matte painting style"
109
+ - "nature illustration detailed"
110
+ ```
111
+
112
+ ### Minimalist/Vector
113
+
114
+ ```
115
+ - "flat design"
116
+ - "vector game art"
117
+ - "geometric minimalist"
118
+ - "low poly 2D"
119
+ - "silhouette art"
120
+ - "material design icons"
121
+ ```
122
+
123
+ ---
124
+
125
+ ## Asset-Specific Prompts
126
+
127
+ ### Character Sprites
128
+
129
+ #### Base Template
130
+ ```
131
+ 2D game character sprite, [STYLE] style, [DESCRIPTION].
132
+ Pose: [POSE], facing [DIRECTION].
133
+ Expression: [EXPRESSION].
134
+ Outfit: [CLOTHING/ARMOR].
135
+ Colors: [PRIMARY], [SECONDARY], [ACCENT].
136
+ Background: transparent (PNG with alpha).
137
+ Requirements: clean edges, readable at [SIZE]px, no text.
138
+ ```
139
+
140
+ #### Player Character Examples
141
+
142
+ **Pixel Art Hero:**
143
+ ```
144
+ 2D game character sprite, 16-bit SNES pixel art style.
145
+ Heroic knight with blue cape and silver armor.
146
+ Idle pose, facing right.
147
+ Confident expression.
148
+ Primary colors: silver, blue, gold accents.
149
+ Transparent background.
150
+ Clean pixel edges, no anti-aliasing, suitable for 32x48 display.
151
+ ```
152
+
153
+ **Cartoon Mobile Character:**
154
+ ```
155
+ 2D game character sprite, Brawl Stars cartoon style.
156
+ Cute cat character with wizard hat and wand.
157
+ Action pose, facing camera at 3/4 angle.
158
+ Playful, mischievous expression.
159
+ Colors: orange fur, purple wizard outfit, gold stars.
160
+ Transparent background.
161
+ High contrast, readable at small mobile sizes.
162
+ ```
163
+
164
+ ### Tilesets
165
+
166
+ #### Ground Tileset
167
+ ```
168
+ 2D game tileset, [STYLE] style, [THEME] theme.
169
+ Seamless tileable ground texture.
170
+ Material: [MATERIAL] (grass, stone, dirt, etc).
171
+ Lighting: consistent from top-left.
172
+ Format: single tile or 4x4 variation grid.
173
+ Size: 64x64 per tile, power-of-2 friendly.
174
+ Details: [DETAILS] (cracks, moss, wear patterns).
175
+ No text, no watermarks.
176
+ ```
177
+
178
+ #### Platform Tileset
179
+ ```
180
+ 2D platformer tileset, [STYLE] style.
181
+ Include: left edge, center (repeatX), right edge, single platform.
182
+ Platform material: [MATERIAL].
183
+ Consistent with [THEME] environment.
184
+ Clean edges for easy character collision.
185
+ ```
186
+
187
+ #### Auto-Tile Format (47-tile Blob)
188
+ ```
189
+ Create complete auto-tile tileset, [STYLE] style, [THEME].
190
+ 47-tile blob format for seamless auto-tiling.
191
+ Include all edge, corner, and transition combinations.
192
+ Consistent lighting and style across all tiles.
193
+ Single sprite sheet, organized grid layout.
194
+ ```
195
+
196
+ ### Backgrounds
197
+
198
+ #### Parallax Layers (Generate Separately)
199
+ ```
200
+ LAYER 1 - FAR BACKGROUND:
201
+ 2D game background layer, [STYLE] style.
202
+ [DISTANT ELEMENTS]: mountains, sky, clouds.
203
+ Atmospheric perspective: muted colors, low detail.
204
+ Seamless horizontal tile.
205
+ [TIME] lighting, [MOOD] mood.
206
+ No foreground elements.
207
+
208
+ LAYER 2 - MID BACKGROUND:
209
+ 2D game background layer, [STYLE] style.
210
+ [MIDDLE ELEMENTS]: trees, buildings, hills.
211
+ Medium detail level.
212
+ Seamless horizontal tile.
213
+ Same lighting as layer 1.
214
+ Transparent bottom for layering.
215
+
216
+ LAYER 3 - NEAR BACKGROUND:
217
+ 2D game background layer, [STYLE] style.
218
+ [NEAR ELEMENTS]: grass, rocks, foliage.
219
+ High detail, close to gameplay.
220
+ Seamless horizontal tile.
221
+ Transparent where needed for gameplay visibility.
222
+ ```
223
+
224
+ ### UI Elements
225
+
226
+ #### Button Set
227
+ ```
228
+ Game UI button sprite, [STYLE] style, [THEME] theme.
229
+ States: normal, pressed (slightly darker/smaller), disabled (grayscale).
230
+ Shape: [SHAPE] (rounded rectangle, pill, custom).
231
+ Colors: [PRIMARY] with [HIGHLIGHT] edge.
232
+ 9-slice friendly with clear padding.
233
+ Size: [WIDTH]x[HEIGHT] or proportional.
234
+ No text (text added separately).
235
+ ```
236
+
237
+ #### Panel/Frame
238
+ ```
239
+ Game UI panel, [STYLE] style, [THEME] theme.
240
+ Decorative frame for dialogs/inventory.
241
+ 9-slice compatible with clear center area.
242
+ Border style: [BORDER] (ornate, simple, rounded).
243
+ Background: [BG] (semi-transparent, solid, pattern).
244
+ Size: flexible, demonstrate at 400x300.
245
+ ```
246
+
247
+ ### Icons
248
+
249
+ #### Item Icon Template
250
+ ```
251
+ Game icon, [ITEM], [STYLE] style.
252
+ Square format, works at 64x64 and 32x32.
253
+ Simple recognizable silhouette.
254
+ Colors: [COLORS] color scheme.
255
+ [TRANSPARENT/SOLID] background.
256
+ High contrast for visibility.
257
+ No text, no complex details.
258
+ ```
259
+
260
+ #### Icon Set (Batch)
261
+ ```
262
+ Game icon set, 4x4 grid, [STYLE] style, [THEME].
263
+ 16 [CATEGORY] icons: [LIST ITEMS].
264
+ Consistent style across all icons.
265
+ Each icon: 64x64, transparent background.
266
+ Simple, recognizable silhouettes.
267
+ Same color temperature and saturation.
268
+ ```
269
+
270
+ ### VFX Sprites
271
+
272
+ #### Animated Effect Sheet
273
+ ```
274
+ 2D VFX sprite sheet, [EFFECT] effect, [STYLE] style.
275
+ Animation: [FRAMES] frames, left-to-right sequence.
276
+ Effect type: [TYPE] (explosion, magic, hit spark).
277
+ Colors: [COLORS] energy/particles.
278
+ Transparent background throughout.
279
+ Each frame: [SIZE]x[SIZE] pixels.
280
+ Loopable: [YES/NO].
281
+ ```
282
+
283
+ ---
284
+
285
+ ## Workflow: Stable Diffusion + ComfyUI
286
+
287
+ ### Character Animation Workflow
288
+
289
+ ```yaml
290
+ # ComfyUI workflow for character sprite sheet
291
+ workflow:
292
+ load_model:
293
+ model: "dreamshaper_8"
294
+ vae: "sd-vae-ft-mse"
295
+
296
+ prompt_positive:
297
+ text: |
298
+ character sprite sheet, 4x2 grid, pixel art style,
299
+ [CHARACTER DESCRIPTION],
300
+ poses: idle, walk1, walk2, walk3, jump, fall, attack, hurt,
301
+ consistent character across all frames,
302
+ transparent background, clean edges
303
+
304
+ prompt_negative:
305
+ text: |
306
+ blurry, distorted, extra limbs, text, watermark,
307
+ inconsistent style, 3D render, photo
308
+
309
+ sampler:
310
+ steps: 30
311
+ cfg_scale: 7.5
312
+ sampler_name: "euler_ancestral"
313
+
314
+ output:
315
+ format: png
316
+ size: 512x256 # 4 cols x 2 rows
317
+ ```
318
+
319
+ ### Consistent Character LoRA Training
320
+
321
+ ```yaml
322
+ # For maximum consistency, train a LoRA
323
+ lora_training:
324
+ base_model: "sd_xl_base_1.0"
325
+ training_images: 10-20 # Reference images of your character
326
+ steps: 1500
327
+ learning_rate: 1e-4
328
+ output: "my_character_lora.safetensors"
329
+
330
+ # Then use in generation
331
+ prompt_with_lora:
332
+ text: "<lora:my_character_lora:0.8> my_character, idle pose, pixel art"
333
+ ```
334
+
335
+ ---
336
+
337
+ ## Workflow: Midjourney Game Assets
338
+
339
+ ### Character Design
340
+ ```
341
+ /imagine prompt: 2D game character, [description],
342
+ [style] style, idle pose, transparent background,
343
+ clean edges, game sprite --ar 1:1 --v 6 --style raw
344
+
345
+ # Variations
346
+ /imagine prompt: [same] --seed [seed from v1]
347
+ ```
348
+
349
+ ### Background
350
+ ```
351
+ /imagine prompt: 2D game background, [scene],
352
+ [style] style, [mood] mood, [time] lighting,
353
+ parallax-ready, horizontal format --ar 16:9 --v 6
354
+ ```
355
+
356
+ ### Tileset (Manual Assembly)
357
+ ```
358
+ /imagine prompt: seamless tile texture, [material],
359
+ [style] style, game tileset,
360
+ top-down lighting --tile --v 6
361
+ ```
362
+
363
+ ---
364
+
365
+ ## Post-Processing Pipeline
366
+
367
+ ### Python Scripts
368
+
369
+ ```python
370
+ # 1. Background Removal
371
+ from rembg import remove
372
+ from PIL import Image
373
+
374
+ def remove_bg(input_path, output_path):
375
+ img = Image.open(input_path)
376
+ result = remove(img)
377
+ result.save(output_path, "PNG")
378
+
379
+ # 2. Pixel Art Scaling
380
+ def pixelate(input_path, output_path, target_size=(64, 64)):
381
+ img = Image.open(input_path)
382
+ # Downscale
383
+ small = img.resize((target_size[0]//4, target_size[1]//4), Image.NEAREST)
384
+ # Upscale
385
+ result = small.resize(target_size, Image.NEAREST)
386
+ result.save(output_path, "PNG")
387
+
388
+ # 3. Color Palette Reduction
389
+ from sklearn.cluster import KMeans
390
+ import numpy as np
391
+
392
+ def reduce_colors(input_path, output_path, n_colors=16):
393
+ img = Image.open(input_path).convert('RGB')
394
+ data = np.array(img).reshape(-1, 3)
395
+
396
+ kmeans = KMeans(n_clusters=n_colors, random_state=42)
397
+ labels = kmeans.fit_predict(data)
398
+
399
+ palette = kmeans.cluster_centers_.astype(np.uint8)
400
+ result_data = palette[labels].reshape(img.size[1], img.size[0], 3)
401
+
402
+ result = Image.fromarray(result_data)
403
+ result.save(output_path, "PNG")
404
+
405
+ # 4. Sprite Sheet Slicer
406
+ def slice_sheet(input_path, output_dir, frame_size=(64, 64)):
407
+ img = Image.open(input_path)
408
+ w, h = img.size
409
+ cols = w // frame_size[0]
410
+ rows = h // frame_size[1]
411
+
412
+ for row in range(rows):
413
+ for col in range(cols):
414
+ x = col * frame_size[0]
415
+ y = row * frame_size[1]
416
+ frame = img.crop((x, y, x + frame_size[0], y + frame_size[1]))
417
+ frame.save(f"{output_dir}/frame_{row}_{col}.png", "PNG")
418
+ ```
419
+
420
+ ---
421
+
422
+ ## Quality Checklist
423
+
424
+ | Check | Criteria | Fix If Failed |
425
+ |-------|----------|---------------|
426
+ | ✅ **Style Consistency** | Matches other assets | Regenerate with reference |
427
+ | ✅ **Clean Edges** | No jagged/fuzzy borders | Post-process or regenerate |
428
+ | ✅ **Transparency** | Clean alpha, no halos | Use rembg, manual cleanup |
429
+ | ✅ **Color Coherence** | Limited, intentional palette | Apply palette reduction |
430
+ | ✅ **Readability** | Clear at target size | Increase contrast/simplify |
431
+ | ✅ **Animation Ready** | Consistent pivot/size | Standardize in editor |
432
+ | ✅ **No Artifacts** | No AI glitches/extras | Regenerate with better prompt |
433
+ | ✅ **Game Appropriate** | Fits genre/theme | Adjust style keywords |
434
+
435
+ ---
436
+
437
+ ## Troubleshooting
438
+
439
+ | Problem | Cause | Solution |
440
+ |---------|-------|----------|
441
+ | **Inconsistent style** | Vague prompts | Add specific style keywords |
442
+ | **Wrong proportions** | Missing size specs | Include "readable at Xpx" |
443
+ | **Fuzzy edges** | AA bleeding | Request "clean edges, no AA" |
444
+ | **Background artifacts** | Poor mask | Use rembg or manual cleanup |
445
+ | **Too complex** | Over-detailed prompt | Simplify, focus on essentials |
446
+ | **Wrong colors** | Color description vague | Specify hex codes or references |
447
+ | **Missing elements** | Too many items listed | Generate in smaller batches |
448
+
449
+ ---
450
+
451
+ ## Cost Optimization
452
+
453
+ | Strategy | Savings | Trade-off |
454
+ |----------|---------|-----------|
455
+ | **Stable Diffusion local** | 100% | Setup time, hardware |
456
+ | **DALL-E standard vs HD** | 50% | Lower quality |
457
+ | **Batch similar assets** | 30% | Less iteration per asset |
458
+ | **Reuse with variations** | 50% | Less unique assets |
459
+ | **Free tiers first** | 80% | Rate limits |
460
+
461
+ ---
462
+
463
+ > **Master these prompts and workflows to generate professional game graphics with AI.** 🎨