English | 繁體中文
Game DNA
100+ game elements for your coding agent. Pick one, bring your browser game, and the agent wires it into your code,
from damage numbers to dynamic lights.
Install it as a skill (Claude Code, Codex, Cursor and most other coding agents):
npx skills add https://game-dna.pages.dev
That downloads only the skill (three small files, about a second). The same skill from GitHub: npx skills add lucemia/game-dna
(clones the whole repo, about 300 MB); as a Claude Code plugin: /plugin marketplace add lucemia/game-dna, then
/plugin install game-dna@game-dna. Then, in your game's folder, ask: "add damage numbers and a little hit-stop to my game".

How it works
- Pick an element in the gallery.
- Play its demo to see what it adds.
- Tell your agent one sentence in your game's folder:
Add Game DNA's damage-pop element to my game: follow https://github.com/lucemia/game-dna/blob/main/elements/damage-pop/prompt.md and use the module in https://github.com/lucemia/game-dna/tree/main/elements/damage-pop/module.
More: How it is built and tested · Start in 5 minutes · step by step
Why
Ask a coding agent to "add damage numbers" and it will. Then the numbers overlap the HUD, the boss fight stops
working, or the old save screen quietly breaks. A one-line ask leaves the agent guessing at everything that makes a
feature feel right.
Game DNA gives the agent three things instead of a guess:
- a module: a small, dependency-free JavaScript file that does the work (MIT);
- a prompt (at most 600 words) that says where to hook it into your game, what not to touch and the usual mistakes;
- a way to check it: self-checks without a browser and acceptance checks you can see.
Every element also has a playable demo. Most are add-ons that drop into any game (feel, effects, UI, audio,
lighting); the rest are systems (battles, map flows, a kart racer) that come as a starter game your agent extends.
All art is original; most of it is drawn in code.
Mix several elements
The Basket on the site lets you pick several elements, checks that they work together, and writes one
combined prompt plus a zip of the modules for your agent.

The elements
All of them, by category. Click play for the element's page with its live demo and prompt. ✦ = the demo uses AI-generated art.

Battle systems (15)