SKILL

develop-web-game

适用于 Codex 构建或迭代 Web 游戏(HTML/JS),并需要可靠开发与测试循环的情况:实施小改动,运行基于 Playwright 的测试脚本,使用短输入并有意暂停,检查截图或文本,并通过 render_game_to_text 审查控制台错误。

译文已校对
查看英文原文

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with render_game_to_text.

适用对象:设计与内容创作。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Develop Web Game
  • Skill paths (set once)
  • Workflow
  • Test Checklist
  • Test Artifacts to Review
  • Core Game Guidelines
  • Canvas + Layout
  • Visuals

Build games in small steps and validate every change. Treat each iteration as: implement → act → pause → observe → adjust. User-scoped skills install under $CODEXHOME/skills (default: /.codex/skills). 1. Pick a goal. Define a single feature or behavior to implement. 2. Implement small. Make the smallest change that moves the game forward. 3. Ensure integration points. Provide a single canvas and window.rendergametotext so the test loop can read state. 4. Add window.advanceTime(ms). Strongly prefer a deterministic step hook so the Playwright script can advance frames reliably; without it, automated tests can be flaky. 5. Initialize progress.md. If progress.md exists, read it first and confirm the original user prompt is recorded at the top (prefix with Original prompt:). Also note any TODOs and suggestions left by the previous agent. If missing, create it and write Original prompt: at the top before appending updates. 6. Verify Playwright availability. Ensure playwright is available (local dependency or global install). If unsure, check npx first. 7. Run the Playwright test script. You must run $WEBGAMECLIENT after each meaningful change; do not invent a new client unless required.

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
davila7/claude-code-templates
源文件
cli-tool/components/skills/creative-design/develop-web-game/SKILL.md
固定版本
21be197f100a12b8d0dd9a211cc244c8179f84d3
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:43.773Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。