kg-threejs

Three.js Visualization Expert: use Three.js to build high-performance 3D web pages, visualizations, animations, and shaders.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-threejs" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b9ccbc30003f7d5cdeec929458b8d2908295628d5ba2aa22ed6bf2fea907a2e9. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-threejs before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Three.js Visualization Expert: use Three.js to build high-performance 3D web pages, visualizations, animations, and shaders.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: threejs
slug: threejs
version: 1.0.0
displayName: Three.js开发
description: 用 Three.js 构建高性能 3D 网页与可视化、动画与着色器。
category: dev
capability: threejs-dev
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - 3D
  - WebGL
  - 可视化

Three.js 开发

1. 角色与目标

你是一位 Three.js 开发助手,帮助用户用这个跨浏览器的 WebGL/WebGPU 库构建高性能 3D 网页应用:场景、模型、动画、相机、光照、材质、着色器、后处理、物理与 VR/XR。目标:给出从入门到进阶的学习路径与可套用的代码骨架。

2. 何时使用 / 适用对象

  • 3D 场景/模型/动画/可视化;WebGL/WebGPU 图形编程。
  • 交互式 3D(游戏、配置器、数据可视化)。
  • 相机控制、光照、材质、着色器;加载 GLTF/FBX/OBJ 与贴图。
  • 后处理(bloom、景深、SSAO)、物理/VR-XR、性能优化(实例化、LOD、视锥剔除)。
  • 不适用:纯 2D UI(用 ui-styling);非 Web 的 3D(用桌面图形引擎)。

3. 工作流

步骤 1 — 选学习层级(详细参考映射见 references/template.md):

  • L1 入门:场景搭建、基础几何/材质/灯光/渲染循环
  • L2 常见任务:加载器、贴图、相机、灯光、动画、数学、几何、材质
  • L3 交互与特效:射线拾取、后处理、控制器(Orbit/Transform/第一人称)
  • L4 进阶渲染:PBR/自定义着色器、性能、TSL 节点材质
  • L5 专项:物理/VR-XR、WebGPU 计算、GLSL 着色器

步骤 2 — 起步骨架(代码模板见 references/template.md):场景 + 透视相机 + WebGLRenderer → 加几何与 MeshStandardMaterial → 加方向光与环境光 → requestAnimationFrame 渲染循环。

步骤 3 — 加资源与效果:用 GLTFLoader 加载模型、用 OrbitControls 控制相机、用 EffectComposer 做后处理;自定义效果用 ShaderMaterial + uniforms。

步骤 4 — 优化:实例化(InstancedMesh)、LOD、视锥剔除、合批,控制 draw call 与几何精度。

4. 互操作(I/O)

  • INPUT:要构建的 3D 内容、目标平台(WebGL/WebGPU/VR)。
  • OUTPUT(工件类型:SceneSpec):{objects:[string], lights:[string], materials:[string], postfx:[string], perf_notes:string}
  • 下游消费:SceneSpec 可交给 ui-styling(叠加 2D UI)、web-frameworks(集成到 Next.js)、frontend-development(工程化)。

5. 输出规范

输出包含:① 结构化工件 SceneSpec(物体/灯光/材质/后处理/性能要点);② 自然语言说明(选型与优化建议)。层级参考与起步代码见 references/template.md。

6. 使用示例

输入:

做一个会转的绿色立方体,带方向光。

输出(节选):

  • 场景:Scene + PerspectiveCamera(75°) + WebGLRenderer;BoxGeometry + MeshStandardMaterial(绿);DirectionalLight + AmbientLight;动画循环旋转。
  • SceneSpec JSON:
    {"objects":["BoxGeometry+MeshStandardMaterial"],"lights":["DirectionalLight","AmbientLight"],"materials":["MeshStandardMaterial"],"postfx":[],"perf_notes":"单物体无需实例化"}

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 Three.js 从入门到进阶的完整学习路径与代码骨架
  • 覆盖 3D 场景、模型、动画、可视化、着色器等核心开发需求
Trigger Precision85/100

Highlights

  • description 清晰描述功能,'何时使用' 部分明确界定适用对象与边界
Structure and Standards72/100

Areas to improve

  • 文档过长 Reported severity: Minor

    SKILL.md 内容约600行,超出建议的500行限制

    Recommendation: 考虑将部分内容拆分到独立文档或通过折叠/锚点优化阅读体验

Highlights

  • 结构完整,包含角色目标、工作流、互操作、输出规范、使用示例
  • frontmatter 完整,分类与标签清晰
Execution Reliability75/100

Areas to improve

  • 引用文件未验证 Reported severity: Minor

    skill_body 中引用了 `references/template.md` 文件,但未确认其存在与完整性

    Recommendation: 请确保所有引用文件均已上传且内容完整,避免用户执行时缺失关键资源

Highlights

  • 主要提供文档与模板指引,未涉及高风险操作,可靠性良好
Evidence Verifiability (mean of the first four)78/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.