/game-dna:game-dnafrom game-dna
Adds 100+ tested browser-game elements (damage numbers, screen shake, particles, 2D lights, bloom, dialogue, bullet patterns, battles, kart racer) as dependency-free JS modules. Use when the user wants game feel, effects, UI, audio, lighting, or a game system.
Ships in game-dna. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Game DNA (https://game-dna.pages.dev, MIT) is a library of 100+ browser-game elements. Each one is:
GameDNA_<Name>) that does the work;Most elements are add-ons (feel, effects, UI, audio, lighting) that go into any game. The rest are systems (battles, map flows, a kart racer): they replace a game's core loop, so they come as a starter game the user extends rather than something wired into their existing loop.
Read the game first. Find its entry page and scripts: the update loop (fixed step or delta time), the draw
order (background, actors, effects, HUD), input, where HP or score changes, the camera, and any autoplay or
test hooks (?auto=1, ?t=). If it is not a browser JavaScript game, say so: the modules are browser JS,
though a prompt can still serve as a spec.
Pick the element(s). Read catalog.md next to this file (every element with its id, kind and one line),
or run node scripts/get.mjs --list. Match the user's words to the element, not the other way round: "make
hits feel heavier" is hit-stop-shake (and maybe damage-pop); "numbers when I hit" is damage-pop.
If two fit, pick one and name the other in one line. A system element for an existing game: say it is a
starter game and offer to start a new game from it (step 3 with --starter) instead of rewriting their loop.
Each element page has a live demo: https://game-dna.pages.dev/site/preview/dna/<id>/.
Fetch it into the game's folder (Node 18+, reads only the public site, writes one folder):
node <this skill's folder>/scripts/get.mjs damage-pop hit-stop-shake --out game-dna
It runs the same compatibility check as the site's Basket and writes game-dna/COMBO.md (one combined
prompt with the defaults filled in) plus every module file it needs. An ERROR (two elements that own the
same system, two systems) means pick one; WARN lines list what the game itself must provide.
Options: --param key=value (or id.key=value) changes a default from the element's prompt;
--starter with a system element writes its starter game instead (START.md + files); --check reports
without writing. Without Node, download https://game-dna.pages.dev/site/preview/dna/<id>/prompt.md and the
module files listed for that id in catalog.md (from https://game-dna.pages.dev/<path>), and replace each
{{param}} in the prompt with the default shown at its top.
Integrate by following COMBO.md exactly. It overrides your habits:
<script src> before the game script); never edit it; if it
seems to need a change, adapt the game around it and tell the user;Check before you say done. node --check every touched script (inline scripts: copy to a temp .js),
run the self-checks in COMBO.md, and if you can open a browser, load the game and look at the acceptance
moments it lists. Report what you could not check.
Report: which element(s), where each hook went (file and function), parameters changed from the defaults, the WARN items the game had to provide, and the demo page link so the user can compare.
get.mjs needs to reach game-dna.pages.dev, and ask them to allow it or run the command themselves.get.mjs with it.game-dna.pages.dev or https://github.com/lucemia/game-dna.More: the Basket (pick several, download a zip) https://game-dna.pages.dev/site/preview/basket/ · how elements are built and cold-tested https://game-dna.pages.dev/site/preview/blog/how-game-dna-works/ · source https://github.com/lucemia/game-dna
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lucemia/game-dna --plugin game-dnaOther plugins' skills for the same job