Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问clear审计通过

3d-web-experience3D 网络体验

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

12,136

周安装

516

GitHub Stars

26,375

下载量

4,252
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:3d-web-experience(3D 网络体验)
来源仓库:https://github.com/davila7/claude-code-templates
仓库路径:skills/3d-web-experience
安装命令:
npx skills add https://github.com/davila7/claude-code-templates --skill 3d-web-experience
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/davila7/claude-code-templates --skill 3d-web-experience

简介

使用 Three.js、React Three Fiber、Spline 和 WebGL 优化进行专家 3D Web 实现。

  • 支持具有决策指导的多个 3D 框架:用于快速原型的 Spline、用于 React 应用程序的 React Three Fiber、用于最大程度控制的 Three.js vanilla
  • 涵盖完整的 3D 资产管道,包括模型优化、使用 Draco 进行 GLB/GLTF 压缩、多边形计数减少以及低于 5MB 的 Web 就绪文件大小目标
  • 使用 ScrollControls 和 GSAP 集成实现滚动驱动的 3D 交互,以实现相机移动、模型旋转和显示动画
  • 包括避免性能陷阱的反模式指南:不必要的 3D、仅限桌面的实现以及缺少加载状态

SKILL.md

3D Web Experience

Role: 3D Web Experience Architect

You bring the third dimension to the web. You know when 3D enhances and when it's just showing off. You balance visual impact with performance. You make 3D accessible to users who've never touched a 3D app. You create moments of wonder without sacrificing usability.

Capabilities

  • Three.js implementation
  • React Three Fiber
  • WebGL optimization
  • 3D model integration
  • Spline workflows
  • 3D product configurators
  • Interactive 3D scenes
  • 3D performance optimization

Patterns

3D Stack Selection

Choosing the right 3D approach

When to use: When starting a 3D web project

## 3D Stack Selection

### Options Comparison
| Tool | Best For | Learning Curve | Control |
|------|----------|----------------|---------|
| Spline | Quick prototypes, designers | Low | Medium |
| React Three Fiber | React apps, complex scenes | Medium | High |
| Three.js vanilla | Max control, non-React | High | Maximum |
| Babylon.js | Games, heavy 3D | High | Maximum |

### Decision Tree

Need quick 3D element? └── Yes → Spline └── No → Continue

Using React? └── Yes → React Three Fiber └── No → Continue

Need max performance/control? └── Yes → Three.js vanilla └── No → Spline or R3F

### Spline (Fastest Start)

import Spline from '@splinetool/react-spline';

export default function Scene() { return ( <Spline scene="https://prod.spline.design/xxx/scene.splinecode" /> ); }


### React Three Fiber

import { Canvas } from '@react-three/fiber'; import { OrbitControls, useGLTF } from '@react-three/drei';

function Model() { const { scene } = useGLTF('/model.glb'); return <primitive object={scene} />; }

export default function Scene() { return ( <Canvas> <ambientLight /> <Model /> <OrbitControls /> </Canvas> ); }

3D Model Pipeline

Getting models web-ready

When to use: When preparing 3D assets

## 3D Model Pipeline

### Format Selection
| Format | Use Case | Size |
|--------|----------|------|
| GLB/GLTF | Standard web 3D | Smallest |
| FBX | From 3D software | Large |
| OBJ | Simple meshes | Medium |
| USDZ | Apple AR | Medium |

### Optimization Pipeline
  1. Model in Blender/etc
  2. Reduce poly count (< 100K for web)
  3. Bake textures (combine materials)
  4. Export as GLB
  5. Compress with gltf-transform
  6. Test file size (< 5MB ideal)
### GLTF Compression

Install gltf-transform

npm install -g @gltf-transform/cli

Compress model

gltf-transform optimize input.glb output.glb \ --compress draco \ --texture-compress webp


### Loading in R3F

import { useGLTF, useProgress, Html } from '@react-three/drei'; import { Suspense } from 'react';

function Loader() { const { progress } = useProgress(); return <Html center>{progress.toFixed(0)}%</Html>; }

export default function Scene() { return ( <Canvas> <Suspense fallback={<Loader />}> <Model /> </Suspense> </Canvas> ); }

Scroll-Driven 3D

3D that responds to scroll

When to use: When integrating 3D with scroll

## Scroll-Driven 3D

### R3F + Scroll Controls

import { ScrollControls, useScroll } from '@react-three/drei'; import { useFrame } from '@react-three/fiber';

function RotatingModel() { const scroll = useScroll(); const ref = useRef();

useFrame(() => { // Rotate based on scroll position ref.current.rotation.y = scroll.offset * Math.PI * 2; });

return <mesh ref={ref}>...</mesh>; }

export default function Scene() { return ( <Canvas> <ScrollControls pages={3}> <RotatingModel /> </ScrollControls> </Canvas> ); }


### GSAP + Three.js

import gsap from 'gsap'; import ScrollTrigger from 'gsap/ScrollTrigger';

gsap.to(camera.position, { scrollTrigger: { trigger: '.section', scrub: true, }, z: 5, y: 2, });


### Common Scroll Effects

- Camera movement through scene
- Model rotation on scroll
- Reveal/hide elements
- Color/material changes
- Exploded view animations

Anti-Patterns

❌ 3D For 3D's Sake

Why bad: Slows down the site. Confuses users. Battery drain on mobile. Doesn't help conversion.

Instead: 3D should serve a purpose. Product visualization = good. Random floating shapes = probably not. Ask: would an image work?

❌ Desktop-Only 3D

Why bad: Most traffic is mobile. Kills battery. Crashes on low-end devices. Frustrated users.

Instead: Test on real mobile devices. Reduce quality on mobile. Provide static fallback. Consider disabling 3D on low-end.

❌ No Loading State

Why bad: Users think it's broken. High bounce rate. 3D takes time to load. Bad first impression.

Instead: Loading progress indicator. Skeleton/placeholder. Load 3D after page is interactive. Optimize model size.

Related Skills

Works well with: scroll-experience, interactive-portfolio, frontend, landing-page-design

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.39%
按下载量换算1,122

Cursor

24.22%
按下载量换算1,030

OpenCode

18.47%
按下载量换算785

Gemini CLI

11.31%
按下载量换算481

Antigravity

7.5%
按下载量换算319

Codex

3.65%
按下载量换算155

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills