game-ui-proof
CLAUDE.md1 starsChanged 19 days agoMITView on GitHub
An open-source (MIT) Claude Code plugin with one skill, ui-preview: the agent builds a tunable HTML preview of a game's UI over a real screenshot, the human tunes and presses Save, and the saved values.json is applied to the engine. Pitch and positioning are in README.md.
In this repositoryOne other file it gives its agents.
- ui-previewSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Never commit or push unless asked.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
game-ui-proof: working notes
An open-source (MIT) Claude Code plugin with one skill, ui-preview: the agent builds a tunable HTML preview of a game's UI over a real screenshot, the human tunes and presses Save, and the saved values.json is applied to the engine. Pitch and positioning are in README.md.
Layout
.claude-plugin/plugin.json(name, version: bump on every release) andmarketplace.json(this repo is its own marketplace).skills/ui-preview/SKILL.md: the workflow the agent follows. Keep it lean; detail goes inreferences/kit.md(page format, saving,serve.py,shots.py) andreferences/engines.md(Godot, Unity, Unreal, web).skills/ui-preview/assets/kit/: what users copy into their project (docs/mockups/kit/).project.cssis the only file a user edits.godot_theme.js+apply_godot.py,unity_theme.js+apply_uss.py,unreal_theme.js+apply_unreal.pyare per engine.skills/ui-preview/assets/{template,godot,unity,unreal}/: example pages.assets/godot/game_shots.gd: backdrop screenshot template.docs/demo/: neutral demo previews (hud/,pause/,dialogue/,transition/, sharing the procedural level inscene.js; no game's art), the README tourdemo.gif/demo.mp4, andrecord.py, which re-records it (python docs/demo/record.py).build_site.pybuilds the GitHub Pages demo into_site/(index, previews, review sheets).examples/{godot,unity,unreal}/: fake projects the example pages read and the appliers write;python examples/setup.pycopies the kit and pages into theirdocs/mockups/(git-ignored)..github/workflows/:ci.yml(the checks below on Python 3.8 and 3.13),pages.yml(the demo site, on push to main).docs/launch.md: launch kit (submission drafts, venue checklist).
Rules
- Game-agnostic: no project names, palettes, fonts, key bindings or paths from any one game in the skill. Examples use neutral colours.
- Stdlib-only Python ≥ 3.8 (Pillow only for
shots.py), plain browser JS (no build step, no modules, one global per file), no new dependencies. serve.pyis a security boundary: Host check (DNS rebinding), Origin + JSON content-type check (cross-site writes), writes onlyvalues.json/values.draft.jsoninside<root>/<mockups>/<feature>/with amanifest.json. Any change to it keepsassets/kit/test_serve.pypassing.- The appliers reject group and key names that aren't plain identifiers and are dry-run by default. Keep it that way.
- Docs match the code: when an API changes, update
SKILL.md,references/*.md, the example pages andCHANGELOG.mdin the same change. - Never commit or push unless asked.
Checks before a release
python skills/ui-preview/assets/kit/test_serve.py,test_apply_godot.pyandtest_apply_unreal.py(exit code = failed checks).python -m py_compileon every.py,node --checkon every.js.- Render the example pages:
python examples/setup.py, thenpython docs/mockups/kit/shots.py <feature>from each sample project (CI does this and uploads the sheets); look at eachsheet.png. - Render the demo:
python docs/demo/build_site.py, then look at_site/. claude plugin validate --strict .andclaude plugin validate --strict .claude-plugin/plugin.json(this file lives in.claude/because aCLAUDE.mdat the plugin root fails the second).- A blind trial: a fresh agent that reads only
skills/ui-preview/builds a preview for a fake project at a non-1920 resolution and logs every friction point.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

