threejs-qa-release
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThree.js QA Release
Three.js QA发布流程
Purpose
目标
Prove the game works as a player encounters it, then prepare a shippable browser build with known risks.
证明游戏在玩家实际体验时能正常运行,随后准备一个带有已知风险的可发布浏览器构建版本。
QA Workflow
QA工作流
Load as the first action before broad QA, mobile verification, bug reporting, production preview, static-hosting checks, or release preparation. Track it in a reference ledger with yes/no, path, and failure reason. Do not mark QA/release complete while this reference is skipped for QA or release work.
references/qa-release-checklists.mdLoad for screenshot/canvas verification, for player-loop QA, and for production release checks. Load only when the user asks for reusable QA/release prompts or a task template.
references/checklists/visual-verification.mdreferences/checklists/playtest-qa.mdreferences/checklists/release.mdreferences/prompt-templates.mdLoad and when the game warrants screenshot baselines, visual regression testing, release-ready visual evidence, UI/generated-asset regression protection, or premium visual QA. If a harness is not warranted, report the skip reason.
references/visual-test-harness.mdreferences/checklists/visual-test-harness.mdLoad and for release-ready gameplay claims, difficulty/fairness verification, or when the playable loop has never been driven by scripted input. Report the bot playtest decision as added/extended/skipped with reason.
references/playtest-bot.mdreferences/checklists/bot-playtest.md- Install dependencies if needed.
- Run build/typecheck.
- Start dev or preview server.
- Open browser target.
- Capture console/page/network errors.
- Verify nonblank canvas pixels.
- Capture desktop and mobile screenshots.
- Trigger main input, objective progression, fail/retry, and recent risky paths.
- Check HUD text fit, safe areas, touch targets, responsive layout.
- Decide whether to add or extend a visual test harness. For premium/release UI or generated-asset work, prefer a harness unless determinism is a real blocker.
10b. Decide whether to run the bot playtest (in scaffold games). For release-ready gameplay claims, run it and report the metrics JSON.
tests/bot-playtest.template.ts - If audio changed, verify user-gesture unlock, SFX triggers, ambience loop start/stop, pause/restart cleanup, mute/volume behavior, and decode/load errors.
- Record artifacts and issues.
在开展全面QA、移动端验证、Bug上报、生产预览、静态托管检查或发布准备工作前,首先加载文件。在参考台账中记录完成情况(是/否)、文件路径及失败原因。若跳过该参考文件开展QA或发布工作,不得标记QA/发布完成。
references/qa-release-checklists.md加载用于截图/画布验证,加载用于玩家循环QA,加载用于生产发布检查。仅当用户要求可复用的QA/发布提示词或任务模板时,才加载。
references/checklists/visual-verification.mdreferences/checklists/playtest-qa.mdreferences/checklists/release.mdreferences/prompt-templates.md当游戏需要截图基准、视觉回归测试、可发布的视觉证据、UI/生成资产回归保护或高级视觉QA时,加载和。若无需使用该工具,需报告跳过原因。
references/visual-test-harness.mdreferences/checklists/visual-test-harness.md当需要验证可发布的游戏玩法声明、难度/公平性,或游戏可玩循环从未由脚本输入驱动时,加载和。需报告机器人测试的决策(新增/扩展/跳过)及原因。
references/playtest-bot.mdreferences/checklists/bot-playtest.md- 如有需要,安装依赖。
- 运行构建/类型检查。
- 启动开发或预览服务器。
- 打开目标浏览器。
- 捕获控制台/页面/网络错误。
- 验证画布像素非空白。
- 捕获桌面端和移动端截图。
- 触发主要输入、目标进度、失败/重试以及近期存在风险的路径。
- 检查HUD文本适配、安全区域、触摸目标、响应式布局。
- 决定是否添加或扩展视觉测试工具。对于高级/发布级UI或生成资产工作,除非确定性是真正的障碍,否则优先使用该工具。
10b. 决定是否运行机器人测试(脚手架游戏中的)。对于可发布的游戏玩法声明,需运行该测试并上报指标JSON。
tests/bot-playtest.template.ts - 若音频有变更,验证用户手势解锁、音效触发、氛围循环启动/停止、暂停/重启清理、静音/音量调节行为,以及解码/加载错误。
- 记录工件和问题。
Packaged Canvas Inspector
打包画布检查器
Use the bundled inspector when the target project does not already include one:
bash
node <this-skill-dir>/scripts/inspect-threejs-canvas.mjs --url http://127.0.0.1:5188For mobile emulation, add . Add (and optionally ) to drive the game's before capture, so every named state (active-play, fail, stress) can be measured deterministically without live play — outputs are suffixed per state. Generated games from the packaged scaffold also include their own and .
--mobile--state <name>--seed <n>__THREE_GAME_TEST_HOOKS__scripts/inspect-threejs-canvas.mjsnpm run inspect:canvasThe inspector JSON includes a block (color entropy, edge density, luminance contrast, dominant-color share) and a comparison against starting-point tier budgets. Cite these as the Measured Evidence in the visual scorecard (); over-budget rows need a documented tradeoff, and blank-canvas or error conditions still exit nonzero.
metricsrenderBudgetthreejs-aaa-graphics-builder/references/visual-scorecard.md当目标项目未内置检查器时,使用捆绑的检查器:
bash
node <this-skill-dir>/scripts/inspect-threejs-canvas.mjs --url http://127.0.0.1:5188如需移动端模拟,添加参数。添加(可选搭配)以在捕获前驱动游戏的,这样无需实时游玩即可确定性地测量每个命名状态(活跃游玩、失败、压力测试)——输出结果会按状态添加后缀。从打包脚手架生成的游戏也包含各自的和命令。
--mobile--state <name>--seed <n>__THREE_GAME_TEST_HOOKS__scripts/inspect-threejs-canvas.mjsnpm run inspect:canvas检查器的JSON包含一个块(颜色熵、边缘密度、亮度对比度、主色调占比),以及与起始层级预算对比的数据。将这些数据作为视觉评分卡()中的实测证据;超出预算的行需要记录权衡方案,空白画布或错误情况仍会以非零状态退出。
metricsrenderBudgetthreejs-aaa-graphics-builder/references/visual-scorecard.mdRelease Workflow
发布工作流
- Inspect package scripts, Vite config, base path, public/assets.
- Gate debug UI/logging/test helpers.
- Run production build and preview/static server.
- Verify built output desktop/mobile.
- Review bundle and large assets.
- Document deploy command, host assumptions, and residual risks.
- 检查包脚本、Vite配置、基础路径、public/assets资源。
- 启用调试UI/日志/测试辅助工具的门控。
- 运行生产构建并启动预览/静态服务器。
- 验证构建输出在桌面端/移动端的表现。
- 审查包文件和大型资产。
- 记录部署命令、主机假设及剩余风险。
Final Response
最终响应
Lead with pass/fail. Include the reference ledger, QA matrix/checklist result, commands, URL, controls, screenshots/artifacts, issues found/fixed, deployment notes, and risks.
When visual baselines are in scope, include the harness decision, states covered, update/compare commands, artifact paths, thresholds/masks, and flake risks.
When the bot playtest ran, include its metrics JSON (frames, score progression, distance, softlock windows, seed) and the added/extended/skipped decision.
首先说明通过/失败结果。包含参考台账、QA矩阵/检查清单结果、命令、URL、控件、截图/工件、发现/修复的问题、部署说明及风险。
当视觉基准在范围内时,需包含工具决策、覆盖的状态、更新/对比命令、工件路径、阈值/遮罩以及波动风险。
当运行了机器人测试时,需包含其指标JSON(帧数、分数进度、距离、软锁窗口、随机种子)以及新增/扩展/跳过的决策。