gentellab/trustclaw/game-code
Claude Code and agent skill by gentellab/trustclaw
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
生成HTML5小游戏代码(需要Python 3.10+)。支持两种模式:(1) 预设模板快速生成经典游戏 (2) 调用AI大模型根据需求实时编写自定义游戏代码。
Install
npx vskill@latest install gentellab/trustclaw/game-codeSKILL.md
Game Code (HTML5游戏代码生成器)
使用此技能生成完整的HTML5小游戏代码。支持模板模式和AI生成模式。
模式一:AI大模型生成(推荐)
根据你的需求描述,调用AI大模型实时生成自定义游戏代码。
示例
支持的AI模型
| 模型 | 环境变量 | 说明 | |
|---|---|---|---|
gpt-4o (默认) | OPENAI_API_KEY | OpenAI GPT-4o | |
gpt-4o-mini | OPENAI_API_KEY | OpenAI GPT-4o Mini | |
claude-3-5-sonnet | ANTHROPIC_API_KEY | Anthropic Claude | |
deepseek-chat | DEEPSEEK_API_KEY | DeepSeek |
模式二:模板生成(快速)
使用预设模板快速生成经典游戏。
支持的游戏模板
| 类型 | 说明 | |
|---|---|---|
snake | 经典贪吃蛇游戏 | |
tetris | 俄罗斯方块 | |
breakout | 打砖块 | |
pong | 乒乓球 | |
flappy | 跳跃小鸟 | |
memory | 记忆翻牌 |
示例
输出内容
每个游戏输出到指定目录,包含:
index.html- 完整的游戏页面game.js- 游戏逻辑代码style.css- 游戏样式
注意事项
- 输出目录必须是空目录或不存在(脚本会自动创建)
- AI模式需要配置对应的API Key(环境变量或--api-key参数)
- 生成完成后,直接用浏览器打开
index.html即可游玩 - 所有游戏都支持键盘控制,部分支持触屏
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/game-code/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 5
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gentellab/trustclaw/game-code)