Threejs Qa Release

majidmanzarpour/threejs-game-skills/skills/threejs-qa-release

作者 majidmanzarpour8286774b22a2无许可证2.4K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库10天前更新

Verify and release Three.js browser games: playtest QA, automated bot playtests, mobile and responsive checks, production builds, static-hosting base paths, debug gating, bundle review, screenshots, visual regression baselines, canvas-pixel inspection with measured metrics, and release risk reports.

AI 生成的概览

面向 Three.js 浏览器游戏的 QA 与发布流程,涵盖试玩测试、画布检查、视觉校验和生产构建。

功能
指导对 Three.js 浏览器游戏执行 QA 流程:安装依赖、构建、启动开发或预览服务器,捕获控制台、页面和网络错误,并确认画布像素非空白。它在桌面和移动视口上捕获实际游玩画面,验证输入、目标推进、失败与重试,检查 HUD 适配和触控目标,并运行带指标的机器人试玩测试。发布流程会关闭调试界面和日志、执行生产构建、在静态服务器上预览、审查打包产物,并记录部署命令与残余风险。它附带一个可执行的画布检查脚本,按声明的视口与状态组合截图并输出像素指标和报告路径。
适用场景
适用于在发布前验证 Three.js 浏览器游戏,包括玩法、移动端与响应式表现、视觉回归以及生产构建就绪度。也适合范围较小的改动,只需检查受影响的行为、状态和视口。
运行要求
需要 Node.js、已安装的游戏项目 npm 依赖、用于截图的浏览器目标,以及开发或预览服务器。画布检查脚本需在游戏项目中运行,并提供声明视口与状态组合的清单文件;脚手架游戏以 npm 脚本形式自带副本。该技能附带可执行脚本和参考文档。

Three.js QA Release

Prove the game works the way a player will meet it, then prepare a shippable build with its known risks.

Resolve <this-skill-dir> and local references from the actual loaded skill file; resolve sibling skills beside it before using runner-discovered alternatives. Run the inspector from the game project with its npm dependencies installed.

References

FileRead it when
references/release-checks.mdmobile verification, production release, performance evidence, or release-failure traps
references/visual-test-harness.mdscreenshot baselines, visual regression, UI or generated-asset regression protection
references/playtest-bot.mdrelease-ready gameplay claims, difficulty and fairness checks, or a loop never driven by scripted input

QA pass

For a complete game use the full pass below. For narrow edits select checks covering the affected behavior, states, and target viewports. Reuse valid specialist evidence from the same code revision; the lead owns one consolidated pass. Repeat only after relevant changes, failures, or unresolved concerns. An explicit desktop-only scope does not require adding mobile gameplay.

  1. Install dependencies, run build and typecheck, start the dev or preview server.
  2. Open the browser target and capture console, page, and network errors.
  3. Confirm non-blank, visually varied canvas pixels.
  4. Capture active play on each target viewport (desktop and mobile by default), not just the title screen.
  5. Exercise the main input, objective progression, fail and retry, and whatever changed most recently.
  6. Check HUD text fit, safe areas, touch targets, and responsive layout.
  7. When audio changed: user-gesture unlock, SFX triggers, ambience loop start and stop, pause and restart cleanup, mute and volume, decode errors.
  8. Decide on a visual test harness. For premium, release-ready, UI-heavy, or generated-asset work a harness is usually worth it; say so either way.
  9. Run the bot playtest (tests/bot-playtest.template.ts in scaffold games) for release-ready gameplay claims and report its metrics JSON.
  10. When animation changed, capture a short unpaused sequence and inspect locomotion, clip transitions, feet, rig deformation, and attack/contact timing using references/visual-test-harness.md.

Screenshots alone do not cover gameplay changes.

Canvas inspector

bash
node <this-skill-dir>/scripts/inspect-threejs-canvas.mjs --manifest artifacts/evidence.json --url http://127.0.0.1:5188 --seed 42

Declare the pass's viewport/state pairs in artifacts/evidence.json first, with a fresh run ID; the format and the test-hook contract are in the director's references/evidence-manifest.md. One command captures every declared pair in a single browser and prints one line per capture: PASS/FAIL, GPU, pixel metrics, over-budget rows, error counts, and the report and screenshot paths. Open a report file only when its line needs more detail. Include all requested states; do not remove a failing slot to make the manifest pass. For a one-off check, --state <name> [--mobile] captures a single view, and omitting --state checks only the current view. Scaffold games have their own copy as npm run inspect:canvas.

The metrics are the Measured Evidence for the visual scorecard in threejs-aaa-graphics-builder/references/visual-scorecard.md. Over-budget rows need a documented tradeoff, and blank-canvas or error conditions exit non-zero.

Release pass

Inspect package scripts, Vite config, base path, and public assets → gate debug UI, logging, and test helpers → run the production build and preview it on a static server → check the built output on target viewports → review bundle and large assets → document the deploy command, host assumptions, and residual risks.

Report

Lead with the result and unresolved defects. Put the detailed commands, manifest, captures, motion evidence, controls exercised, issues fixed, and deployment notes in the project's evidence report. Include the harness decision and bot metrics when in scope. Return the artifact path to the lead; passing pixels and acknowledged state hooks do not establish aesthetic quality or successful gameplay by themselves.

来源与署名

来源:majidmanzarpour/threejs-game-skills位于skills/threejs-qa-release提交8286774

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架