Skip to main content
WEB
SkillFreeBy GameSkillGameSkill original

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.

License
MIT
By
By GameSkill
Download ZIP

Tested by GameSkill

26/26 checks passed on Node 20 + Chrome 156 headless (any model writes the game) (2026-10-28): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

GameSkill's tested copy

Written and tested by GameSkill for gameskill.dev. The ZIP holds the whole skill: SKILL.md and its Chinese version, scripts, a runnable example, tests, the self-check list and our test report.

Download tested ZIP (113 KB)Roadmap: Engine basics

A GameSkill original, released under MIT. The ZIP keeps LICENSE and CREDITS.md, which lists the workflow inspiration, the CC0 test assets and the third-party libraries with their licenses.

One Sentence to Game (prompt, iterate, check)

Self-check

  • 没有向用户承诺一次生成 / 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

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/one-sentence-to-game/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
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

What you get

  • 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

Good fit

  • 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

Not for

  • Large multi-file projects with build tools
  • Judging whether a game is fun (PASS only means not obviously broken)

Try this prompt

Prompt
Make me a small browser game where a moth collects lanterns at night, then check it actually runs.

About this 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

  1. Round 1 from templates/PROMPT.md: classic core rules, one file, no assets, keyboard and touch, restart, no questions.
  2. Check before looking: check-game on desktop and --mobile, then play for two minutes with the checklist.
  3. One change per round, written as an observation plus the expected result.
  4. Re-check and log every round; revert when a round makes things worse.
  5. Three strikes: shrink the feature or spec that one system.
  6. Write the reusable spec from the finished game.
  7. 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.

Requirements

  • Any coding model or agent
  • Node.js 20+ and Chrome for tools/check-game.mjs

Topics

FAQ

Based on gpt6-astra-one-shot-games (published prompts, link only) by Ayi1337 (no licence, nothing copied). Ideas only: GameSkill wrote the code and text; CREDITS.md in the ZIP lists every source. · Based on THUNDERFALL PROMPT.md (reusable-spec structure) by awesome-gpt-6-astra catalog (CC0-1.0). Ideas only: GameSkill wrote the code and text; CREDITS.md in the ZIP lists every source.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

Similar skills