One Sentence to Game (prompt, iterate, check)
/one-sentence-to-game
A GameSkill original for any model: a round-1 prompt that turns one sentence into a small finished browser game, a one-change-per-round loop with a creation log, a reusable spec template, and a headless checker that reports console errors, blank frames and dead controls as PASS or FAIL. It does not promise one-shot.
- 许可证
- MIT
- 出品
- GameSkill 出品
我们测过
在 Node 20 + Chrome 156 headless (any model writes the game) 上通过 26/26 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告GameSkill 测过的版本
GameSkill 为 gameskill.dev 原创编写并测过。ZIP 里是完整的 skill:SKILL.md 及中文版、脚本、可运行示例、测试、自检清单和我们的测试报告。
GameSkill 原创,协议 MIT。ZIP 保留 LICENSE 和 CREDITS.md,里面列出了流程灵感来源、CC0 测试素材和第三方库及其协议。

自检清单
- 没有向用户承诺一次生成 / Did not promise the user a one-shot result
- 每一轮只改一处,并记录在 CREATION.md / One change per round, logged in CREATION.md
- 每一轮都在桌面和手机上运行 check-game / check-game run on desktop and --mobile every round
- 看过四张截图并亲自玩过 / Looked at the four screenshots and played it
- 完成后写了复用规格 / Wrote the reusable spec once the game was good
- npm test 和 npm run test:browser 都通过 / npm test and npm run test:browser pass
中文指南
这个 skill 做什么
GameSkill 原创(MIT),适用于任何模型。把一句话的游戏点子变成一个小而完整的浏览器游戏,并且安全地迭代:第一轮提示词模板(沿用经典规则、单文件、无外部素材、键盘和触屏、能重开、“小而完整胜过大而粗糙”、不问澄清问题)、首轮检查清单、每轮只改一处的迭代流程和轮次记录、从成品倒推的复用规格模板,以及一个无头 Chrome 检查器:打开游戏、记录控制台和网络错误、检测空白首帧、模拟按键并比较截图判断操作是否有反应,输出 PASS/FAIL 和 JSON 报告。它不承诺一次生成就能成功。
什么时候用
- 用户说“给我做一个关于……的游戏”
- 想用 GPT、Claude、Gemini 等模型一次生成游戏
- 生成的游戏越修越坏
怎么装
下载本页的 ZIP,把 one-sentence-to-game/ 文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。检查器需要 npm ci(puppeteer-core)和 Chrome。
最小示例
node tools/check-game.mjs fixtures/good 输出 PASS;fixtures/broken(缺素材 + 调用不存在的函数)和 fixtures/frozen(画面正常但没有任何反应)输出 FAIL 并说明原因。加 --mobile 用手机尺寸检查。
我们怎么测的
npm test 跑 6 个单元测试:PNG 解码(所有行过滤器)、空白检测、帧差、按键脚本、判定规则和 favicon 噪音。npm run test:browser 在无头 Chrome 里对三个样例跑检查器共 6 项,确认好的通过、坏的失败、理由正确,无法访问的地址返回退出码 2。
致谢
思路来自 Ayi1337 公开的一次生成提示词(无协议,仅链接)、awesome-gpt-6-astra 目录中 THUNDERFALL 的 PROMPT.md(CC0)复用规格结构和 APEX CLUB 的迭代记录。没有复制代码或文字。
搭配
mechanic-one-button-flight:生成单键飞行类游戏时的公平规则web-audio-sfx-synth:不用素材也有音效game-feel:第二轮以后加手感
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/one-sentence-to-game/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/one-sentence-to-game.zip -o /tmp/gameskill-one-sentence-to-game.zip
unzip -oq /tmp/gameskill-one-sentence-to-game.zip -d .claude/skills
rm /tmp/gameskill-one-sentence-to-game.zip包含内容
- templates/PROMPT.md: the round-1 prompt and the one-change-per-round prompt
- templates/CHECKLIST.md, CREATION.md (round log) and SPEC.md (reusable spec from a finished game)
- tools/check-game.mjs: headless open, console and network errors, blank-frame and input-response checks, four screenshots, report.json, PASS/FAIL exit code
- Good, broken and frozen fixture games the checker is tested against
- 6 unit tests and 6 fixture checks in headless Chrome
适合
- Turning a one-line game idea into a playable browser game
- Iterating on a generated game without breaking what already works
- Checking generated games automatically before a human plays them
不适合
- Large multi-file projects with build tools
- Judging whether a game is fun (PASS only means not obviously broken)
试试这条提示词
Make me a small browser game where a moth collects lanterns at night, then check it actually runs.关于这个 Skill
A GameSkill original for any model. One sentence becomes a round-1 prompt; each later round changes one thing; a headless checker says PASS or FAIL after every round. It is honest that most good generated games take several rounds.
Agent steps
- Round 1 from
templates/PROMPT.md: classic core rules, one file, no assets, keyboard and touch, restart, no questions. - Check before looking:
check-gameon desktop and--mobile, then play for two minutes with the checklist. - One change per round, written as an observation plus the expected result.
- Re-check and log every round; revert when a round makes things worse.
- Three strikes: shrink the feature or spec that one system.
- Write the reusable spec from the finished game.
- Never promise one-shot; report rounds and hand edits.
Common errors it fixes
- Trusting "done" without opening the game.
- Multi-fix prompts that rewrite and break a working game.
- Missing assets, CDN links and dead controls that nobody noticed.
Credits
Ideas from the published prompts in gpt6-astra-one-shot-games by Ayi1337 (linked only) and THUNDERFALL's PROMPT.md (CC0) in the awesome-gpt-6-astra catalog. Templates, checker and text are ours.
环境要求
- Any coding model or agent
- Node.js 20+ and Chrome for tools/check-game.mjs
相关主题
常见问题
基于 gpt6-astra-one-shot-games (published prompts, link only) (作者 Ayi1337,no licence, nothing copied)的思路。代码和文字由 GameSkill 编写,ZIP 里的 CREDITS.md 列出所有来源。 · 基于 THUNDERFALL PROMPT.md (reusable-spec structure) (作者 awesome-gpt-6-astra catalog,CC0-1.0)的思路。代码和文字由 GameSkill 编写,ZIP 里的 CREDITS.md 列出所有来源。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Game Feel & Juice
Add juice to actions: screen shake, hit-stop, eased motion, squash and stretch, knockback and layered audio-visual feedback.
Game Input Systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
相似 skills
Novel to Game
Agent skills for source-grounded adaptation of novels into games: cited design docs, target-runtime builds and evidence-based QA.
open-game-skills
An MIT pack of about 190 SKILL.md agent skills for game design: combat feel, camera, traversal, world, validation, 2D/Spine and art pipeline, with a dispatcher and adapters for Three.js, PixiJS, Phaser, Cocos, Godot, Unity and Unreal.
Multi-view to Web-ready 3D Asset
A GameSkill original: front, side and back reference prompts, any image-to-3D provider or 3D MCP server, then a tested glTF Transform pass that simplifies, fixes orientation, resizes textures, applies Draco and builds LODs inside a triangle, file-size and shape-deviation budget. Tested on a real 277k-triangle TripoSR output.
Kart Drift Boost (tiers, windows, ramps)
A GameSkill original: arcade kart drift-boost rules that reward skill. Drifts charge three tiers, release opens a 0.85 s window you must press in, counter-steer adds a CUT bonus, ramps give one air and one landing boost, boosts take the maximum instead of stacking, and walls cancel everything pending.