agentleFS
thomas-ratzthomas-ratz/game-ui-proof/.claude/CLAUDE.md

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.

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
  1. Distinctive:

    Never commit or push unless asked.

    line 21

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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) and marketplace.json (this repo is its own marketplace).
  • skills/ui-preview/SKILL.md: the workflow the agent follows. Keep it lean; detail goes in references/kit.md (page format, saving, serve.py, shots.py) and references/engines.md (Godot, Unity, Unreal, web).
  • skills/ui-preview/assets/kit/: what users copy into their project (docs/mockups/kit/). project.css is the only file a user edits. godot_theme.js + apply_godot.py, unity_theme.js + apply_uss.py, unreal_theme.js + apply_unreal.py are 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 in scene.js; no game's art), the README tour demo.gif/demo.mp4, and record.py, which re-records it (python docs/demo/record.py). build_site.py builds 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.py copies the kit and pages into their docs/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.py is a security boundary: Host check (DNS rebinding), Origin + JSON content-type check (cross-site writes), writes only values.json / values.draft.json inside <root>/<mockups>/<feature>/ with a manifest.json. Any change to it keeps assets/kit/test_serve.py passing.
  • 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 and CHANGELOG.md in 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.py and test_apply_unreal.py (exit code = failed checks).
  • python -m py_compile on every .py, node --check on every .js.
  • Render the example pages: python examples/setup.py, then python docs/mockups/kit/shots.py <feature> from each sample project (CI does this and uploads the sheets); look at each sheet.png.
  • Render the demo: python docs/demo/build_site.py, then look at _site/.
  • claude plugin validate --strict . and claude plugin validate --strict .claude-plugin/plugin.json (this file lives in .claude/ because a CLAUDE.md at 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.