@playcraft/cli 0.0.40 → 0.0.42

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 (130) hide show
  1. package/README.md +66 -3
  2. package/dist/atom-plan/validate-atom-plan.js +298 -0
  3. package/dist/cli-root-help.js +1 -1
  4. package/dist/commands/3d.js +363 -0
  5. package/dist/commands/create.js +337 -0
  6. package/dist/commands/image.js +1337 -43
  7. package/dist/commands/recommend.js +1 -1
  8. package/dist/commands/remix.js +213 -0
  9. package/dist/commands/skills.js +1379 -0
  10. package/dist/commands/tools-3d.js +473 -0
  11. package/dist/commands/tools-generation.js +452 -0
  12. package/dist/commands/tools-project.js +400 -0
  13. package/dist/commands/tools-research.js +37 -0
  14. package/dist/commands/tools-research.test.js +216 -0
  15. package/dist/commands/tools-utils.js +183 -0
  16. package/dist/commands/tools.js +7 -616
  17. package/dist/config.js +2 -0
  18. package/dist/index.js +19 -1
  19. package/dist/utils/version-checker.js +8 -11
  20. package/package.json +9 -3
  21. package/project-template/.claude/agents/designer.md +120 -0
  22. package/project-template/.claude/agents/developer.md +124 -0
  23. package/project-template/.claude/agents/pm.md +164 -0
  24. package/project-template/.claude/agents/refs/README.md +73 -0
  25. package/project-template/.claude/agents/refs/designer-art-style-catalog.md +533 -0
  26. package/project-template/.claude/agents/refs/designer-color-audio-recipes.md +153 -0
  27. package/project-template/.claude/agents/refs/designer-deliverable-spec.md +191 -0
  28. package/project-template/.claude/agents/refs/designer-dimension-axis.md +27 -0
  29. package/project-template/.claude/agents/refs/designer-handoff-v2-checklist.md +68 -0
  30. package/project-template/.claude/agents/refs/designer-master-composite-recipes.md +208 -0
  31. package/project-template/.claude/agents/refs/designer-style-exploration-flow.md +37 -0
  32. package/project-template/.claude/agents/refs/developer-dev-handoff.md +109 -0
  33. package/project-template/.claude/agents/refs/developer-impl-cookbook.md +134 -0
  34. package/project-template/.claude/agents/refs/developer-phase1-flow.md +136 -0
  35. package/project-template/.claude/agents/refs/pm-workflow-detail.md +551 -0
  36. package/project-template/.claude/agents/refs/reviewer-convergence-eval.md +130 -0
  37. package/project-template/.claude/agents/refs/reviewer-six-dimension-eval.md +6 -0
  38. package/project-template/.claude/agents/refs/ta-3d-flip-recipe.md +85 -0
  39. package/project-template/.claude/agents/refs/ta-atlas-deliverable-standard.md +67 -0
  40. package/project-template/.claude/agents/refs/ta-batch-pipeline-recipes.md +120 -0
  41. package/project-template/.claude/agents/refs/ta-image-generation-detail.md +356 -0
  42. package/project-template/.claude/agents/refs/ta-image-ops-reference.md +495 -0
  43. package/project-template/.claude/agents/refs/ta-pipeline-cookbook.md +1108 -0
  44. package/project-template/.claude/agents/refs/ta-tools-reference.md +111 -0
  45. package/project-template/.claude/agents/refs/ta-vfx-preset-catalog.md +365 -0
  46. package/project-template/.claude/agents/reviewer.md +127 -0
  47. package/project-template/.claude/agents/technical-artist.md +122 -0
  48. package/project-template/.claude/hooks/README.md +44 -0
  49. package/project-template/.claude/hooks/validate-atom-plan.mjs +224 -0
  50. package/project-template/.claude/hooks/validate-workflow-stop.mjs +343 -0
  51. package/project-template/.claude/settings.json +36 -0
  52. package/project-template/.claude/settings.local.json +4 -0
  53. package/project-template/.claude/skills/playcraft-ad-psychology/SKILL.md +182 -0
  54. package/project-template/.claude/skills/playcraft-art-style-guide/SKILL.md +123 -0
  55. package/project-template/.claude/skills/playcraft-asset-state-sheet/SKILL.md +141 -0
  56. package/project-template/.claude/skills/playcraft-audio-generation/SKILL.md +280 -0
  57. package/project-template/.claude/skills/playcraft-batch-pipeline/SKILL.md +184 -0
  58. package/project-template/.claude/skills/playcraft-build-optimizer/SKILL.md +306 -0
  59. package/project-template/.claude/skills/playcraft-image-generation/SKILL.md +279 -0
  60. package/project-template/.claude/skills/playcraft-image-generation/reference/build-sprite-sheet.template.mjs +123 -0
  61. package/project-template/.claude/skills/playcraft-image-generation/reference/compare-style.template.mjs +254 -0
  62. package/project-template/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +235 -0
  63. package/project-template/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +97 -0
  64. package/project-template/.claude/skills/playcraft-image-generation/reference/gen-edit-variants.template.mjs +118 -0
  65. package/project-template/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +137 -0
  66. package/project-template/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +397 -0
  67. package/project-template/.claude/skills/playcraft-image-generation/reference/validate-sprite-sheet.template.mjs +296 -0
  68. package/project-template/.claude/skills/playcraft-image-ops/SKILL.md +122 -0
  69. package/project-template/.claude/skills/playcraft-masking/SKILL.md +373 -0
  70. package/project-template/.claude/skills/playcraft-research/SKILL.md +212 -0
  71. package/project-template/.claude/skills/playcraft-sprite-generation/SKILL.md +423 -0
  72. package/project-template/.claude/skills/playcraft-storyboard/SKILL.md +167 -0
  73. package/project-template/.claude/skills/playcraft-style-qa/SKILL.md +270 -0
  74. package/project-template/.claude/skills/playcraft-text-rendering/SKILL.md +236 -0
  75. package/project-template/.claude/skills/playcraft-vfx-animation/SKILL.md +130 -0
  76. package/project-template/.claude/skills/playcraft-workflow/SKILL.md +485 -0
  77. package/project-template/.claude/skills/playwright-cli/SKILL.md +390 -0
  78. package/project-template/.claude/skills/playwright-cli/references/element-attributes.md +23 -0
  79. package/project-template/.claude/skills/playwright-cli/references/playwright-tests.md +39 -0
  80. package/project-template/.claude/skills/playwright-cli/references/request-mocking.md +87 -0
  81. package/project-template/.claude/skills/playwright-cli/references/running-code.md +240 -0
  82. package/project-template/.claude/skills/playwright-cli/references/session-management.md +226 -0
  83. package/project-template/.claude/skills/playwright-cli/references/spec-driven-testing.md +312 -0
  84. package/project-template/.claude/skills/playwright-cli/references/storage-state.md +275 -0
  85. package/project-template/.claude/skills/playwright-cli/references/test-generation.md +138 -0
  86. package/project-template/.claude/skills/playwright-cli/references/tracing.md +142 -0
  87. package/project-template/.claude/skills/playwright-cli/references/video-recording.md +157 -0
  88. package/project-template/.cursor/hooks.json +17 -0
  89. package/project-template/.cursor/rules/playcraft-orchestrator.mdc +137 -0
  90. package/project-template/.cursor/rules/playcraft-subagent-boundary.mdc +18 -0
  91. package/project-template/CLAUDE.md +280 -0
  92. package/project-template/assets/audio/bgm/.gitkeep +0 -0
  93. package/project-template/assets/audio/sfx/.gitkeep +0 -0
  94. package/project-template/assets/bundles/.gitkeep +0 -0
  95. package/project-template/assets/images/bg/.gitkeep +0 -0
  96. package/project-template/assets/images/reference/.gitkeep +0 -0
  97. package/project-template/assets/images/storyboard/.gitkeep +0 -0
  98. package/project-template/assets/images/tiles/.gitkeep +0 -0
  99. package/project-template/assets/images/ui/.gitkeep +0 -0
  100. package/project-template/assets/images/vfx/.gitkeep +0 -0
  101. package/project-template/assets/models/.gitkeep +0 -0
  102. package/project-template/docs/team/agent-conduct.md +121 -0
  103. package/project-template/docs/team/agent-runtime-matrix.md +62 -0
  104. package/project-template/docs/team/atom-plan-format.md +105 -0
  105. package/project-template/docs/team/collaboration.md +297 -0
  106. package/project-template/docs/team/core-model.md +50 -0
  107. package/project-template/docs/team/platform-capabilities.md +15 -0
  108. package/project-template/docs/team/workflow-changelog.md +65 -0
  109. package/project-template/docs/team/workflow-consistency-checklist.md +140 -0
  110. package/project-template/game/config/.gitkeep +0 -0
  111. package/project-template/game/gameplay/.gitkeep +0 -0
  112. package/project-template/game/scenes/.gitkeep +0 -0
  113. package/project-template/logs/.gitkeep +0 -0
  114. package/project-template/ta-workspace/logs/.gitkeep +0 -0
  115. package/project-template/ta-workspace/scripts/.gitkeep +0 -0
  116. package/project-template/ta-workspace/tmp/.gitkeep +0 -0
  117. package/project-template/templates/atom-plan.template.json +26 -0
  118. package/project-template/templates/atom-plan.template.md +108 -0
  119. package/project-template/templates/design-brief.template.md +195 -0
  120. package/project-template/templates/design-lens-checklist.reference.md +117 -0
  121. package/project-template/templates/design-methodology.md +99 -0
  122. package/project-template/templates/designer-log.template.md +114 -0
  123. package/project-template/templates/developer-log.template.md +134 -0
  124. package/project-template/templates/five-axis-framework.md +186 -0
  125. package/project-template/templates/intent-clarifications.template.md +58 -0
  126. package/project-template/templates/layout-spec.template.md +146 -0
  127. package/project-template/templates/project-state.template.md +237 -0
  128. package/project-template/templates/review-report.template.md +91 -0
  129. package/project-template/templates/style-exploration.template.md +93 -0
  130. package/project-template/templates/ta-log.template.md +343 -0
@@ -0,0 +1,73 @@
1
+ # Agent Refs — 渐进披露详细参考层(L2)
2
+
3
+ 这个目录是 **Agent 指令分层架构的第二层(L2)**,存放各 Agent 的详细工作流、脚本示例和决策参考。
4
+
5
+ ## 分层架构
6
+
7
+ | 层 | 位置 | 加载时机 | 内容 | 大小目标 |
8
+ | --------------- | --------------------------------------- | -------------------------------------- | --------------------------------------------------------------- | --------------------------- |
9
+ | **L1 常驻指令** | `.claude/agents/<role>.md` | sub-agent invoke 时全量加载 | Goals (Top3) / Agent Conduct / Identity / Workflow / Hard Rules | < 280 行(Developer < 220) |
10
+ | **L2 按需细则** | `.claude/agents/refs/<role>-<topic>.md` | sub-agent 在指定 Phase/任务前主动 read | 详细流程 / 命令示例 / 决策树 | 不限 |
11
+ | **L3 平台工具** | `.claude/skills/<tool>/SKILL.md` | sub-agent 使用工具时按 trigger 加载 | 工具用法 / 脚本模板 | 不限 |
12
+
13
+ ## 渐进披露原则
14
+
15
+ - **L1(agent .md)必须精简**:每次 sub-agent invoke 都全量加载,token 成本高
16
+ - **L2(refs/)按需读取**:agent .md 或 SKILL.md 在对应阶段显式指引,形如:`> Read refs/ta-pipeline-cookbook.md`
17
+ - **L3(SKILL)工具触发**:使用具体工具前读取对应 SKILL
18
+ - **每个 refs 文件必须有至少一处显式引用**:未被引用的文件应删除——LLM 无法自行发现未引用的文档
19
+
20
+ ## 文件清单
21
+
22
+ | 文件 | 引用来源 | 内容摘要 |
23
+ | -------------------------------------- | -------------------------------------------------------------- | ----------------------------------------------------------------------- |
24
+ | `pm-workflow-detail.md` | `agents/pm.md` | Step 1-8 详细分析流程 + 调度元信息指南 + 直接意图模式 |
25
+ | `docs/team/atom-plan-format.md` | `pm.md`, `atom-plan.template.md`, `playcraft-workflow` | atom-plan JSON 主 + MD 辅;Gate #1 validate/link 流程 |
26
+ | `designer-dimension-axis.md` | `agents/designer.md` | 2D/2.5D/Isometric/3D 维度处理指南 |
27
+ | `designer-master-composite-recipes.md` | `skills/playcraft-storyboard`, `agents/designer.md` | 游戏类型 MC prompt 配方 + 模型多样性策略 + 故障恢复 |
28
+ | `designer-art-style-catalog.md` | `skills/playcraft-art-style-guide` | 9 种美术风格完整目录(prompt/模型/管线/错误) |
29
+ | `designer-color-audio-recipes.md` | `skills/playcraft-ad-psychology`, `agents/designer.md` | 按游戏类型配色方案 + 音频情绪弧参数 |
30
+ | `designer-deliverable-spec.md` | `agents/designer.md` | designer-handoff-v2 交付规格、Handoff Pack、Phase 2 规则 |
31
+ | `designer-handoff-v2-checklist.md` | `designer-style-exploration-flow.md` Step 5 | Gate #2b:Coverage Matrix、Palette Locked、Motion Notes |
32
+ | `skills/playcraft-asset-state-sheet` | `agents/designer.md`, `designer-deliverable-spec.md` | ASR 双板规范 |
33
+ | `designer-style-exploration-flow.md` | `agents/designer.md` | Phase 1 Step 2–5:MC 生成、#2a 包、ASR 双板、#2b 收尾与 STOP |
34
+ | `developer-impl-cookbook.md` | `agents/developer.md`, `refs/developer-phase1-flow.md` | index.html 骨架 + Atlas/WebP+JSON 绑定 + CTA handler |
35
+ | `developer-phase1-flow.md` | `agents/developer.md` | `ui_pass` + `gameplay_pass` + `ui_rework` 全流程 |
36
+ | `developer-dev-handoff.md` | `agents/developer.md`, `refs/developer-impl-cookbook.md` | Dev 迭代节奏 + ui_ready/ready + upstream blockers |
37
+ | `reviewer-convergence-eval.md` | `agents/reviewer.md` | design_check + ui_diff + load_check 流程 |
38
+ | `reviewer-six-dimension-eval.md` | _(deprecated)_ | 指向 `reviewer-convergence-eval.md` |
39
+ | `ta-tools-reference.md` | `agents/technical-artist.md` | 全工具命令表(AI 生成/3D/精灵图/图像/音频) |
40
+ | `ta-pipeline-cookbook.md` | `agents/technical-artist.md` | **Step 0–2** 脚本 + TA Step 0–D pipeline + Compliance 全表 + 引用图规则 |
41
+ | `ta-atlas-deliverable-standard.md` | `agents/technical-artist.md`, `refs/ta-pipeline-cookbook.md` | WebP 运行时默认、atlas `.webp`+`.json`、分组与合规、转码示例 |
42
+ | `ta-3d-flip-recipe.md` | `agents/technical-artist.md`, `skills/playcraft-vfx-animation` | 素材重刷 + 3D 翻转动画教程 |
43
+ | `ta-image-generation-detail.md` | `skills/playcraft-image-generation` | 精灵图直出策略 + Edit 工作流 + 错误恢复 + 批量最佳实践 |
44
+ | `ta-image-ops-reference.md` | `skills/playcraft-image-ops` | `playcraft image` 全子命令 CLI 参数速查表 |
45
+ | `ta-batch-pipeline-recipes.md` | `skills/playcraft-batch-pipeline` | batch/pipeline 实用配方集 |
46
+ | `ta-vfx-preset-catalog.md` | `skills/playcraft-vfx-animation` | VFX/animate 预设完整目录 + 游戏类型配方 |
47
+
48
+ ## 按 invoke 场景反查
49
+
50
+ | Stage / 触发 | Sub-agent | 应该读的 refs(按顺序) |
51
+ | -------------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------- |
52
+ | `pm` 首次 invoke | PM | `pm-workflow-detail.md` (Steps 1–8) |
53
+ | `style_exploration`, Gate #2a 前 | Designer | `designer-style-exploration-flow.md` (Steps 2–3) + `designer-deliverable-spec.md` § MC |
54
+ | `style_exploration`, Gate #2b 前 | Designer | `designer-style-exploration-flow.md` (4–5) + `designer-handoff-v2-checklist.md` + `designer-deliverable-spec.md` |
55
+ | `production`, Wave 1 | Designer | `designer-deliverable-spec.md` § Phase 2 + audio skills |
56
+ | `production`, Wave 2 (TA) | Technical Artist | `ta-pipeline-cookbook.md` (**Step 0a** intake → Step 0 → 2) → `ta-atlas-deliverable-standard.md` |
57
+ | `pm` STOP, Gate #1 pending | Reviewer | `reviewer-convergence-eval.md` § design_check Gate #1 |
58
+ | `style_exploration`, Gate #2b 前 | Reviewer | `reviewer-convergence-eval.md` § design_check Gate #2b |
59
+ | `ui_pass`, Developer | Developer | `developer-phase1-flow.md` Part A → `developer-impl-cookbook.md` → `developer-dev-handoff.md` |
60
+ | `ui_review` | Reviewer | `reviewer-convergence-eval.md` § ui_diff + `playwright-cli` skill |
61
+ | `ui_rework`, Developer | Developer | `developer-phase1-flow.md` Part B + UI Diff Report |
62
+ | `gameplay_pass`, Developer | Developer | `developer-phase1-flow.md` Part C → `developer-impl-cookbook.md` |
63
+ | `gameplay_pass`, load_check | Reviewer | `reviewer-convergence-eval.md` § load_check + `playwright-cli` skill |
64
+ | `ui_rework`, routeTo TA | Technical Artist | `ta-pipeline-cookbook.md` (scoped fixes) + `ta-atlas-deliverable-standard.md` |
65
+ | `ui_rework`, routeTo Designer | Designer | `designer-deliverable-spec.md` + `designer-handoff-v2-checklist.md` + `designer-color-audio-recipes.md` |
66
+ | spec-gap (any) | PM | `pm-workflow-detail.md` § Atlas grouping + layout/atom patch |
67
+
68
+ ## 维护规则
69
+
70
+ 1. **不要在 refs/ 里写应该放在 agent .md 的内容**:Hard Rules、Identity、File Access 矩阵必须留在 L1
71
+ 2. **每份 refs/ 文档必须有对应的显式引用入口**:agent .md 或 SKILL.md 里有明确的 "read refs/xxx.md" 指令
72
+ 3. **未被引用的 refs 文件必须删除**:LLM 无法自行发现未引用的文档,孤立文件只是噪音
73
+ 4. **refs/ 不进入 project-state.md 文件读写矩阵**:这些是只读参考,不是产出文件
@@ -0,0 +1,533 @@
1
+ # 美术风格完整目录
2
+
3
+ > 本文件是各美术风格的深度参考。选型决策树和核心策略见 `playcraft-art-style-guide` skill。
4
+
5
+ ---
6
+
7
+ ## 1. 像素风(Pixel Art)
8
+
9
+ ### 视觉定义
10
+
11
+ - 所有图形由可见的方块像素组成,无抗锯齿平滑
12
+ - 限色板(通常 8-32 色),色彩过渡通过 dithering 而非渐变实现
13
+ - 边缘清晰锐利,"锯齿"是风格的一部分而非缺陷
14
+ - 阴影用 1-2 级色阶表现,不用连续渐变
15
+
16
+ ### 适用场景
17
+
18
+ - 怀旧/复古定位的游戏广告
19
+ - 体积敏感场景(像素图压缩后极小)
20
+ - 独立游戏/像素类游戏的广告还原
21
+ - 年轻用户中的"像素美学"潮流
22
+
23
+ ### Prompt 策略
24
+
25
+ ```
26
+ [主体描述], pixel art style, 8-bit retro game aesthetic,
27
+ limited [N]-color palette, sharp crisp pixels, no anti-aliasing,
28
+ no smooth gradients, dithering for shading, [背景处理]
29
+ ```
30
+
31
+ **关键变量**:
32
+
33
+ - 色板数:`8-color`(极简) / `16-color`(标准) / `32-color`(丰富)
34
+ - 像素密度:`low-res chunky pixels`(大像素) / `detailed pixel art`(精细)
35
+
36
+ **完整示例**:
37
+
38
+ ```
39
+ A treasure chest pixel art sprite, 8-bit retro game style,
40
+ limited 16-color palette, sharp pixels, no anti-aliasing,
41
+ warm wood brown base with golden metal trim, glowing gems inside,
42
+ on solid bright green #00FF00 background, isolated, centered
43
+ ```
44
+
45
+ ### 模型推荐
46
+
47
+ | 模型 | 适合度 | 说明 |
48
+ | ------------- | ------ | ------------------------------- |
49
+ | gpt-image-2 | 最佳 | 对"limited palette"指令理解最好 |
50
+ | nano-banana-2 | 良好 | 简单像素图快速出图 |
51
+ | gemini-flash | 一般 | 容易过度平滑,丢失像素感 |
52
+
53
+ ### TA 管线注意
54
+
55
+ - **缩放**:只用整数倍(`--scale 2` / `--scale 4`),禁止分数缩放(会引入抗锯齿模糊)
56
+ - **去背**:floodfill 即可(像素边缘清晰),tolerance 15-20
57
+ - **VFX**:可用,但建议生成后用 `playcraft image pixelate --pixel-size 4` 后处理,让 VFX 也像素化
58
+ - **sprite-sheet**:padding=0(像素紧贴),Developer 按精确像素切割
59
+
60
+ ### 常见错误
61
+
62
+ | 错误 | 原因 | 修正 |
63
+ | ---------- | ---------------------- | ----------------------------------------------------- |
64
+ | 边缘平滑了 | 模型默认 AA | 加 `no anti-aliasing, no smoothing, hard pixel edges` |
65
+ | 色彩太多 | 未限色板 | 明确 `limited 16-color palette, no gradients` |
66
+ | 尺寸太大 | 生成了高分辨率"假像素" | 用最小预设生成(`--image-size 1K`)再整数放大 |
67
+
68
+ ---
69
+
70
+ ## 2. 扁平卡通(Flat Cartoon / Vector)
71
+
72
+ ### 视觉定义
73
+
74
+ - 纯色填充、无或极少渐变
75
+ - 粗描边(2-4px),颜色统一(通常黑色或深色)
76
+ - 几何化简的形状,低细节密度
77
+ - 色彩鲜艳但数量可控(单元素 3-5 色)
78
+
79
+ ### 适用场景
80
+
81
+ - 休闲游戏广告(消除、益智)
82
+ - 全年龄受众
83
+ - 需要快速大批量生产的项目(AI 生成成功率高)
84
+ - 体积预算紧张时(纯色压缩效率高)
85
+
86
+ ### Prompt 策略
87
+
88
+ ```
89
+ [主体描述], flat 2D vector illustration style,
90
+ bold [N]px black outlines, solid color fills, no gradients,
91
+ minimal shading, clean geometric shapes, [背景处理]
92
+ ```
93
+
94
+ **关键变量**:
95
+
96
+ - 描边粗细:`2px`(精致) / `3px`(标准) / `4px`(粗犷)
97
+ - 阴影程度:`no shading`(纯扁平) / `minimal cel-shading`(略有层次)
98
+
99
+ **完整示例**:
100
+
101
+ ```
102
+ A cute orange cat character, flat 2D vector style,
103
+ bold 3px black outlines, solid color fills, no gradients,
104
+ simple geometric shapes, big round eyes, cheerful expression,
105
+ game mascot character, centered, isolated on white background
106
+ ```
107
+
108
+ ### 模型推荐
109
+
110
+ | 模型 | 适合度 | 说明 |
111
+ | --------------- | -------- | ---------------------- |
112
+ | 任意 text+image | 均可 | 扁平风格生成成功率最高 |
113
+ | gemini-flash | 速度最佳 | 快速迭代首选 |
114
+ | gpt-image-2 | 质量最佳 | 细节更精确 |
115
+
116
+ ### TA 管线注意
117
+
118
+ - **缩放**:任意缩放均可,矢量感天然耐缩放
119
+ - **去背**:floodfill 即可(描边清晰),tolerance 20-30
120
+ - **VFX**:所有预设兼容,视觉融合度高
121
+ - **批量一致性**:同一场景元素描边粗细必须统一(在 prompt 中固定 Npx)
122
+
123
+ ### 常见错误
124
+
125
+ | 错误 | 原因 | 修正 |
126
+ | -------------- | ----------------- | ---------------------------------------------------------- |
127
+ | 出现渐变阴影 | 模型默认加光影 | 加 `no gradient, no shadow, no 3D effect, completely flat` |
128
+ | 描边粗细不一致 | prompt 未指定像素 | 全批次统一写 `bold 3px black outlines` |
129
+ | 颜色过多 | 未限色 | 加 `limited color palette, 4-5 colors per element` |
130
+
131
+ ---
132
+
133
+ ## 3. Q版/Chibi
134
+
135
+ ### 视觉定义
136
+
137
+ - 2-3 头身比(头部占身体 1/2 到 1/3)
138
+ - 圆润形状,几乎无棱角
139
+ - 大眼睛、小嘴巴、夸张的表情和动作
140
+ - 手脚简化(小手掌、短粗四肢)
141
+
142
+ ### 适用场景
143
+
144
+ - 女性向/全年龄游戏
145
+ - 需要亲和力和萌感的品牌
146
+ - 角色需要丰富表情变体的场景
147
+ - 社交游戏、养成类广告
148
+
149
+ ### Prompt 策略
150
+
151
+ ```
152
+ [角色描述], chibi style, cute kawaii aesthetic,
153
+ 2.5-head proportion (head is 40% of total height),
154
+ big round eyes, small mouth, round soft body shapes,
155
+ short chubby limbs, [表情/动作], [背景处理]
156
+ ```
157
+
158
+ **完整示例**:
159
+
160
+ ```
161
+ A chibi knight character, cute kawaii style, 2.5-head proportion,
162
+ big sparkling eyes, tiny mouth, round chubby body in silver armor,
163
+ holding a small cute sword, happy determined expression,
164
+ on solid bright green #00FF00 background, full body visible, centered
165
+ ```
166
+
167
+ ### 模型推荐
168
+
169
+ 所有模型均可,Q 版是 AI 生图最擅长的风格之一。
170
+
171
+ ### TA 管线注意
172
+
173
+ - **表情变体**:同一角色换表情时,prompt 只改表情词 + 用 reference-image 锁身体
174
+ - **缩放**:任意
175
+ - **去背**:floodfill(描边清晰),tolerance 20-30
176
+
177
+ ### 常见错误
178
+
179
+ | 错误 | 原因 | 修正 |
180
+ | -------------------- | ------------ | --------------------------------------------------------- |
181
+ | 头身比不稳定 | 未明确比例 | 加 `2.5-head proportion, head is 40% of body height` |
182
+ | 风格偏写实 | 模型倾向 | 加 `NOT realistic, NOT adult proportion, keep chibi cute` |
183
+ | 同一角色不同帧不一致 | 无 reference | Phase 2 必须带 `--reference-image` |
184
+
185
+ ---
186
+
187
+ ## 4. 写实/半写实(Realistic / Semi-realistic)
188
+
189
+ ### 视觉定义
190
+
191
+ - 自然光影、环境反射、软阴影
192
+ - 真实材质纹理(木纹、金属拉丝、布料褶皱)
193
+ - 人体/物体比例接近真实
194
+ - 细节密度高,色彩自然过渡
195
+
196
+ ### 适用场景
197
+
198
+ - 高端/奢华品牌感的游戏
199
+ - 棋牌/桌游类(仿真桌面感)
200
+ - 目标受众是成年用户
201
+ - 需要"触得到"质感的元素(金币、宝箱、道具)
202
+
203
+ ### Prompt 策略
204
+
205
+ ```
206
+ [主体描述], photorealistic / semi-realistic style,
207
+ detailed textures, natural lighting from [方向],
208
+ soft shadows, [材质描述: brushed metal / polished wood / woven fabric],
209
+ high detail, professional 3D render quality, [背景处理]
210
+ ```
211
+
212
+ **关键变量**:
213
+
214
+ - 写实程度:`photorealistic`(全写实) / `semi-realistic, stylized`(半写实)
215
+ - 光照:`studio lighting` / `warm ambient` / `dramatic rim light`
216
+
217
+ **完整示例**:
218
+
219
+ ```
220
+ A stack of realistic gold coins, semi-realistic 3D render style,
221
+ detailed metallic texture with subtle scratches, warm studio lighting from top-left,
222
+ soft shadows beneath, slight depth of field blur on edges,
223
+ on solid bright green #00FF00 background, isolated, centered
224
+ ```
225
+
226
+ ### 模型推荐
227
+
228
+ | 模型 | 适合度 | 说明 |
229
+ | ------------ | ------ | ------------------------------- |
230
+ | gpt-image-2 | 必选 | 写实风只有 gpt-image-2 质量达标 |
231
+ | gemini-flash | 不推荐 | 细节不足,偏卡通 |
232
+
233
+ ### TA 管线注意
234
+
235
+ - **去背**:必须用 AI 去背(`--method ai`),floodfill 处理不了复杂光影边缘
236
+ - **缩放**:只能缩小不能放大(放大会暴露细节不足),原图至少生成 1024px+
237
+ - **reference-image**:写实风格漂移最严重,必须使用 reference-image + 限制 prompt 中的风格词数量
238
+ - **VFX**:慎用卡通预设(explosion_small 等),可用 glow / impact_ring(较中性)
239
+
240
+ ### 常见错误
241
+
242
+ | 错误 | 原因 | 修正 |
243
+ | ---------------- | ------------ | -------------------------------------------------- |
244
+ | 质感塑料感 | 模型不够好 | 只用 gpt-image-2 + 加材质细节描述 |
245
+ | 风格跨元素不一致 | 写实风差异大 | 全批次用同一张 reference + 相同光照描述 |
246
+ | 文件体积爆炸 | 写实细节多 | 生成后压缩,build 阶段处理,不要在生产阶段妥协质量 |
247
+
248
+ ---
249
+
250
+ ## 5. 中国传统风
251
+
252
+ ### 视觉定义
253
+
254
+ - 水墨笔触感(飞白、浓淡变化)
255
+ - 留白美学(不填满画面)
256
+ - 金色/红色/深色为主色调
257
+ - 书法元素、印章、卷轴、祥云等传统纹饰
258
+ - 克制的色彩(不过度饱和)
259
+
260
+ ### 适用场景
261
+
262
+ - 麻将/棋牌类游戏
263
+ - 面向中国市场的广告
264
+ - 东方仙侠/武侠题材
265
+ - 需要"高雅"感的品牌定位
266
+
267
+ ### Prompt 策略
268
+
269
+ ```
270
+ [主体描述], Chinese traditional ink painting style,
271
+ elegant brush strokes, subtle ink wash gradients,
272
+ gold and red accents, [留白描述], classical aesthetic,
273
+ [装饰元素: clouds / scroll / seal stamp], [背景处理]
274
+ ```
275
+
276
+ **完整示例**:
277
+
278
+ ```
279
+ Mahjong tile set on dark green felt table,
280
+ Chinese traditional aesthetic, tiles with cream-white face,
281
+ brushed brass metallic frame, traditional Kaiti calligraphy for characters,
282
+ warm amber lighting, elegant and premium, ink painting background elements,
283
+ gold decorative border patterns
284
+ ```
285
+
286
+ ### 模型推荐
287
+
288
+ | 模型 | 适合度 | 说明 |
289
+ | ------------- | ------ | ---------------------------------- |
290
+ | gpt-image-2 | 最佳 | 中文字符渲染最准确,文化细节理解好 |
291
+ | hy-image-v3.0 | 良好 | 亚洲审美偏向,角色设计好 |
292
+
293
+ ### TA 管线注意
294
+
295
+ - **文字**:中文字符必须用 gpt-image-2(其他模型笔画容易错)
296
+ - **去背**:水墨渐变边缘需 tolerance 30-40 或 AI 去背
297
+ - **VFX**:glow(金色光晕)和 sparkle(金色闪光)最搭配
298
+ - **色彩**:主色调克制(深色 + 金色 + 红色),避免高饱和霓虹色
299
+
300
+ ### 常见错误
301
+
302
+ | 错误 | 原因 | 修正 |
303
+ | ------------ | ------------------ | ------------------------------------------------------------- |
304
+ | 汉字笔画错误 | 模型对中文理解不足 | 只用 gpt-image-2 + 指定"correctly written Chinese characters" |
305
+ | 风格偏日式 | 未区分中日美学 | 加 `Chinese traditional, NOT Japanese, NOT anime` |
306
+ | 色彩过于鲜艳 | 模型偏好高饱和 | 加 `muted elegant tones, subdued colors, ink wash aesthetic` |
307
+
308
+ ---
309
+
310
+ ## 6. 赛博朋克/科技风(Cyberpunk / Tech)
311
+
312
+ ### 视觉定义
313
+
314
+ - 深色背景(黑/深蓝/深紫)+ 霓虹发光线条
315
+ - 几何线条、电路图案、数据可视化元素
316
+ - 主发光色:青色(cyan) / 品红(magenta) / 电蓝(electric blue)
317
+ - 高对比:暗底 + 亮光,中间调极少
318
+ - 故障感(glitch)、全息投影(hologram)、雨天反射
319
+
320
+ ### 适用场景
321
+
322
+ - 动作/射击类游戏
323
+ - 科技公司品牌广告
324
+ - 目标用户:年轻男性 / 科技爱好者
325
+ - 需要"未来感"和"酷"的定位
326
+
327
+ ### Prompt 策略
328
+
329
+ ```
330
+ [主体描述], cyberpunk style, neon [颜色] glow,
331
+ dark [背景色] background, holographic elements,
332
+ circuit board patterns, high contrast, futuristic,
333
+ [发光效果描述], [背景处理]
334
+ ```
335
+
336
+ **完整示例**:
337
+
338
+ ```
339
+ A futuristic pistol weapon icon, cyberpunk style,
340
+ dark navy background, glowing cyan neon outlines,
341
+ holographic data readout overlay, circuit pattern details,
342
+ high contrast, electric blue and magenta accent lights,
343
+ centered, isolated, game UI asset
344
+ ```
345
+
346
+ ### 模型推荐
347
+
348
+ | 模型 | 适合度 | 说明 |
349
+ | ------------ | ------ | -------------------- |
350
+ | gpt-image-2 | 最佳 | 光效细节丰富 |
351
+ | gemini-flash | 良好 | 色彩鲜艳,霓虹效果好 |
352
+
353
+ ### TA 管线注意
354
+
355
+ - **去背**:发光溢出到背景——trim 时保留发光边缘(threshold 低一些 5-10)
356
+ - **VFX**:glow 和 starburst 非常搭配,tint 用 cyan/magenta
357
+ - **合成**:overlay 时注意发光层的 alpha 混合——不要硬切边
358
+ - **体积**:发光渐变会增加 PNG 体积,build 时转 WebP 压缩效果好
359
+
360
+ ### 常见错误
361
+
362
+ | 错误 | 原因 | 修正 |
363
+ | ---------- | ------------ | ---------------------------------------------------------- |
364
+ | 发光过度 | 霓虹占比太高 | 加 `subtle neon accents, not overwhelming, dark dominates` |
365
+ | 背景不够暗 | 模型偏亮 | 明确 `very dark background #0A0A1A` |
366
+ | 缺乏深度 | 太扁平 | 加 `depth of field, atmospheric haze, layered lighting` |
367
+
368
+ ---
369
+
370
+ ## 7. 科幻风(Sci-fi / Space)
371
+
372
+ ### 视觉定义
373
+
374
+ - 金属/合金材质表面(拉丝钢、钛合金、碳纤维)
375
+ - 星空/太空环境光
376
+ - 全息 UI、数据面板、圆弧形 HUD
377
+ - 冷色调为主(蓝、银、白),暖色作点缀(引擎橙焰)
378
+ - 干净、精密、工业设计感
379
+
380
+ ### 适用场景
381
+
382
+ - 太空题材游戏
383
+ - 机甲/飞船类
384
+ - 科技产品联名广告
385
+ - 需要"高级"和"精密"感的定位
386
+
387
+ ### Prompt 策略
388
+
389
+ ```
390
+ [主体描述], sci-fi style, metallic surfaces,
391
+ space / futuristic environment, cold blue lighting,
392
+ holographic UI elements, clean industrial design,
393
+ [材质: brushed titanium / carbon fiber / polished chrome], [背景处理]
394
+ ```
395
+
396
+ **完整示例**:
397
+
398
+ ```
399
+ A sci-fi spaceship cockpit dashboard, futuristic style,
400
+ holographic circular UI displays with data readouts,
401
+ brushed titanium frame, cold blue ambient lighting,
402
+ stars visible through viewport, clean precise industrial design,
403
+ high detail, game background asset
404
+ ```
405
+
406
+ ### TA 管线注意
407
+
408
+ - **材质一致性**:金属质感需要 reference-image 严格锁定,否则每次生成材质感不同
409
+ - **VFX**:glow(冷蓝)和 impact_ring 适合,避免 confetti(太欢乐)
410
+ - **3D**:如有 3D 元素,用 `generate-3d` + `apply-texture` 比纯 2D 生成更可控
411
+
412
+ ---
413
+
414
+ ## 8. 奇幻/魔法(Fantasy / Magic)
415
+
416
+ ### 视觉定义
417
+
418
+ - 发光粒子、魔法光芒、以太能量
419
+ - 饱和色彩(紫色/金色/翠绿)
420
+ - 神秘氛围(雾气、光束、星尘)
421
+ - 有机形状 + 几何魔法阵的结合
422
+ - 光源来自魔法本身(非自然光)
423
+
424
+ ### 适用场景
425
+
426
+ - RPG/冒险类游戏
427
+ - 卡牌收集类
428
+ - 需要"史诗感"的广告
429
+ - 西方奇幻受众
430
+
431
+ ### Prompt 策略
432
+
433
+ ```
434
+ [主体描述], fantasy art style, magical atmosphere,
435
+ ethereal glow, mystical [颜色] energy particles,
436
+ rich saturated colors, magical light source from [位置],
437
+ [魔法元素: runes / magic circle / floating crystals], [背景处理]
438
+ ```
439
+
440
+ **完整示例**:
441
+
442
+ ```
443
+ A magical staff weapon, fantasy RPG art style,
444
+ glowing purple crystal on top emitting ethereal particles,
445
+ ornate golden twisted wood shaft, mystical rune engravings,
446
+ magical purple and gold light emanating from crystal,
447
+ on solid bright green #00FF00 background, centered, isolated
448
+ ```
449
+
450
+ ### TA 管线注意
451
+
452
+ - **VFX**:sparkle + glow + starburst 是三件套,tint 为紫色/金色
453
+ - **去背**:魔法粒子半透明——用 AI 去背 + 保留 alpha 通道
454
+ - **合成**:魔法光效通过 overlay 叠加(additive blend 效果),不要硬切
455
+
456
+ ---
457
+
458
+ ## 9. 水彩/手绘(Watercolor / Hand-drawn)
459
+
460
+ ### 视觉定义
461
+
462
+ - 纸质纹理底纹(可见纸张颗粒)
463
+ - 颜色渗透感(边缘不锐利,色彩互相渗透)
464
+ - 笔触可见(不是光滑数字绘制)
465
+ - 柔和过渡、不规则边缘
466
+ - "留白"即纸面原色
467
+
468
+ ### 适用场景
469
+
470
+ - 治愈系/清新风格游戏
471
+ - 女性向模拟经营/养成类
472
+ - 绘本/故事类广告
473
+ - 需要"温暖"和"手作感"的定位
474
+
475
+ ### Prompt 策略
476
+
477
+ ```
478
+ [主体描述], watercolor painting style, soft wet edges,
479
+ visible paper texture, transparent color washes,
480
+ artistic hand-painted feel, [笔触描述],
481
+ gentle color blending, [背景处理]
482
+ ```
483
+
484
+ **完整示例**:
485
+
486
+ ```
487
+ A cozy cottage house, watercolor painting style,
488
+ soft wet edges, warm colors bleeding into each other,
489
+ visible paper texture background, loose brush strokes,
490
+ delicate botanical details around the house,
491
+ artistic hand-painted illustration, gentle lighting
492
+ ```
493
+
494
+ ### TA 管线注意
495
+
496
+ - **去背**:最难的风格——边缘极不规则,必须用 AI 去背(`--method ai`)
497
+ - **trim**:threshold 设高(30-40),否则水彩渐变边会被误切
498
+ - **VFX**:慎用——卡通 VFX 会破坏手绘感。如需动效,建议用 animate `float`/`swing`(柔和运动)
499
+ - **缩放**:缩小后纸质纹理可能消失,建议原始生成尺寸即为最终使用尺寸
500
+ - **批量一致性**:水彩风格漂移最严重——reference-image 必须 + prompt 完全复用
501
+
502
+ ### 常见错误
503
+
504
+ | 错误 | 原因 | 修正 |
505
+ | -------------- | ------------ | ------------------------------------------------------ |
506
+ | 边缘太锐利 | 模型偏数字风 | 加 `soft wet edges, bleeding colors, no hard outlines` |
507
+ | 缺少纸张质感 | 未指定 | 加 `visible paper texture, rough paper grain` |
508
+ | 颜色过于饱和 | 模型偏好鲜艳 | 加 `muted watercolor tones, diluted pigments, pastel` |
509
+ | 风格跨帧不统一 | 水彩随机性大 | 多张 reference-image + 完全相同的 prompt |
510
+
511
+ ---
512
+
513
+ ## 风格混搭规则
514
+
515
+ 某些场景需要混合两种风格(如"科幻 + 中国风"),遵循以下原则:
516
+
517
+ 1. **确定主风格(80%) + 副风格(20%)**:prompt 中主风格关键词 3-4 个,副风格 1-2 个
518
+ 2. **元素分配**:主场景用主风格,装饰/点缀用副风格(如:科幻底 + 中国风纹饰)
519
+ 3. **避免冲突**:不要混合写实 + 像素(底层矛盾)、不要混合水彩 + 赛博朋克(美学冲突)
520
+ 4. **在 design-brief 中明确标注**:`StyleDirection: 主=科幻; 副=中国传统(金色纹饰元素)`
521
+
522
+ **可混搭组合**:
523
+
524
+ - 中国风 + 写实(高端麻将/棋牌)
525
+ - 科幻 + 赛博朋克(暗黑科技)
526
+ - 扁平卡通 + Q版(休闲萌系)
527
+ - 奇幻 + 水彩(绘本冒险)
528
+
529
+ **避免混搭**:
530
+
531
+ - 像素 + 写实(根本矛盾)
532
+ - 水彩 + 赛博朋克(美学对立)
533
+ - Q版 + 写实(比例冲突)