agentleFS
admos98admos98/liquid-glass-suite/skills/liquid-glass-optics/SKILL.md

liquid-glass-optics

Skill0 starsChanged 7 days agoMITView on GitHub

Use for Liquid Glass rendering strategy, original SVG displacement/specular maps, backdrop-filter url(), WebGL2 refraction, Safari true-refraction options, reflective rims, standalone showcase tuning, and optical behavior verification.

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. Very specific:

    WebGL2: use ../../shared/assets/webgl-glass.js with an explicit origin-clean image/canvas/video texture or a WebKit true-refraction brief.

    line 32
  2. Distinctive:

    Check the seven original preset bundles exactly and require map dimensions of 2× CSS geometry.

    line 39
  3. Distinctive:

    Test center R/G neutrality and actual optical changes without using an external comparison implementation.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 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

Liquid Glass optics

Open ../../shared/assets/showcase.html directly from disk. It is the restored original standalone showcase: no server, build, network, framework, or external assets are needed. Editable optics, controller, template, and plates are in ../../shared/assets/showcase/.

Restored original model

The showcase preserves its original surface profile, Snell-derived displacement map, directional specular map, seven preset bundles, 2× map sampling, and historical linear RGB dim. The default drop-in retains its separate strategy-1 SVG lens/capability-gate implementation. Preserve this model and its preset values; do not substitute a different optical engine.

The neutral development notice is in ../../NOTICE. Standalone means the showcase is self-contained and works offline.

Route the problem

NeedRead
Content filter vs SVG backdrop vs WebGL2 vs frost../../shared/references/01-strategy-picker.md
Original displacement/specular maps and SVG graph../../shared/references/04-svg-filter-graph.md
Production wash, rim weighting, theme tokens, geometry faults../../shared/references/03-dim-and-rim.md
Original WebGL2 API, explicit textures, hybrid swap and cleanup../../shared/references/07-webgl-shader.md
Standalone controls, exact original presets, exports and diagnostic API../../shared/references/14-showcase.md
Safari scoped bend: measured position, caches, compositing and OS-material conflict../../shared/references/06-safari-webkit.md
Map budgets, idle/viewport gates, scroll synchronization../../shared/references/08-performance.md
Transform arming, filter-carrier motion and origin../../shared/references/09-motion.md

Two application paths only

  1. Default: ../../shared/assets/liquid-glass.css + .js, normally through liquid-glass. Its strategy-1 lens and conservative gate add optics only where supported; fallback remains usable.
  2. WebGL2: use ../../shared/assets/webgl-glass.js with an explicit origin-clean image/canvas/video texture or a WebKit true-refraction brief. It cannot read arbitrary DOM. Paint below content and restore CSS on failure/teardown.

The standalone renderer global is window.UltimateLiquidGlassRenderer; its diagnostic page API is window.UltimateLiquidGlass. Shared maps do not prove cross-renderer pixel identity.

Verify the restored behavior

  1. Record renderer, browser, surface, width, height, radius, bezel, scale, light angle/opacity/saturation, dim, background, and DPR.
  2. Check the seven original preset bundles exactly and require map dimensions of 2× CSS geometry.
  3. Exercise every surface/control, real CSS/SVG and WebGL2 drawing, split mode, pointer/keyboard/reset, URL/state validation, exports, and fallbacks.
  4. Test center R/G neutrality and actual optical changes without using an external comparison implementation. Do not infer paint from labels or syntax support.
node scripts/build-showcase.mjs --check
npm test

For observed failures, switch to liquid-glass-debug rather than tuning blindly.

Part of liquid-glass-suite — install the suite, not this folder alone.

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.