agentleFS
scottsttsscottstts/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-visual-validation/SKILL.md

threejs-visual-validation

Skill1.1k starsChanged 4 days agoMITView on GitHub

Validate advanced Three.js graphics as authored systems rather than subjective screenshots. Use for fixed-view visual contracts, per-layer isolation and gap attribution, quantitative region/local-contrast/glow/horizon-barcode measurements (measure.py), 0.3 px visual flicker sweeps, single-sided clay checks, field and pass diagnostics, no-post baselines, seed sweeps, camera-scale tests, temporal stability checks, cost-by-redesign rules, GPU budgets, and regression evidence for procedural scenes.

3 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 1

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test the intended camera-distance envelope (near, design, far, plus 4+ orbit angles).

    line 16
  2. Very specific:

    Test motion and temporal stability ($threejs-temporal-stability).

    line 18
  3. Common:

    Keep a small regression set tied to visual invariants.

    line 20

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Visual Validation

Evaluate the mechanism that creates the image and measure visual gaps objectively. A pleasing hero screenshot can hide unstable fields, broken depth, surface flatness, horizon barcodes, seed failures, or post-processing dependence.

Validation sequence

  1. Freeze deterministic inputs.
  2. Inspect structure in single-sided clay and run sub-pixel (~0.3 px) flicker sweeps across hero, orbit, and junction views.
  3. Capture per-layer isolation views (albedo, clay sun-only, clay sun+sky+GI, pre-grade, no-post baseline, final) and system-specific diagnostics.
  4. Measure region percentiles, p1 black level, 8×8 local contrast, saturation, glow falloff, and open-water horizon stripes (scripts/measure.py) and attribute every gap to its owning layer.
  5. Test the intended camera-distance envelope (near, design, far, plus 4+ orbit angles).
  6. Sweep representative seeds and parameter extremes.
  7. Test motion and temporal stability ($threejs-temporal-stability).
  8. Record image, geometry, memory, and timing budgets; optimize expensive features via cost by redesign (baking, structural LOD, stable amortisation) rather than blind resolution cuts.
  9. Keep a small regression set tied to visual invariants.

Read references/graphics-validation-protocol.md for visual contracts, required inspection controls, mechanism-specific evidence, temporal checks, budgets, and explicit rejection criteria.

Read references/measured-comparison-and-attribution.md (and optional scripts/measure.py) for per-layer isolation and gap attribution, raycast pixel verification, quantitative region/flatness/ glow/barcode metrics, sub-pixel flicker sweeps, and cost-by-redesign rules.

Required evidence

  • fixed camera and seed manifest;
  • per-layer isolation captures (albedo, single-sided clay, pre-grade, no-post, final);
  • field/pass diagnostic mosaic and quantitative region measurements;
  • near, design, far, and orbit camera views plus sub-pixel flicker sweep;
  • open-water horizon stripe check (measure.py --stripes) when water reaches the horizon;
  • at least one stress seed;
  • frame-time and render-target inventory;
  • written invariants and known compromises.

Failure conditions

  • approval relies on a single hero still frame;
  • structure is signed off in double-sided clay that hides flipped faces;
  • metrics match mean color while 8×8 local contrast hides flat surfaces;
  • gaps are patched in color grading instead of attributed to their owning layer;
  • post-processing cannot be disabled per pass;
  • random seeds are not reproducible;
  • GPU time is inferred only from CPU frame time, or cost is cut by degrading core phenomena;
  • temporal artifacts are judged from still images;
  • comparison thresholds ignore intentional stochastic pixels without stabilizing them.

Routing boundary

This skill evaluates an implementation and attributes gaps to owning layers; it does not supply rendering mechanisms. Use $threejs-reference-reading to decode a visual reference up front, $threejs-temporal-stability for motion-only bisection, and the owning subject/lighting/post skill to implement each fix.

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.