AgentSkillsCN

immersive-visuals-router

沉浸式视觉体验的主路由,融合 React Three Fiber、着色器、粒子、后期处理、GSAP 动画,以及音频效果。适用于构建 3D 网页体验、可视化工具、创意编程项目、互动装置,或任何需要多重视觉技术的项目。该路由可引导至六大专业领域路由,覆盖共计 29 项技能。

SKILL.md
--- frontmatter
name: immersive-visuals-router
description: Master router for immersive visual experiences combining React Three Fiber, shaders, particles, post-processing, GSAP animation, and audio. Use when building 3D web experiences, visualizers, creative coding projects, interactive installations, or any project requiring multiple visual technologies. Dispatches to 6 specialized domain routers covering 29 total skills.

Immersive Visuals Router

Master router dispatching to 6 domain routers for comprehensive visual experiences.

Routing Protocol

  1. Classify — Identify primary domains from user request
  2. Route to Domain — Select appropriate domain router(s)
  3. Combine Domains — Most projects need 3-4 domains together
  4. Load Skills — Domain routers will load specific skills

Domain Overview

DomainRouterSkillsFocus
3D Renderingr3f-router6React Three Fiber, scenes, materials, camera
Shadersshaders-router5GLSL, custom materials, visual effects
Particlesparticles-router4Particle systems, physics, GPU optimization
Post-Processingpostfx-router3Bloom, effects, EffectComposer
Animationgsap-router4GSAP tweens, timelines, scroll, React
Audioaudio-router3Playback, analysis, audio-reactive

Total: 6 routers, 25 specialized skills

Quick Route by Project Type

3D Scene (R3F Focus)

code
Primary:   r3f-router → Scene setup, components, materials
Secondary: postfx-router → Bloom, cinematic effects
Optional:  gsap-router → Camera animations

Audio Visualizer

code
Primary:   audio-router → Playback, analysis, reactive
Secondary: r3f-router → 3D scene for visuals
Supporting: shaders-router → Custom visual effects
           postfx-router → Bloom, glow
           particles-router → Beat-reactive particles

Creative Coding / Generative Art

code
Primary:   shaders-router → Custom fragment shaders
Secondary: r3f-router → Render pipeline
Supporting: postfx-router → Effects chain

Interactive Experience

code
Primary:   r3f-router → 3D scene, interaction
Secondary: gsap-router → Smooth animations
Supporting: postfx-router → Visual polish
           audio-router → Sound feedback

Countdown / Event Page

code
Primary:   gsap-router → Sequenced animations
Secondary: r3f-router → 3D elements
Supporting: postfx-router → Dramatic effects
           audio-router → Ambient, countdown audio
           particles-router → Celebration effects

Particle-Heavy Effect

code
Primary:   particles-router → Particle systems
Secondary: r3f-router → Scene setup
Supporting: postfx-router → Bloom for particles
           shaders-router → Custom particle shaders

Signal-Based Routing

Domain Detection Signals

r3f-router (3D Rendering):

  • "3D", "Three.js", "R3F", "React Three Fiber"
  • "scene", "mesh", "geometry", "camera"
  • "3D model", "GLTF", "environment"
  • "orbit controls", "transform"

shaders-router (Custom Shaders):

  • "shader", "GLSL", "fragment", "vertex"
  • "custom material", "uniform"
  • "procedural", "noise", "pattern"
  • "ray marching", "SDF"

particles-router (Particle Systems):

  • "particle", "emitter", "particle system"
  • "dust", "sparks", "confetti", "stars"
  • "instancing", "GPU particles"

postfx-router (Post-Processing):

  • "bloom", "glow", "post-processing"
  • "vignette", "chromatic aberration"
  • "depth of field", "color grading"
  • "EffectComposer"

gsap-router (Animation):

  • "GSAP", "GreenSock", "animate"
  • "timeline", "sequence", "tween"
  • "scroll animation", "ScrollTrigger"
  • "entrance animation"

audio-router (Audio):

  • "audio", "music", "sound"
  • "visualizer", "audio reactive"
  • "beat", "frequency", "FFT"
  • "Tone.js"

Domain Combinations

Cinematic 3D Scene

code
r3f-router     → Scene, camera, lighting
shaders-router → Custom materials
postfx-router  → Bloom, color grading, vignette
gsap-router    → Camera movements

Music Visualizer

code
audio-router     → Load music, analyze frequencies
r3f-router       → 3D visualization geometry
shaders-router   → Audio-reactive shaders
particles-router → Beat-triggered particles
postfx-router    → Bloom, chromatic aberration

Landing Page Hero

code
r3f-router     → Background 3D scene
gsap-router    → Text animations, scroll effects
postfx-router  → Subtle bloom, film grain

Interactive Installation

code
r3f-router       → 3D environment
particles-router → Interaction feedback
gsap-router      → Transition animations
audio-router     → Sound feedback
postfx-router    → Immersive effects

Product Showcase

code
r3f-router     → 3D product model
gsap-router    → Rotation, zoom animations
postfx-router  → Lighting effects, environment

Temporal Collapse Stack

Complete domain routing for the New Year countdown:

code
┌─────────────────────────────────────────────────┐
│           TEMPORAL COLLAPSE PROJECT             │
├─────────────────────────────────────────────────┤
│                                                 │
│  ┌─────────────┐  ┌─────────────┐              │
│  │ r3f-router  │  │gsap-router  │              │
│  │ - Scene     │  │ - Digit flip│              │
│  │ - Digits    │  │ - Sequences │              │
│  │ - Camera    │  │ - Countdown │              │
│  └──────┬──────┘  └──────┬──────┘              │
│         │                │                      │
│  ┌──────┴────────────────┴──────┐              │
│  │       postfx-router          │              │
│  │  - Bloom (cosmic glow)       │              │
│  │  - Chromatic aberration      │              │
│  │  - Vignette (void edge)      │              │
│  └──────────────┬───────────────┘              │
│                 │                               │
│  ┌──────────────┴───────────────┐              │
│  │      particles-router        │              │
│  │  - Time dilation particles   │              │
│  │  - Star field                │              │
│  │  - Celebration burst         │              │
│  └──────────────┬───────────────┘              │
│                 │                               │
│  ┌──────────────┴───────────────┐              │
│  │       audio-router           │              │
│  │  - Cosmic ambient loop       │              │
│  │  - Countdown ticks           │              │
│  │  - Beat-reactive visuals     │              │
│  │  - Celebration music         │              │
│  └──────────────────────────────┘              │
│                                                 │
└─────────────────────────────────────────────────┘

Domain Responsibilities

DomainTemporal Collapse Role
r3f3D countdown digits, camera orbit, environment
shadersDigit morphing effect, custom glow material
particlesTime dilation particles, star field, celebration
postfxBloom on digits, vignette, chromatic on beat
gsapDigit flip animation, intensity ramp, celebration
audioAmbient loop, ticks, beat detection, celebration

Color Palette Reference

javascript
const TEMPORAL_PALETTE = {
  void: '#050508',      // Background
  cyan: '#00F5FF',      // Primary glow
  magenta: '#FF00FF',   // Accent
  gold: '#FFD700',      // Celebration highlight
  white: '#FFFFFF'      // Text, bright elements
};

Project Initialization Guide

Step 1: Identify Core Requirements

  • What is the primary visual experience?
  • Is there audio involvement?
  • Does it need animation/interaction?
  • What level of visual fidelity?

Step 2: Select Primary Domain

Choose the domain that represents the main technical challenge.

Step 3: Add Supporting Domains

Based on secondary requirements:

  • Need glow effects? → postfx-router
  • Need smooth animations? → gsap-router
  • Need particles? → particles-router
  • Need audio? → audio-router
  • Need custom materials? → shaders-router

Step 4: Load Domain Skills

Each domain router will direct to specific skills.

Performance Considerations

By Domain

DomainPerformance ImpactOptimization
r3fMedium-HighLOD, frustum culling
shadersLow-High*Simplify math, reduce loops
particlesHighGPU instancing, LOD
postfxMedium-HighReduce passes, resolution
gsapLowKill unused tweens
audioLowAppropriate FFT size

*Depends on shader complexity

Recommended Limits

  • Particles: 10,000-50,000 with instancing
  • Post-processing passes: 3-5 max
  • Shader uniforms: Keep minimal
  • Audio FFT: 128-256 for reactive, 1024+ for visualization

Fallback Routing

  • "3D" mentioned → Start with r3f-router
  • "Visualizer" mentionedaudio-router + r3f-router
  • "Animation" onlygsap-router
  • "Effect" unclearpostfx-router
  • No clear signals → Ask about project type

Skill Dependencies

code
r3f-router
├── Independent (can use alone)
└── Enhanced by: shaders, postfx, particles

shaders-router
├── Requires: r3f (for Three.js context)
└── Enhanced by: postfx

particles-router
├── Requires: r3f (for scene)
└── Enhanced by: postfx (bloom), shaders (custom)

postfx-router
├── Requires: r3f (for scene)
└── Enhanced by: shaders (custom effects)

gsap-router
├── Independent (can use alone)
└── Enhanced by: r3f (3D animation)

audio-router
├── Independent (can use alone)
└── Enhanced by: all domains for reactive visuals

Quick Reference Matrix

Project TypeR3FShadersParticlesPostFXGSAPAudio
3D Scene-
Visualizer-
Landing Page--
Particle Effect--
Countdown
Product 3D---
Generative Art--

● Required ○ Optional - Not needed