Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

paper-shaders

БесплатноБез исполняемых скриптовНе проверен

Integrate and diagnose Paper Shaders from paper-design/shaders: choose vanilla or React packages, mount a named shader, tune uniforms and rendering bounds…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Paper Shaders

Operate the named canvas shader runtime, not a layout system or a design generator. The pinned source observation and license record are in references/upstream.md. Read that reference before selecting an API, version, or lifecycle change.

Route first

Request Primary path
Decide whether Paper fits an existing surface Fit check
Add a named shader to React React integration
Add a shader to another browser frontend Vanilla integration
Stop animation, resize, reduce GPU work, or remove a mount Lifecycle diagnosis
Write arbitrary GLSL or build a Three.js scene Route out; this package is not required
Adopt a ready-made modal, bento block, or grid UI Layouts or the existing component owner

A generic gradient can remain CSS. Require an actual runtime benefit before adding WebGL. For broad visual recipe selection, use web-design when available. For measured animation leaks or long-session slowdowns, use optimize-web-animations when available. Those are optional adjacent owners; this operator's source reference is self-contained.

1. Establish the integration contract

Inspect the consuming package manifest, framework boundary, existing effects, and target container. Record the chosen shader, decorative or meaningful role, dimensions, and motion policy. Select exactly one entry point: @paper-design/shaders or @paper-design/shaders-react. The inspected packages are both 0.0.81; React declares React 18/19 peers. Upstream warns that even 0.0.x updates can break compatibility; choose an exact version. A repository commit pin proves source identity, not that an npm tarball was verified. Finish intake with a package/version choice and an explicit fallback, not an install command.

2. Gate operations by their effects

Public source inspection needs no package execution. Before installation, name the dependency version, package-manager command, lockfile, and affected files. Obtain explicit approval before installing, running downloaded code, or fetching remote image assets. A package install may run scripts; source inspection does not authorize those scripts. Keep textures local and rights-cleared by default; remote textures add network and CORS concerns. Deployment, publishing, accounts, design services, and paid generation need separate authorization. Never request credentials to use the open-source shader runtime.

3. Integrate through the inspected surface

React integration

Use a named component exported by the selected installed version, such as MeshGradient. The inspected component accepts colors, distortion, swirl, speed, and frame. Its shared mount accepts width/height or ordinary div styles plus rendering bounds. Place it within the consuming framework's client boundary; keep server-rendered content independent. Give the wrapper a nonzero explicit size so the canvas has a real layout box. The wrapper creates the vanilla mount in an effect and calls dispose() on effect cleanup. Do not start a second requestAnimationFrame loop to drive a built-in animated component. For image shaders, inspect that component's actual params before adapting the gradient example.

Vanilla integration

Use ShaderMount with a real mounted HTMLElement, the selected fragment shader, and matching uniforms. Read that shader's exported uniform types; React props are not raw uniform names. Create the mount only after browser DOM APIs are available. Keep one owner for the mount and call its dispose() when replacing or removing the surface. Update supported values through setUniforms, setSpeed, setFrame, and the pixel-bound setters. Finish integration with one mount per intended surface and an identified cleanup owner.

4. Preserve accessibility and fallback behavior

The source requests WebGL2 and throws when unavailable; it does not provide a CSS fallback. Treat fallback handling as consuming-app work, not a promised library feature. Keep readable HTML text and controls above a stable CSS color/gradient or a local still image. Mark only purely decorative wrappers hidden from assistive technology; never hide meaningful children. Ensure the decorative layer cannot intercept controls or reduce text/focus contrast. The inspected mount does not read prefers-reduced-motion automatically. Map reduced motion and an explicit pause control to speed=0; choose a stable frame if needed. Retain the fallback when WebGL is disabled or initialization fails; report failures rather than hiding them. Test reduced motion on first load and preference change, not only after animation starts.

5. Diagnose performance and lifecycle at the owner

The runtime already pauses animation for hidden documents and offscreen mounts. Avoid layering another observer or loop unless a measured gap requires it. speed=0 cancels recurring animation frames; updates and resizes may still render a frame. The inspec

Полный SKILL.md на GitHub

Установить paper-shaders в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob
WebFetch

Вложенные файлы

evals/evals.jsonreferences/upstream.md

FAQ

Что делает скилл paper-shaders?

Integrate and diagnose Paper Shaders from paper-design/shaders: choose vanilla or React packages, mount a named shader, tune uniforms and rendering bounds, freeze motion, and release its WebGL resources. Use when the request names Paper Shaders, @paper-design/shaders, @paper-design/shaders-react, or asks to adopt their MeshGradient or ShaderMount. Route generic shader authoring, Three.js scenes, and UI Layouts component adoption to their own owners.

Как установить скилл paper-shaders?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл paper-shaders запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить paper-shaders с