技能 2026-08-20 15:40 UTC
skills
由提交人 flornkm 提交,主要更新类型为:新增功能与能力扩展。提交说明:Add webgl-components skill (#1)。带来了新的能力与可配置项,扩展了使用场景。
Commit提交信息原文
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.