SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-08-20 15:40 UTC

skills

Committed by flornkm. Update Category: New Features & Capability Expansion. Commit details: Add webgl-components skill (#1). This update introduces new capabilities and expands supported use cases.

flornkm cf1c009 flornkm/skills

CommitRaw commit message

Add webgl-components skill (#1)

* Add webgl-ui-widgets skill

Lessons for embedding shader-driven visuals (identity avatars, ambient
orbs, glass surfaces) into product UI: shared-context architecture,
frame loop discipline, fragment shader cost, derived optics, the
non-WebGL fallback as a production surface, SSR and a11y integration.

* Scope the use client rule to RSC, not React generally

"use client" is an RSC boundary marker, not a React-wide requirement.
It is inert in a plain SPA, the Next Pages Router, and Astro/Remix
islands. The module-scope browser API rule, by contrast, applies to any
server rendering, so say so explicitly.

* Rename to webgl-components and add a runnable GPU branch probe

"Widget" reads as an embeddable third-party thing; "component" says what
this actually is. Directory and frontmatter name renamed together, as the
spec requires them to match.

Adds scripts/gpu-probe.html, which reports whether a machine takes the
WebGL or the fallback branch, plus the live context cap and blit
orientation. The verification section referenced a probe page in prose
and made the reader rebuild it; now it ships one, with the concrete
--disable-gpu command next to it.

* Align the H1 with the skill name, harden the probe

The heading still read "WebGL UI Widgets" after the rename; every other
skill titles its H1 with the skill name.

The probe's context-cap test exhausts the context pool by design, and it
ran before the blit-orientation test, which then asked for a context the
browser was already evicting. It passed on a healthy GPU but was fragile
by construction. Orientation now runs first, and every context the probe
takes is handed back with WEBGL_lose_context so repeat runs in one
session stay stable.