Three.js Game Skills
Nine Agent Skills for Codex and Claude Code that build playable Three.js browser games, with a director skill, a Vite scaffold and Playwright QA.
- 许可证
- MIT
- 出品
- GameSkill 出品
我们测过
在 Three.js 0.184 + Vite 8 上通过 23/23 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
AI 学会做什么
Build, upgrade and finish Three.js browser games, with a director skill that routes to sibling skills for gameplay, graphics, UI, assets, audio, debugging and release.
什么时候触发
When you name threejs-game-director in a prompt (/threejs-game-director in Claude Code, $threejs-game-director in Codex) for any request to build, upgrade, polish or ship a Three.js game.
示例结果
A playable Vite/TypeScript/Three.js game in your project, checked with a production build, browser screenshots and desktop and mobile viewports.
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 8286774b22a2,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 majidmanzarpour/threejs-game-skills(作者 majidmanzarpour),协议 MIT。ZIP 保留协议文件(LICENSE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 从 threejs-game-director 开始,按任务交给对应的子 skill / Start from threejs-game-director and hand work to the matching sub-skill
- 新游戏用 create_threejs_game.py 生成脚手架,再 npm install / Start a new game with create_threejs_game.py, then npm install
- 改完画面先跑画布检查器,空白画布或超预算会直接失败 / Run the canvas inspector after visual changes; a blank canvas or a budget overrun fails
- 软件渲染下的帧率不能当真 / Frame rates measured on software rendering do not count
- 付费生成(Tripo、Gemini、ElevenLabs)先查密钥,不把密钥写进代码 / Check keys before paid generation (Tripo, Gemini, ElevenLabs) and never put keys in code
中文指南
这个 skill 做什么
做 Three.js 网页游戏的 9 个 skill:总导演(分派任务)、玩法系统(含 Vite + TypeScript 脚手架)、画面升级、游戏 UI、调试和性能分析、测试和发布(含画布检查器),以及调用 Tripo、Gemini、ElevenLabs 生成 3D 模型、图片、音频的三个工具。
什么时候用
- 用 Three.js 从零做一个网页游戏
- 画布空白、画面出错或性能差
- 上线前做测试、截图和生产构建
怎么装
用本页的命令把 ZIP 直接解压进 agent 的 skills 文件夹(Claude Code 是 .claude/skills/,Codex 是 .agents/skills/,Cursor 是 .cursor/skills/),9 个 skill 文件夹会各自落在下一层,另有一个 threejs-game-skills/ 放合集的 LICENSE、ATTRIBUTION.md 和我们的测试 gameskill/,重启 agent 即可。装过 1.0.0(skill 套在 threejs-game-skills/ 里面)的,先删掉旧的 threejs-game-skills/ 再装。threejs-game-director 是入口。生成模型、图片、音频要自己准备 TRIPO_API_KEY、GEMINI_API_KEY、ELEVENLABS_API_KEY。
最小示例
gameskill/examples/tests/run_tests.py 用 skill 自带的 create_threejs_game.py 生成游戏,npm install、npm run build,跑脚手架自带的 Playwright 测试,再启动游戏用 qa-release 的画布检查器检查。本页截图就是检查器截下的画面。
我们怎么测的
总分 23/23,运行部分 12 项全部通过:脚手架生成正常,非空文件夹不加 --force 会拒绝;npm install 后 tsc 和 vite 构建通过(打包约 552 KB);脚手架自带的 2 个 Playwright 测试通过;画布检查器判定画面不是空白、没有超预算,skill 目录里那份检查器结论一样;三个付费生成工具在没有密钥时都给出清楚的提示并退出,不报 Traceback、不联网;检查密钥的脚本只显示 MISSING,不打印密钥。没测的:付费生成本身(要密钥和费用)、画面升级和 UI 设计这类要人判断的部分。发现两处小问题:脚手架带的 package-lock.json 和 package.json 不同步,npm ci 会失败(按脚本提示用 npm install 没问题);1280×720 下左上角的 RELAYS 计数「0 / 8」被挤成了竖排。这是软件渲染(SwiftShader),检查器自己也提示这种情况下帧率不可信。合集里有 4 个 skill(audio-generator、debug-profiler、game-ui-designer、qa-release)的 description 原来没写什么时候用,我们各在开头补了一句 “Use when …”,作者原句保留;这是唯一的改动,写在 ZIP 里的 CHANGES.md 和 gameskill/patches.json。结果在 gameskill/test-report.json。
搭配
pixijs-skills:网页 2D 渲染img2threejs:用图片做 Three.js 资产performance-optimization:性能预算
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/threejs-game-skills/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/threejs-game-skills.zip -o /tmp/gameskill-threejs-game-skills.zip
unzip -oq /tmp/gameskill-threejs-game-skills.zip -d .claude/skills
rm /tmp/gameskill-threejs-game-skills.zip怎么用
Use threejs-game-director to build a premium futuristic tower defense game from scratch.
Automatically use the relevant gameplay, graphics, UI, asset generation, audio, debug,
and QA skills. Build a playable loop first, then iterate until it passes browser,
mobile, visual, UI, performance, and release checks.Use threejs-game-director to upgrade this Three.js game from prototype visuals to
premium browser-game quality. Use the AAA graphics, UI, image, 3D, audio, debug,
and QA skills as needed. Include the visual scorecard and evidence from active-play
screenshots.Use threejs-game-director to debug and finish this Three.js game. First get it running,
then improve gameplay feel, UI, graphics, performance, and release verification until
the remaining risks are explicit.预期结果(依据作者文档)
Per the README, the agent loads the director first, pulls in sibling skills as needed, creates or updates the game code and runs checks such as npm run build, a local browser run, Playwright screenshots and canvas pixel checks. Premium claims should rest on an active playable loop and a filled visual scorecard, not a static scene.
包含内容
- threejs-game-director, which sends each part of the work to the right specialist skill
- Skills for gameplay systems, AAA-style graphics, game UI, debugging and profiling, and QA/release
- Optional generator skills for Tripo 3D models, Gemini images and ElevenLabs audio
- A Vite + TypeScript + Three.js scaffold with a seeded RNG, test hooks and Playwright templates
适合
- Building a browser game from an empty folder with one prompt
- Polishing an existing Three.js game with verification built in
不适合
- Native engines such as Unity, Godot or Unreal
试试这条提示词
Use threejs-game-director to build a small third-person arena game with mobile controls.概述
Three.js Game Skills is a pack of nine agent skills for making browser games with Three.js. You install all of them and talk to one, threejs-game-director. The director keeps your scope and art direction and passes gameplay, graphics, UI, assets, audio and QA to the specialist skills.
The agent also checks its own work. Generated games come with deterministic test hooks, a seeded RNG and Playwright templates for smoke tests, visual-regression baselines and bot playtests. threejs-qa-release adds canvas-pixel checks, mobile viewports and a production build before the agent reports a game as done. Small changes get lighter checks: a HUD fix is not run through a full release pass.
To turn a reference image into a code-only model for one of these games, see img2threejs.
环境要求
- Codex or Claude Code
- Optional: TRIPO_API_KEY, GEMINI_API_KEY or ELEVENLABS_API_KEY for generated 3D, images or audio
相关主题
常见问题
84 条商业免版税战斗与卡牌音效库(WAV + 三端控制器)
零版权隐患、零削波失真的 84 条 44.1kHz 16-bit 商业级 WAV 音频硬资产(覆盖刀剑斩击、金属弹反、暴击雷鸣、Boss 怒吼、抽牌/SSR 金卡爆发、篝火打铁与全套 UI),配套 Godot 4/Unity/Web 随机音高防听觉疲劳控制器与 84 键网页试听台。
- 6 大类 84 条母带级 44.1kHz 16-bit WAV 实文件(刀剑/弹反/Boss/卡牌/营地/UI,零削波)
- 附完整 Python DSP 合成源码,随时微调打击低频或一键生成无限变体,100% 商业免版税
基于 majidmanzarpour/threejs-game-skills (作者 majidmanzarpour,协议 MIT)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
相似 skills
3AGameFactory (GameFactory-3A)
An Apache-2.0 framework of agent skills and pipelines that turns a game requirement into assets (image, 3D, motion, audio, CG video) and engine-ready code for UE5, Blender, Unity, Godot 4 and three.js.
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
Hermes GameForge
A game-development plugin for Hermes Agent with 10 agent skills and 9 tools: SFX, music, NPC voices, pixel sprites, tilesets, low-poly 3D, web/Godot/Unity builds, a playtester that plays the build, and itch.io export. Runs offline by default.
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.