Skip to content

Guide · Agent skill

How to use the Shader Cursor Trail agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The add-shader-cursor-trail skill is a set of instructions and helper files that an AI coding agent reads so it can add one specific mouse effect to a website: a white, twinkling halftone dot trail that follows the cursor, rendered with WebGPU, a modern browser graphics API. It is aimed at front-end developers and teams who want to reproduce the Tidal Commons hero effect in their own React, Next.js, Vue, Svelte, Solid or plain web project. After this guide you will know how to install the skill, how to ask for the effect in plain language, what your project needs, and what to check before shipping.

Shader Cursor TrailMengTo/Skills · MIT

Quick start

  1. 1Download the ZIP. Download the add-shader-cursor-trail ZIP from this page.
  2. 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for all projects, or into .claude/skills/ inside one project.
  3. 3Or upload it in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the ZIP.
  4. 4Make a natural request. Ask for the halftone cursor trail or WebGPU hero background, and name your framework.
  5. 5Let the agent install shaders. The agent installs the shaders package with your existing package manager and imports the matching framework subpath.
  6. 6Run the checks. Run your project's lint, typecheck or tests and production build, then the verification script for React code.
  7. 7Test the fallbacks. Confirm the static background shows without JavaScript, on touch, with reduced motion and in browsers without WebGPU.

What the skill makes the agent do

An agent skill is a folder of instructions (a SKILL.md file plus reference files, assets and optional scripts) that an AI agent loads when your request matches the skill's description. This one tells the agent how to build the exact Shaders WebGPU effect used on the Tidal Commons hero: a halftone dot trail, driven by the cursor, with chromatic ripples and film grain.

The skill treats the effect as progressive enhancement. The agent is told to keep the page's existing content, imagery and controls, and to keep the static first frame so the page still works without the effect.

  • Adds a full-bleed, aria-hidden shader layer behind the section content, with links and controls kept above it.
  • Shows the effect only on capable desktop browsers where motion is allowed and WebGPU is available.
  • Falls back to the original image or dark background for static, touch, reduced-motion, reduced-transparency, unsupported-browser and forced-colors visitors.
  • Unmounts the shader when the section leaves the screen so GPU work stops.
  • Tells the agent not to change the graph into other effects, add WebGL or Three.js, or hotlink Shaders preview assets.

Install the skill (ZIP download or Claude apps upload)

Download the add-shader-cursor-trail ZIP from this page. There are two ways to make it available to your agent.

For Claude Code, unzip the folder into ~/.claude/skills/ to make it available for all of your projects, or into a project's .claude/skills/ folder to make it available only in that project. For the Claude apps, upload the ZIP under Settings → Capabilities → Skills.

  • Personal install: unzip into ~/.claude/skills/
  • Project install: unzip into .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

Ask for the effect with a natural request

You do not need to type the skill name. The skill is triggered when your request matches its description, so describe what you want in plain words. The source lists these trigger phrases: asking for this shader mouse effect, a halftone cursor trail, an interactive WebGPU hero or contact background, or a reusable cursor-following shader layer.

Name your framework and project type in the request so the agent can pick the right subpath. The skill covers React, Next.js, Vue, Svelte, Solid and plain web projects.

  • Add the Tidal-style halftone cursor trail to the hero section of my Next.js site.
  • Make a reusable cursor-following WebGPU shader layer for my Vue landing page.
  • Add an interactive WebGPU background to the contact section of this Svelte project.

What the project needs before you start

The skill assumes a working front-end project and a few tools. It does not install Node.js or your browser for you.

The shaders npm package is required, along with its React, Vue, Svelte or Solid subpath (for example shaders/react). The agent installs it with your project's existing package manager. For Vite projects, the reference file says not to add shaders to optimizeDeps.exclude, because its dependencies need normal pre-bundling. Framework documentation is linked from the skill at shaders.com/docs/guide.

  • Node.js and your project's existing package manager
  • The shaders package and its framework subpath
  • A WebGPU-capable browser to see the effect (other browsers show the static fallback)
  • Node.js to run the included verification script

Check the result with the verification script

For React implementations, the skill includes scripts/verify-cursor-trail.mjs. It checks the generated React code for the required shader structure. Run it with Node.js, passing the paths to the generated shader component, the gate component and the CSS file. Replace the placeholder path with the real location of the skill folder.

The skill also asks the agent to run your project's lint, typecheck or tests and a production build. Browser checks are listed too: static content with JavaScript off, keyboard access above the layer, touch, reduced motion, unsupported WebGPU, and no runtime requests to previews.shaders.com or data.shaders.com.

  • Run the lint, typecheck or test scripts that your project already has
  • Run a production build
  • Check keyboard focus, reduced motion and the no-WebGPU fallback in a browser
  • Confirm there are no runtime requests to previews.shaders.com or data.shaders.com
node /path/to/add-shader-cursor-trail/scripts/verify-cursor-trail.mjs path/to/CursorTrailShader.tsx path/to/CursorTrailGate.tsx path/to/cursor-trail.css

Safety notes: scripts and network use

This skill runs scripts and uses the network. The verification script is a Node.js file that reads the files you pass to it. Read it before running it on a project you care about.

The effect itself depends on the external shaders npm package and its hosted assets, so the project must be able to install that package. The skill tells the agent not to hotlink Shaders preview assets, and the checks look for runtime requests to two Shaders hosts. Note that the skill's own verification confirms this only for the checks it lists; review your deployed site as well.

  • The verification script runs locally with Node.js.
  • The shaders package is an external dependency.
  • Projects that cannot install that package or accept its hosted assets should not use this skill.

Tips for good results

Keep your request specific about the section you want the effect in. The skill is built around one hero or contact-style section with content above a full-bleed layer.

Expect the agent to keep the exact graph. If you want different colours, a different pattern or a generic cursor effect, this skill is the wrong tool, because it asks the agent to keep the graph rather than customise it. The skill allows adjusting presentation values such as opacity and blend mode.

Report-back matters. The skill asks the agent to report the chosen blend mode, fallback, capability gates, production-build result and any browser limitation. Do not accept a claim of visual WebGPU verification unless someone actually ran it in a compatible browser.

  • Name the section and framework in your request.
  • Accept opacity and blend-mode tweaks; ask for a different graph only if you want a different design.
  • Ask the agent for its verification report before you merge.

What people use it for

  • Adding an interactive halftone hero background to a Next.js marketing site.
  • Reproducing the Tidal Commons hero effect in a React or Vue project.
  • Adding a cursor-following WebGPU layer behind a contact section in a Svelte or Solid site.
  • Creating a reusable cursor-following shader layer for a plain web project that already uses the shaders package.

Frequently asked questions

Is the Shader Cursor Trail agent skill free to use?

The skill is published under the MIT licence, as listed on this page. The effect depends on the external shaders npm package, so check that package's terms as well as the skill's licence before you ship.

What do I need to use the add-shader-cursor-trail skill?

You need Node.js and your project's package manager, the shaders npm package with its framework subpath, and a WebGPU-capable browser to see the effect. Node.js is also needed to run the verification script. Without WebGPU the page falls back to its static background.

How do I install the skill for Claude?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ in a project. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.

Why does the cursor trail not show in my browser?

The effect only appears on capable desktop browsers with WebGPU, a fine hover pointer, and motion allowed. Touch devices, reduced-motion settings, reduced transparency and browsers without WebGPU all get the static background instead. Check your browser support and system settings first.

Can I use this skill with Vue, Svelte or Solid instead of React?

Yes. The skill lists Vue, Svelte, Solid and plain web projects, and the agent imports from the matching shaders subpath such as shaders/vue. The bundled React templates in assets/react/ and the React verification script apply only to React and Next.js code.

How is this different from a generic cursor effect?

This skill reproduces one specific effect: a white, twinkling halftone trail with chromatic ripples and film grain. It asks the agent to keep that graph rather than customise it, so it is not a general-purpose cursor library. If you want a different design, choose another tool.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you want to reproduce the Tidal Commons halftone cursor trail faithfully in a React, Next.js, Vue, Svelte or Solid project, and your site can install the shaders package. Pick a different tool if you need a generic or customisable cursor effect, or if your audience depends on broad browser compatibility, since the effect only shows on WebGPU-capable desktop browsers.

Download the skill