本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)7.2k · #13393

add-shader-cursor-trail

できること

このスキルは、カーソルが柔らかい点線の軌跡を残す、Webページのシェーダー効果を加える作業をAIエージェントに案内します。対応している環境では印象的なヒーローを、それ以外の訪問者には簡素な代替表示を用意したいデザイナーや開発者向けです。

使う場面

  • ✓ヒーローセクションで、カーソルに追従する点線や網点の軌跡が欲しいとき。
  • ✓スマートフォンや動きを減らす設定の訪問者向けに、WebGPUの効果を無効にしたいとき。
  • ✓セクションのテキストや画像を変えずに、効果を加えたいとき。

スキルのリンク

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/add-shader-cursor-trail/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/add-shader-cursor-trail/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のヒーローセクションに網点のカーソル軌跡を加えてください。スマートフォン用には、静止画を表示してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、シェーダーのパッケージを導入し、ページの内容の後ろに、全幅の効果の層を置きます。機能が対応したデスクトップのブラウザでだけ読み込み、セクションが画面外にあるときは一時停止します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Add Shader Cursor Trail

Implement the exact trail as progressive enhancement. Preserve the host section's semantic content, imagery, controls, and static first frame.

Workflow

  1. Inspect the framework, rendering mode, existing motion stack, layer order, reduced-motion rules, and package manager. Do not add another smooth-scroll engine or replace the section's content.
  2. Install shaders with the existing package manager. Import from the matching framework subpath: shaders/react, shaders/vue, shaders/svelte, or shaders/solid.
  3. Read references/implementation.md before implementation. Keep the six shader nodes, their order, both invisible drivers, and both ID linkages exact.
  4. For React or Next.js, copy and adapt the files in assets/react/. Keep the lightweight capability gate separate from the heavy shader module so ineligible visitors do not request the shader bundle.
  5. Place one full-bleed, aria-hidden="true" shader layer behind the section content. Keep links and controls above it. Do not set pointer-events: none on the canvas unless cursor tracking is verified to use global events.
  6. Gate loading on WebGPU, a fine hover pointer, normal motion/transparency preferences, document visibility, window focus, and section intersection. Unmount when the section leaves view so GPU work stops.
  7. Keep the original image or dark background as the complete fallback. Hide the layer for reduced motion, reduced transparency, coarse/no-hover pointers, and forced colors.
  8. Adapt only presentation variables such as opacity and blend mode. Do not change the graph to decorative noise, add WebGL/Three.js, or hotlink Shaders preview assets.

Validate

Run the project's lint, typecheck/tests, and production build. For React implementations, also run:

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

Verify the static section with JavaScript unavailable, keyboard access to content above the layer, touch behavior, reduced motion, unsupported WebGPU, focus/visibility cleanup, and absence of runtime requests to previews.shaders.com or data.shaders.com.

Report the chosen blend mode, fallback, capability gates, production-build result, and any browser limitation. Do not claim WebGPU visual verification unless it was actually performed in a compatible browser.

よくある質問

スマートフォンの訪問者には何が見えますか?

タッチ端末や、動きを減らす設定の訪問者には、元の静止画か最初のフレームを保つとスキルは述べています。

ページが遅くなりませんか?

シェーダーは必要なときだけ読み込み、セクションが画面から外れると止めます。

すべてのブラウザで動きますか?

いいえ。WebGPUの対応に依存するので、非対応のブラウザ向けの代替表示も含まれています。

詳細

作者による元の説明

Add the Shaders WebGPU mouse effect used for the Tidal Commons hero: a white twinkling halftone cursor trail driven by ChromaFlow, masked through a DotGrid, finished with chromatic ripples and film grain, and protected by static, touch, accessibility, SSR, and performance fallbacks. Use when a user asks for this shader mouse effect, a halftone cursor trail, an interactive WebGPU hero/contact background, or a reusable cursor-following shader layer in React, Next.js, Vue, Svelte, Solid, or plain web projects.

repo: MengTo/Skills

人気

GitHubのスター
7.2k
ランキング
#13393
ライセンス
MIT
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル