threejs-game-skills README

The project's README from github.com/majidmanzarpour/threejs-game-skills. As one markdown file: README.md.

Three.js Game Skills

Self-contained Codex and Claude Code skills for building playable, polished Three.js browser games. Install the skills, then ask your agent to use threejs-game-director; the director routes gameplay, graphics, UI, asset generation, audio, debugging, and release verification without requiring users to choose every specialist skill manually.

The package includes the runtime materials agents need: SKILL.md files, references, helper scripts, and a Vite + TypeScript + Three.js scaffold bundled inside the relevant skill folders. Generated games ship with deterministic test hooks, a seeded RNG, and Playwright templates for smoke tests, visual-regression baselines, and bot playtests so agents can verify their own work end to end.

One shared pack of nine skills serves Codex and Claude Code. The director preserves your scope and art direction, uses specialist guidance automatically, delegates independent work when the runner supports it, and scales verification to the change. Full games get a complete production pass; a small HUD fix stays a small HUD fix. No particular model or paid API key is required.

Created by Majid Manzarpour.

Demos

Game Video Play
Neon Ridge Drift Watch on X ridgedrift.netlify.app
Championship Snooker Arena Watch on X snookerarena.netlify.app
Starship Dogfight Watch on X starshipdogfight.netlify.app
Tide Singer Watch on X tidesinger.netlify.app
Ripcore Watch on X ripcore.netlify.app

Install

Install all skills for Codex:

npx skills add majidmanzarpour/threejs-game-skills --skill '*' -a codex -g -y

Install all skills for Claude Code:

npx skills add majidmanzarpour/threejs-game-skills --skill '*' -a claude-code -g -y

If your installed skills CLI does not support one of these targets, install from a cloned checkout instead: ./install.sh --codex for Codex, ./install.sh --claude for Claude Code, or ./install.sh --all for both.

For local development from a cloned checkout:

./install.sh --codex
./install.sh --claude
./install.sh --all

The local installer copies skills/ into the selected agent skills directory. It skips same-named skills unless you pass --force, and it never removes unrelated user skills unless --prune-managed is explicitly requested.

./install.sh --codex --force

Use The Skills

After installing, open Codex or Claude Code in an empty project folder, or in an existing Three.js game you want to improve. Then prompt the agent with the outcome you want and name the director skill:

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.

Both runners share the same SKILL.md files and auto-discover the skills once installed; the prompt above works in either:

The agent should:

Users generally should not need to run the scaffold or QA helper scripts directly. Those scripts are packaged so the skills can use them as part of the workflow.

Background tools, subagents, native async execution, user-steering delivery, and reasoning settings depend on the host. Installing these skills does not enable an API feature or change your model settings. When delegation is unavailable, the agent works directly.

Optional API Keys

The core Three.js skills work without paid API keys. When keys are genuinely missing or credits are exhausted, the director continues with procedural/local assets and reports the affected limitation. Temporary failures trigger bounded recovery of the existing job, not an immediate downgrade or duplicate paid submission. Explicitly procedural or no-external-service requests remain procedural. Add keys only when you want the agent to generate external models, images, or audio.

Never commit API keys or put them in browser-side game code. These skills use provider APIs from local agent tooling, then save generated assets into your game project.

Provider Skill Environment variable Use cases Key setup
Tripo API threejs-3d-generator TRIPO_API_KEY Text/image/multiview to 3D, game-ready GLB/FBX hero models, vehicles, props, buildings, weapons, textures, rigging, animation, stylization, mesh conversion, post-processing. Tripo quick start and Tripo API overview.
Gemini image API threejs-image-generator GEMINI_API_KEY Concept art, image-to-3D source images, texture references, decals, skies, backgrounds, icons, logos, GUI art, title/menu art. Gemini API key docs and Google AI Studio keys.
ElevenLabs API threejs-audio-generator ELEVENLABS_API_KEY SFX, music tracks and loops, ambience loops, UI sounds, announcer lines, dialogue TTS, voice conversion, audio cleanup, game audio manifests. ElevenLabs quickstart and API authentication.

Set keys in your shell profile, then restart your terminal.

macOS/Linux with zsh or bash:

export TRIPO_API_KEY="..."
export GEMINI_API_KEY="..."
export ELEVENLABS_API_KEY="..."

For zsh, put those lines in ~/.zshrc or ~/.zprofile. For bash, put them in ~/.bashrc or ~/.bash_profile.

Windows PowerShell, current terminal session only:

$env:TRIPO_API_KEY = "..."
$env:GEMINI_API_KEY = "..."
$env:ELEVENLABS_API_KEY = "..."

Windows PowerShell, persistent for your user account:

[Environment]::SetEnvironmentVariable("TRIPO_API_KEY", "...", "User")
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "...", "User")
[Environment]::SetEnvironmentVariable("ELEVENLABS_API_KEY", "...", "User")

After setting persistent Windows variables, restart your terminal, Codex, or Claude Code so the agent process can see the new environment.

The director skill includes a credential probe that sources common shell profiles before deciding a key is missing. Run it from wherever you installed the skills:

# Claude Code
bash ~/.claude/skills/threejs-game-director/scripts/probe_asset_credentials.sh
# Codex
bash ~/.agents/skills/threejs-game-director/scripts/probe_asset_credentials.sh

It prints TRIPO_API_KEY=SET|MISSING (and the same for Gemini and ElevenLabs) without ever printing key values.

Provider notes:

Best Entry Points

For most user-facing game requests, start with threejs-game-director and let it pull in the specialists.

What Good Usage Looks Like

For a new game:

Use threejs-game-director to create a AAA-inspired hover racing game from scratch.
Make it playable, add premium track visuals, vehicle feel, HUD, SFX hooks, desktop and
mobile controls, and run the full verification pass before reporting done.

For visual upgrades:

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.

For an existing broken game:

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.

For asset-heavy games:

Use threejs-game-director to build a premium space dogfight game. Use threejs-image-generator
for concepts, skies, decals, icons, and GUI art; use threejs-3d-generator for hero ships
and weapons when credentials are available; use threejs-audio-generator for SFX and
ambience. If generation is blocked, report the credential probe output and fallback plan.

Expected Evidence

For a complete game, the skills should gather evidence before claiming success. Narrow edits use the affected subset, not an unrelated full release audit:

Premium/AAA claims should not rely on a static scene, placeholder cubes, generic stat-card HUDs, or unverified screenshots. The game should have an active playable loop and a filled visual scorecard.

Skill System

Packaged Resources

Installed skills are self-contained. They do not depend on root docs, root scaffolds, root prompts, or root checklists.

Maintainer Checks

Validate this workflow repository:

npm install
npm run check:scripts
npm run validate:skills
npm run test:helpers

Maintainers can run packaged helpers directly when testing the skill package, but normal users should interact through agent prompts:

python3 skills/threejs-gameplay-systems/scripts/create_threejs_game.py ../my-threejs-game
node skills/threejs-qa-release/scripts/inspect-threejs-canvas.mjs --url http://127.0.0.1:5188 --mobile
node skills/threejs-qa-release/scripts/inspect-threejs-canvas.mjs --manifest artifacts/evidence.json --url http://127.0.0.1:5188 --seed 12345
python3 skills/threejs-game-director/scripts/check_evidence.py ../my-threejs-game --manifest artifacts/evidence.json

The manifest reference documents capture paths and the state-hook contract. The workflow evaluation scenarios compare observable behavior with fixed prompts, seeds, environments, and model settings. Helper tests use mocked provider responses without spending credits; passing them is not a claim of improved visual quality.

The shared orchestration policy incorporates OpenAI's model guidance on instruction conflicts, delegation, momentum, and proportionate checks. Native async tools and steering remain hosting-application capabilities, not requirements of this pack.

License

MIT. See LICENSE.

threejs-game-skills (majidmanzarpour/threejs-game-skills)

Searching Database…

这是什么?一套共九个自包含的技能包(SKILL.md 文件),教 Codex 和 Claude Code 如何端到端构建可玩、精致的 Three.js 浏览器游戏,涵盖玩法、3A 级画质、UI、QA,以及可选的 AI 生成 3D、图像和音频资源。
这是独立的游戏引擎,还是安装到 AI 编程智能体里的东西?它不是引擎,而是一套技能包:你把 SKILL.md 文件安装到 Codex 或 Claude Code 的技能目录,然后智能体在向内置的 Vite + TypeScript + Three.js 脚手架写入时使用这些技能(通过一个导演技能统一调度)。
如何安装这些技能?使用 Codex 或 Claude Code 官方的 skills 安装命令,或克隆仓库并运行 ./install.sh --codex、./install.sh --claude 或 ./install.sh --all;本地安装器会把 skills/ 文件夹复制到你智能体的技能目录。
它支持哪些编程智能体?需要付费 API 密钥吗?它支持 Codex 和 Claude Code,两者共享同一套九个技能的技能包。不要求特定模型或付费 API 密钥;Tripo、Gemini 和 ElevenLabs 的密钥是可选的,只用于解锁外部 3D、图像和音频生成。
如果我不配置可选的 Tripo、Gemini 或 ElevenLabs API 密钥会怎样?导演技能会继续使用程序化或本地资源工作,并报告受影响的限制项,而不是直接失败或悄悄降低成品质量。
我自己需要懂 Three.js 吗?不需要,智能体会按照技能的指引自己编写和更新游戏代码;你只需打开一个空文件夹或现有的 Three.js 游戏,用你想要的结果去提示它。
threejs-game-director 技能具体做什么?它是主入口:自动把工作分派给八个专项技能(玩法、图形、UI、调试、QA,以及 3D/图像/音频生成),让验证力度与改动规模相称,并保存连续性记录,确保修复不会重启已完成的工作。
能看到用它做出的示例游戏吗?可以,README 链接了五个可玩演示——Neon Ridge Drift、Championship Snooker Arena、Starship Dogfight、Tide Singer 和 Ripcore——每个都附带视频和 Netlify 上的在线可玩版本。
智能体在宣告完成之前如何验证游戏确实能正常运行?它会运行生产构建、浏览器控制台检查、Playwright 截图、canvas 像素/指标检查、视口检查和机器人试玩测试,并让验证规模与改动大小相匹配,而不是每次都执行完整的发布审计。
这些可选的 AI 服务商是做什么用的?Tripo 生成游戏可用的 3D 模型(GLB/FBX),Gemini 生成概念图、纹理和图标,ElevenLabs 生成音效、音乐、环境音和语音/TTS;三者都是可选的附加项,不是必需品。
Size
0.4 MB
Stars
2.5K
Updated
CommitSep 28
Age
4mo
Commits · 90 Days