gpu-surface
БесплатноЗапускает вложенные скриптыНе проверенDecide on, budget, and prove one GPU-rendered surface on a web page — a shader backdrop, liquid metal on a logo, a glass panel, or a React Three Fiber scene…
от frankxai★ 51 звезда на GitHubОб этом скилле
GPU surface
A shader or a 3D scene is the loudest thing a page can carry. It costs a WebGL context, a JavaScript chunk, battery on a phone, and attention. This skill decides whether the page earns it, sends the build to the recipe for that engine, and proves the result in the three states it must survive.
The four recipe skills build. This skill governs: every one of them starts at section 1 here and ends at section 4.
1. Earn it — before any install
- Read the repo's rules. In
taste.md,design.md, andTASTE.md/DESIGN.md, search for gradient, glass, 3D, WebGL, canvas, motion, and set-piece. When a line refuses the effect, stop and quote it. A tutorial recommending the effect does not outrank the repo. - One GPU surface per page. Count what the route already renders:
grep -rnE "<Canvas|ShaderMount|@paper-design/shaders|@react-three/fiber" app components, then follow the imports into the route. When one exists, the new surface replaces it or does not ship. When the repo caps scroll set-pieces at one per page, a GPU hero counts toward that cap too. A canvas in the header or footer is on every page, so it uses up every page's surface: put an exported still there instead (liquid-logosection 5). - Name its job in one sentence. For example, it frames the product, carries the brand mark, or shows a state change. "Makes it look premium" is not a job.
- Try the static version first. A token-coloured CSS gradient, an optimised image, or an exported SVG noise texture costs no JavaScript and no GPU. When the static version does the job, ship that and stop here.
When the site has a Material block and a surface map (material-system), read
them here: the map already says which route holds the surface and why.
2. Pick the engine
Costs are JavaScript transferred over a static route, measured with probe.mjs
on 2026-11-12 against Next 16.4.5 and React 19.3.1. Measure your own route;
these show the order of magnitude.
| Need | Use | Cost | Recipe |
|---|---|---|---|
| The brand mark in liquid metal | LiquidMetal from @paper-design/shaders-react |
+15 kB | liquid-logo |
| Moving gradient, grain, noise, god rays behind a headline | MeshGradient and siblings from @paper-design/shaders-react |
+12 kB | shader-backdrop |
| Frosted or refracting panels over content | CSS backdrop-filter; an SVG displacement filter as a Chromium-only upgrade |
0 kB, no canvas | liquid-glass |
| Real geometry, camera, lights, models, or 3D interaction | @react-three/fiber + three |
+244 kB before any model | r3f-scene |
Paper Shaders draws one fragment shader on one canvas with no three.js, pauses
itself off-screen and in a hidden tab, and ships Static* variants. That is
why it is the default for everything flat.
Two libraries from the same tutorials that this pack does not build with:
@shadergradient/react. It runs a three.js scene for what Paper does in one shader: +285 kB in the same measurement. Version 2.4.20 (published 2025-12-08) imports the host'sthreewithout declaring it as a peer, and against[email protected]its shader fails to compile (Can not resolve #include <cube_uv_reflection_fragment>), so the canvas stays blank.shader-backdropsection 4 translates a ShaderGradient look into Paper settings.dashersw/liquid-glass-js.liquid-glasssection 4 has the findings; the npm package namedliquid-glass-jsis a different project.
Before installing:
- Check peers. Run
node .claude/skills/web-steward/peer-check.mjs --root .. R3F 9 and drei 10 declare React 19 peers. On React 18, either move to R3F 8 or upgrade React first (aweb-stewardjob). Do not install over an unmet peer. - Pin
0.xpackages exactly (pnpm add -E/npm i -E). Paper Shaders is 0.0.x, where any release may change behaviour.
3. Build — the wrapper contract
Every surface goes through one wrapper under components/effects/, so there is
one place to audit, budget, and swap engines. Each recipe skill carries a
wrapper that meets this contract:
- Client-only and late. Load it with
next/dynamicand{ ssr: false }. Use a static named import inside a leaf module, so the package tree-shakes to the one shader in use and the engine stays out of the route's first chunk. - A poster underneath. The container paints a token colour, a CSS
gradient, or the flat mark, so the page looks intentional at first paint,
before WebGL, and without WebGL. The canvas is
aria-hidden. - Check for the context first. Without WebGL2, Paper throws inside an effect, which leaves a console error. Check and skip, so the poster stays and the console stays clean.
- An art-directed still. Under
prefers-reduced-motion: reduce, render the surface stopped at a chosen moment. Pick the moment by looking at it; it is the version a reduced-motion reader gets, so design it instead of accepting frame 0.
Установить gpu-surface в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gpu-surface?
Decide on, budget, and prove one GPU-rendered surface on a web page — a shader backdrop, liquid metal on a logo, a glass panel, or a React Three Fiber scene. Use when a task adds, changes, or reviews a canvas, shader, or 3D element; when someone shares a ShaderGradient, Paper Shaders, Liquid Logo, Liquid Glass, three.js, or react-three-fiber link and asks for the effect; or before installing @paper-design/shaders-react, @react-three/fiber, three, or a similar package. Checks the repo's taste rules first, picks the lightest engine, hands the build to the matching recipe skill (liquid-logo, shader-backdrop, liquid-glass, r3f-scene), and runs the probe that proves the result. Runs inside web-release-gate phase 3.
Как установить скилл gpu-surface?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gpu-surface запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic