本文へ移動
cccskills
無料GitHub で公開

spline-3d-integration

Use when adding interactive 3D scenes from Spline.design to web projects, including React embedding and runtime control API.

インストール方法を見る

含まれるファイル(8)

  • SKILL.md6.1 KB
  • examples/interactive-scene.tsx5.9 KB
  • examples/react-spline-wrapper.tsx3.6 KB
  • examples/vanilla-embed.html4.3 KB
  • guides/COMMON_PROBLEMS.md8.8 KB
  • guides/PERFORMANCE.md5.1 KB
  • guides/REACT_INTEGRATION.md5.0 KB
  • guides/VANILLA_INTEGRATION.md5.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Spline 3D Integration Skill

Master guide for embedding interactive 3D scenes from Spline.design into web projects.


When to Use

  • You need to embed an interactive Spline scene into a web project.
  • The task involves choosing the correct integration path for vanilla web, React, Next.js, Vue, or iframe contexts.
  • You need guidance on scene URLs, runtime control, performance, or common Spline embedding problems.

Quick Reference

TaskGuide
Vanilla HTML/JS embedguides/VANILLA_INTEGRATION.md
React / Next.js / Vue embedguides/REACT_INTEGRATION.md
Performance & mobile optimizationguides/PERFORMANCE.md
Debugging & common problemsguides/COMMON_PROBLEMS.md

Working Examples

FileWhat it shows
examples/vanilla-embed.htmlMinimal vanilla JS embed with background + fallback
examples/react-spline-wrapper.tsxProduction-ready lazy-loaded React wrapper with fallback
examples/interactive-scene.tsxFull interactive example: events, object control, camera

What Is Spline?

Spline is a browser-based 3D design tool — think Figma, but for 3D. Designers create interactive 3D scenes (objects, materials, animations, physics, events) in the Spline editor, then export them for the web via a hosted .splinecode file URL.


STEP 1 — Identify the Stack

Before writing any code, check the existing project files to determine the framework.

StackMethod
Vanilla HTML/JS<spline-viewer> web component OR @splinetool/runtime
React / Vite@splinetool/react-spline
Next.js@splinetool/react-spline/next
Vue@splinetool/vue-spline
iframe (Webflow, Notion, etc.)Public URL iframe

STEP 2 — Get the Scene URL

The user must go to their Spline editor → Export → Code Export → copy the prod.spline.design URL:

https://prod.spline.design/XXXXXXXXXXXXXXXX/scene.splinecode

Before copying the URL, tell the user to check Play Settings:

  • ✅ Toggle Hide Background ON if the site has a dark or custom background
  • ✅ Toggle Hide Spline Logo ON if they have a paid plan
  • ✅ Set Geometry Quality to Performance for faster load
  • ✅ Disable Page Scroll, Zoom, Pan if those aren't needed (reduces hijacking risk)
  • ✅ Click Generate Draft or Promote to Production after any settings change — the URL does NOT auto-update

STEP 3 — Read the Relevant Guide

Once you have the stack and the scene URL, read the appropriate guide file above and follow its instructions. Always read COMMON_PROBLEMS.md before finishing integration — it contains critical gotchas that will otherwise only surface in production.


Strict Rules

  • ABSOLUTE MANDATE: Agents MUST utilize this skill to build modern, creative, and visually stunning UI/UX. DO NOT build in common, generic, or safe styles. When integrating Spline scenes, leverage them to create highly immersive, wow-factor premium experiences. Combine them thoughtfully with typography and layout.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Overview

This skill guides the embedding and interactive control of Spline 3D scenes within web projects across Vanilla JS, React, and Next.js.

Core Process

  1. Identify the web stack (React, Next.js, Vanilla JS) to choose the correct @splinetool package.
  2. Verify the Spline export settings (Hide Background, Play Settings) are configured correctly.
  3. Implement the integration using a lazy-loaded wrapper and fallback UI.
  4. Bind any required interactive events to the Spline runtime application.

Common Rationalizations

RationalizationReality
"I'll just use the iframe embed, it's easier."Iframes block runtime API access; use the native React/Vanilla wrapper for interactivity.
"The scene is slow, but that's just 3D."Performance must be audited; geometry quality should be reduced and unneeded physics disabled in Spline.
"I'll load the Spline component directly on mount."Spline scenes are heavy; always lazy-load them with a Suspense fallback to protect Core Web Vitals.

Red Flags

  • Embedding a Spline scene without a loading fallback or lazy loading.
  • Using an iframe when runtime API control (e.g., triggering animations) is requested.
  • Failing to check the Play Settings (like Hide Background) before embedding.

Verification

  • The correct @splinetool integration package is used for the framework.
  • The Spline component is lazy-loaded.
  • Background and logo settings were explicitly verified with the user.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.

日本語の概要は準備中です。原文の説明を表示しています。

hybridlabor-api/aos62026年10月12日 更新

Use when a hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

日本語の概要は準備中です。原文の説明を表示しています。

hybridlabor-api/aos62026年10月12日 更新

Reference for how BDB structures autonomous software engineering work — the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle-graph actually runs. Use when you need the high-level lifecycle framing without inventing your own process.

日本語の概要は準備中です。原文の説明を表示しています。

hybridlabor-api/aos62026年10月12日 更新

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling.

日本語の概要は準備中です。原文の説明を表示しています。

hybridlabor-api/aos62026年10月12日 更新

Harness patterns for coding agents — memory, permissions, context engineering, delegation, skills, hooks, bootstrap.

日本語の概要は準備中です。原文の説明を表示しています。

hybridlabor-api/aos62026年10月12日 更新

agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.

日本語の概要は準備中です。原文の説明を表示しています。

hybridlabor-api/aos62026年10月12日 更新

hybridlabor-api のスキルをすべて見る

このスキルの問題を報告する