skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
skinnye/3d-web-pack48 installs

scaffold-3d-site

Scaffold a new 3D/WebGL website project from scratch with a modern, production-ready stack (Vite + React + TypeScript + React Three Fiber + drei + postprocessing, or Next.js variant). Use when the user wants to START a new 3D web project, set up a Three.js/R3F boilerplate, or create a fresh 3D site skeleton.

How do I install this agent skill?

npx skills add https://github.com/skinnye/3d-web-pack --skill scaffold-3d-site
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill is safe and follows standard development practices for scaffolding 3D web projects using Vite or Next.js with React Three Fiber. No malicious patterns or security risks were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Scaffold a 3D website

Set up a clean, performant starting point for a 3D web project. Confirm the two choices below from the user's request (or pick the default and state it), then execute.

Choices

  1. Renderer app: Vite SPA (default — fastest for pure 3D experiences) OR Next.js (when SEO/SSR/marketing pages matter, 3D as islands).
  2. Quality preset: lite (core 3D only) or full (adds motion + postprocessing + physics). Default full.

Step 1 — Create the app

Vite + React + TS (default):

npm create vite@latest my-3d-site -- --template react-ts
cd my-3d-site

Next.js (alternative):

npx create-next-app@latest my-3d-site --ts --app --eslint
cd my-3d-site

Step 2 — Install the 3D stack

Core (always):

npm i three @react-three/fiber @react-three/drei
npm i -D @types/three

Full preset (add):

npm i @react-three/postprocessing postprocessing
npm i @react-three/rapier
npm i gsap @studio-freight/lenis
npm i zustand leva maath

Asset tooling (dev):

npm i -D @gltf-transform/cli

Step 3 — Create the scene skeleton

Make this structure (adapt to Vite src/ or Next app/):

src/
  components/
    Experience.tsx     # the 3D scene graph
    Scene.tsx          # <Canvas> wrapper + lights + environment
  hooks/
  shaders/
  lib/
  assets/models/
  assets/textures/

Scene.tsx (Vite/React example):

import { Canvas } from '@react-three/fiber'
import { Environment, OrbitControls, Loader } from '@react-three/drei'
import { Suspense } from 'react'
import { Experience } from './Experience'

export default function Scene() {
  return (
    <>
      <Canvas
        shadows
        dpr={[1, 2]}
        camera={{ position: [0, 1.5, 6], fov: 45 }}
        gl={{ antialias: true, powerPreference: 'high-performance' }}
      >
        <color attach="background" args={['#0a0a0f']} />
        <Suspense fallback={null}>
          <Experience />
          <Environment preset="city" />
        </Suspense>
        <OrbitControls enableDamping makeDefault />
      </Canvas>
      <Loader />
    </>
  )
}

Experience.tsx:

import { useRef } from 'react'
import { useFrame } from '@react-three/fiber'
import { Mesh } from 'three'

export function Experience() {
  const mesh = useRef<Mesh>(null!)
  useFrame((_, delta) => { mesh.current.rotation.y += delta * 0.3 })
  return (
    <>
      <ambientLight intensity={0.4} />
      <directionalLight position={[5, 5, 5]} intensity={2} castShadow />
      <mesh ref={mesh} castShadow>
        <icosahedronGeometry args={[1, 0]} />
        <meshStandardMaterial color="#5b8cff" roughness={0.2} metalness={0.6} />
      </mesh>
      <mesh rotation-x={-Math.PI / 2} position-y={-1.5} receiveShadow>
        <planeGeometry args={[50, 50]} />
        <meshStandardMaterial color="#111118" />
      </mesh>
    </>
  )
}

Mount <Scene /> full-screen (set html, body, #root { height: 100%; margin: 0 } and the canvas container to 100vw/100vh).

Step 4 — Verify

  • Run npm run dev and confirm the scene renders with a rotating, lit mesh and orbit controls.
  • Report the dev URL and that it builds.

Step 5 — Hand off

Tell the user which custom agents drive the next steps:

  • threejs-architect — refine architecture/budgets
  • r3f-engineer — build out the real scene
  • shader-artist — custom materials/effects
  • motion-choreographer — scroll & camera motion
  • asset-pipeline-engineer — load & optimize real models
  • webgl-perf-auditor — keep it at 60fps

Keep dependency versions current; if a package API changed, check its docs before scaffolding.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/skinnye/3d-web-pack/scaffold-3d-site">View scaffold-3d-site on skillZs</a>