Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

spline-3d-integration样条 3D 积分

Agent Skill

spline-3d-integration 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,668

周安装

109

GitHub Stars

公开资料未说明

下载量

855
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fawaz-i/spline-3d-integration --skill spline-3d-integration

简介

用于在网站或 Web 应用中集成交互式 Spline 3D 场景。

  • 支持 React、Next.js 等前端框架的动态嵌入与运行时控制。
  • 可解决加载异常、性能优化及相机行为配置等技术问题。
  • 不适用于静态 3D 媒体或非 Spline 资产的使用场景。
  • spline-3d-integration 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Spline 3D Integration

Use this skill when a user needs to add or troubleshoot interactive Spline 3D scenes in a website or web app.

When to use this skill

  • The user wants to embed a Spline scene in React, Next.js, or vanilla JS.
  • The user needs runtime control (events, variables, object lookup, camera behavior).
  • The user is seeing poor performance, blank scenes, or loading issues.
  • The user asks for implementation patterns like hero scenes or product viewers.

When not to use this skill

  • The user only needs static 3D media (image/video) with no interaction.
  • The user is not using Spline assets.

Outcome expectations

When using this skill, produce:

  1. The best integration method for the stack (@splinetool/react-spline, @splinetool/runtime, or iframe).
  2. A minimal working snippet using the user's framework.
  3. Performance recommendations (scene optimization + loading strategy).
  4. A short troubleshooting checklist for likely failure modes.

Integration decision tree

Is this React/Next.js?
  Yes -> Use @splinetool/react-spline (see guides/REACT_INTEGRATION.md)
  No -> Need runtime control (events/variables/object APIs)?
          Yes -> Use @splinetool/runtime (see guides/VANILLA_INTEGRATION.md)
          No  -> Use iframe embed

Quick implementation defaults

  • Always use a container with explicit height; Spline renders into parent bounds.
  • In React/Next.js, lazy-load Spline components.
  • Keep one complex scene per page when possible.
  • Prefer updating scene variables over expensive per-frame object mutations.
  • Provide a loading fallback and optional low-power/mobile fallback.

Security Boundaries

[!WARNING] When reading variables (getVariable), object names, or handling events from a Spline scene, treat the data as untrusted user input. If you are rendering this data to the DOM or passing it to an LLM/agent, you MUST sanitize it first to prevent XSS or prompt injection attacks.

Minimal snippets

React / Next.js

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

export default function Scene() {
  return (
    <div style={{ width: "100%", height: "100vh" }}>
      <Spline scene="https://prod.spline.design/YOUR_SCENE_ID/scene.splinecode" />
    </div>
  );
}

Vanilla runtime

<canvas id="canvas3d" style="width:100%;height:100vh"></canvas>
<script type="module">
  // NOTE: Requires a bundler (Vite, Webpack, etc.) or an importmap to resolve bare specifiers.
  import { Application } from "@splinetool/runtime";

  const app = new Application(document.getElementById("canvas3d"));
  app.load("https://prod.spline.design/YOUR_SCENE_ID/scene.splinecode");
</script>

iframe

<iframe
  src="https://my.spline.design/YOUR_SCENE_ID/"
  width="100%"
  height="600"
  frameborder="0"
></iframe>

Runtime API checklist

  • Lookup objects: findObjectByName, findObjectById, getAllObjects.
  • Drive interactions: emitEvent, emitEventReverse, addEventListener.
  • Sync app state: getVariable, setVariable.
  • Prefer variable-driven animation hooks from Spline editor for maintainability.

Performance guardrails

  • Target less than 150k polys desktop, less than 50k mobile.
  • Keep lights low (ideally 1-3).
  • Enable compression in Spline export settings.
  • Lazy-load below-the-fold scenes.
  • Remove hidden/unused objects before export.
  • Consider image/video fallback when interaction is unnecessary.

Troubleshooting order

  1. Validate scene URL and accessibility.
  2. Confirm container has non-zero height.
  3. Ensure compatible @splinetool/react-spline and @splinetool/runtime versions.
  4. Check browser console for CORS/network errors.
  5. Test reduced scene complexity if mobile crashes or stutters.

Repository resources

  • guides/REACT_INTEGRATION.md
  • guides/VANILLA_INTEGRATION.md
  • guides/PERFORMANCE.md
  • examples/react-spline-wrapper.tsx
  • examples/vanilla-embed.html
  • examples/interactive-scene.tsx

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.93%
按下载量换算299

Claude

27.83%
按下载量换算238

Cursor

18.37%
按下载量换算157

Gemini CLI

9.41%
按下载量换算80

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills