agentleFS
trinity-workstrinity-works/frostwind/.claude/skills/frame-check/SKILL.md

frame-check

Skill87 starsChanged 15 days agoMITView on GitHub

Capture, measure and compare rendered Frostwind frames. Use after any change to drawn output (shaders, ground painters, sprites, ramps, placement), to verify it and to produce before and after evidence.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the old bundle and shoot both builds with the same flags:

    line 29
  2. Distinctive:

    Read both PNGs. Compare the named shape first, then scan the rest of the frame for what moved without a reason.

    line 45
  3. Very specific:

    Run npm run test:frame: every pixel must be an entry its world declared.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Check a frame

A change to drawn output is unverified until its frame has been seen. Tests hold laws; a frame shows what the laws did not name.

Capture

Build first: npm run build. Then one deterministic frame (seed, time and camera are pinned):

node tools/shot.mjs --scene meadow --res 480x270 --zoom 2 --out /tmp/after.png
node tools/shot.mjs --scene desert --at -480,480 --time 12.5 --out /tmp/erg.png

--scene frostwood|meadow|swamp|desert. Named views: --common, --pavilion, --settlement, --lakehouse, --oasis, --hamlet, --camp, --dunes, --creatures, --machines. --at x,y walks the camera to a world position. --time pins the clock, --wind 0 stills the sway. The tool prints the number of distinct colours; a sudden fall often means a pass failed to compile.

Before and after

Keep the old bundle and shoot both builds with the same flags:

git stash && npm run build && cp dist/frostwood.html /tmp/before.html && git stash pop
npm run build
node tools/shot.mjs --html /tmp/before.html <flags> --out /tmp/before.png
node tools/shot.mjs <flags> --out /tmp/after.png

A refactor that claims no visual change must produce byte-identical PNGs: cmp /tmp/before.png /tmp/after.png.

Measure, then look

  1. State the expected change as a number: which surface, which rung, how many pixels. Measure it from the baked chunk or the sprite channels in a test.
  2. Read both PNGs. Compare the named shape first, then scan the rest of the frame for what moved without a reason.
  3. Motion needs two frames: shoot two --time values and count the pixels that differ.
  4. Run npm run test:frame: every pixel must be an entry its world declared.

Report the measured number and what the frame shows. Keep the image pair for the user when the change alters the look on purpose (.claude/rules/pixel-review-gate.md).

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.