Communitygithub.com

Three.js (공식 LLM 레퍼런스)

Three.js 및 TSL(Three.js Shading Language) 공식 API 레퍼런스입니다. three.js, WebGL, WebGPU, 커스텀 머티리얼/셰이더, GLTF 등 고급 API 코드를 생성할 때 로드하세요.

Three.js (공식 LLM 레퍼런스)란 무엇인가요?

이 스킬은 **공식** Three.js LLM 문서 패키지를 제공하여 에이전트가 구식 CDN/r128 API를 발명하지 않고 최신 three.js 코드를 정확하게 생성할 수 있도록 지원합니다. TanStack Start + React 워크스페이스에 최적화되어 있어, bare HTML 페이지가 아닌 npm 패키지 설치(`npm install three`)를 권장하며, `@react-three/fiber` 및 `drei`와의 통합을 선호합니다. 게임이나 인터랙티브 3D 제품 개발 시에는 `building-games` 스킬을 먼저 사용하고, Three.js의 심층 API, TSL, WebGPU, NodeMaterial, 로더, 후처리, 컴퓨트 셰이더 등이 필요할 때 이 스킬의 전체 덤프(`references/llms-full.txt`)를 로드합니다. 또한 WebGLRenderer를 기본으로 사용하며, R3F 환경에서는 `dpr={[1,2]}` 설정을 권장하고, GPU 리소스 누수를 방지하기 위해 종료 시 지오메트리/머티리얼/텍스처를 명시적으로 dispose해야 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/evalix098/tiktoklive/tree/HEAD/.grok/skills/threejs

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Three.js (공식 LLM 레퍼런스)은(는) 무엇을 하나요?

이 스킬은 공식 Three.js LLM 문서 패키지를 제공하므로 에이전트가 구식 CDN/r128 API를 발명하지 않고 정확한 최신 three.js 코드를 생성할 수 있습니다.

스택 적응 (이 앱 빌더)

현재 TanStack Start + React 워크스페이스에 있으며, bare HTML 페이지가 아닙니다.

공식 문서 패턴여기서는 이렇게 하세요
<script type="importmap"> + CDN threenpm install three (필요시 @types/three) ; "three" / "three/addons/…" 로 import
Raw HTML 캔버스 부트스트랩게임/UI 통합을 위해 @react-three/fiber + drei 권장 (building-games + 3d-libs.md)
독립형 WebGLRenderer 데모자체 포함 캔버스 모듈에는 괜찮음; 그래도 Vercel 빌드에서 사용할 수 있도록 npm으로 three 설치
항상 "최신" CDN 버전package.json에서 버전 고정하여 개발과 배포 버전 일치

three는 사전 설치되어 있지 않습니다 — npm으로 추가하고 package.json에 남겨두세요.

언제 무엇을 로드할지

  1. 게임 / 인터랙티브 3D 제품 → building-games 로 시작 (루프, 컨트롤, 방향, 카메라, 첫 실행, 조향 신호).
  2. R3F / drei / rapier 연결 → building-games/references/3d-libs.md.
  3. 심층 three API, TSL, WebGPU, 머티리얼, 로더, 후처리 → references/llms-full.txt 로드 (이 스킬의 전체 공식 덤프).

간단한 2D 캔버스 게임(Pong, tetris 등)에서는 llms-full.txt를 로드하지 마세요.

전체 레퍼런스

필요 시 읽기:

references/llms-full.txt

출처: https://threejs.org/docs/llms-full.txt (오프라인 샌드박스 사용을 위한 고정 복사본).

내용 포함: 최신 import, WebGLRenderer vs WebGPURenderer, TSL 전체 레퍼런스, NodeMaterial, 로더, 후처리, 컴퓨트, API 테이블.

이 제품을 위한 빠른 기본값

  • WebGLRenderer (또는 R3F 기본값) 선호 (사용자가 TSL/WebGPU 컴퓨트를 필요로 하지 않는 한).
  • 픽셀 비율 제한 (renderer.setPixelRatio(Math.min(devicePixelRatio, 2)) 또는 R3F dpr={[1,2]}).
  • 종료 시 지오메트리/머티리얼/텍스처 dispose (three는 GPU 리소스를 GC하지 않음).
  • 게임의 경우: 여전히 building-games 컨트롤 및 방향 자체 테스트를 따르세요.

완료 확인

  • three (및 사용된 R3F 스택)가 package.json에 있고 import가 해결됩니다.
  • r128 / cdnjs script-tag 패턴이 없습니다.
  • TSL/WebGPU 사용 시: 머티리얼과 import가 llms-full과 일치합니다 (node materials, await renderer.init()).

Individual skills in this repo

This repo contains 17 individual skills — each has its own dedicated page.

evalix098/tiktoklive

Add user accounts and sign-in to this TanStack Start app. Use when the app needs authentication, sign-in, user accounts, protected routes, or per-user data. Triggers on "auth", "login", "log in", "sign in", "sign up", "account", "users", "authentication", "protected", "who is logged in", "current user", "per-user".

evalix098/tiktoklive

Build browser games and interactive/canvas/3D experiences in this TanStack Start + React app. Use for any game, simulation, or WebGL/Canvas experience — 2D or 3D, single-player. Covers the game loop & timing, 3D orientation/camera conventions, collision, performance, assets, audio, save, game feel, and per-genre playbooks. For WASD / vehicle / flight **input signs and inverted A/D**, open the **`controls`** skill — do not rely on this file or racing-kart alone. Triggers on "game", "minecraft", "fps", "platformer", "racing", "tetris", "snake", "shooter", "3d", "three.js", "canvas", "voxel", "physics".

evalix098/tiktoklive

Player-facing input signs for browser games: WASD, vehicles, flight, FPS mouse-look, and the #1 failure mode (inverted A/D). Mandatory control self-tests and a tiny test interface so you can verify A turns left before shipping. Load for ANY game with movement, steering, flying, driving, tanks, boats, mechs, drones, planes, karts, third-person follow cams — not only racing. Triggers on "controls", "WASD", "inverted", "steer", "flight", "airplane", "kart", "vehicle", "yaw", "roll", "pitch", "mouse look", "A/D".

evalix098/tiktoklive

Design and build polished, non-generic UI for this TanStack Start + React + Tailwind v4 + shadcn/Radix app. Use whenever you create or restyle any interface surface — pages, landing pages, dashboards, forms, modals, nav, and game overlays (start screens, HUD, menus). Covers design tokens, layout, typography, color, spacing, motion, and the anti-"AI-slop" rules that keep output from looking generic. Triggers on "design", "UI", "make it look good", "polish", "landing page", "theme", "style", "redesign", "ugly", "clean up".

evalix098/tiktoklive

Deep guide for game ANIMATION assets: motion cycles, action keyframes, effect sequences, and animation sprite sheets — built around a video-first pipeline. In this app-builder sandbox, execute via the video2dsprite / generate2dsprite skills (magenta + scripts), not ad-hoc ffmpeg. Use whenever generating anything that moves: walk/run cycles, attacks, idles, FX, flags, fire, animation sheets. Complements game-asset-core.

evalix098/tiktoklive

Core discipline for ANY game-asset generation with Imagine tools: the engine-ready defaults users don't state, spec checklists, style anchoring, read-back verification, honest defect flagging. Use whenever generating any game art (sprites, sheets, animations, tiles, UI, FX) — then ALSO load the matching specialist skill: game-animation-frames for anything that moves, game-tilesets for tiles/terrain, game-character-consistency for recurring characters, game-ui-icons for UI and icons.

evalix098/tiktoklive

Deep guide for CHARACTER IDENTITY across images: turnarounds (front/side/ back), state and damage variants, palette swaps, equipment changes, and same-character-in-context sets. Use whenever generating character turnarounds, character sheets, variants of an existing sprite, or any same-subject multi-image set. Complements game-asset-core.

evalix098/tiktoklive

Deep guide for game TILE assets: seamless tileable textures, terrain transition tilesets, autotiles, and ground/platform tiles. Use whenever generating tileable textures, tilesets, terrain transitions, or seamless patterns. Complements game-asset-core.

evalix098/tiktoklive

Deep guide for game UI assets: buttons with interaction states, panels, bars, wordmark logos, and icon sets. Use whenever generating game UI elements, HUD assets, inventory icons, icon sets, buttons, or title logos. Complements game-asset-core.

evalix098/tiktoklive

Generate production-oriented 2D game maps with `imagine_text_to_image`: RPG/top-down maps, side-scroller parallax stages, tilemaps, layered raster maps, prop packs, collision zones, and walkable areas. Use when building browser games that need real map art (not pure code-drawn tiles), layered props, or map collision metadata. Triggers on "map", "level", "stage", "tilemap", "overworld", "dungeon", "side scroller background", "prop pack", "2D map".

evalix098/tiktoklive

Generate and postprocess 2D game sprites and animation sheets: pixel-art characters, NPCs, creatures, spells, projectiles, impacts, props, summons, and transparent PNG/GIF exports. Use when building browser games that need real sprite sheets (not code-drawn placeholders), matching a map art style, or producing magenta-background sheets for chroma-key cleanup. Triggers on "sprite", "sprite sheet", "animation sheet", "pixel art character", "walk cycle", "attack animation", "projectile sprite", "2D game asset".

evalix098/tiktoklive

How to use the Imagine tools in Grok Build: imagine_text_to_image, imagine_image_to_image, imagine_reference_to_image, imagine_text_to_video, imagine_image_to_video, imagine_reference_to_video, and render_file for chat previews. When to build a visual with code instead of generating it, prompt-craft, reference-first handling of real people, factual grounding, and asset-consistency. Load this whenever generating or editing an image or video is on the table. Tool-usage-driven, not triggered by a user merely mentioning images.

evalix098/tiktoklive

Peer-to-peer realtime multiplayer over WebRTC data channels: every user of the deployed app connects directly to every other user (full mesh), the server only brokers the handshake at /api/rtc. Lowest possible latency, zero per-message server cost. Use for 2-8 player co-op/casual realtime: shared cursors, drawing, party games, casual action. Triggers: p2p, peer to peer, webrtc, low latency multiplayer, direct connection.

evalix098/tiktoklive

Use Neon Postgres (the database) in this TanStack Start app. Use when the app needs to store or query data, persist state, or keep per-user data. Triggers on "database", "Postgres", "Neon", "save data", "store data", "persist", "tables", "SQL", "query", "migrations".

evalix098/tiktoklive

Share-link previews and app identity for apps on *.grok.me: the injector-owned og:image card, the SVG favicon, and PWA icons for installable apps. Use when scaffolding, renaming, or restyling the app — and for share / unfurl / OG / Twitter card questions. A custom 1200×630 card from the app's own art is the default — games of every kind (DOM board/word games included), whimsical apps, creative tools, and brand-forward pages; only plain utilities keep the placeholder. Always run the brand-asset pass as a `task` subagent and never wait for it. Triggers on "share", "rename", "app name", "OG", "Open Graph", "twitter card", "unfurl", "og:image", "og:type", "x:game:image", "x-banner", "link preview", "social card", "thumbnail", "preview image", "favicon", "app icon", "PWA", "manifest", "installable", "home screen", "SEO", "meta description".

evalix098/tiktoklive

Grok Build only. Turn a 2D character still into denser animation sprites via imagine_text_to_image base → imagine_image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled strips/grids/GIFs. Use when the user wants video-to-sprite, smoother run/walk cycles, or denser intermediate poses. Prefer generate2dsprite for crisp production pixel sheets. Triggers on "video to sprite", "imagine_image_to_video sprite", "dense walk cycle", "smooth run animation from video".

evalix098/tiktoklive

Call the xAI API (Grok) from this app's server code using the injected XAI_API_KEY: chat/LLM features, image and video generation (Imagine), and voice (text-to-speech). Use when the app needs any "AI" / "assistant" / "chatbot" / "Grok" functionality, runtime image/video generation, or speech. Triggers on "AI", "LLM", "chatbot", "assistant", "Grok", "xAI", "generate text", "summarize", "generate image", "AI video", "voice", "text to speech", "TTS", "OpenAI" (use xAI instead).

관련 스킬