Communitygithub.com

evalix098/tiktoklive

Référence officielle de l'API Three.js et TSL (Three.js Shading Language) pour la génération de code par LLM. À charger lors de l'écriture ou du débogage de three.js / WebGL / WebGPU / matériaux personnalisés / shaders / GLTF / APIs avancées de Three au-delà de la simple boucle de jeu/contrôles. Privilégier 'building-games' pour la correction du jeu (boucle, WASD, caméra, orientation) ; utiliser cette compétence pour la profondeur de l'API/TSL complète. Se déclenche sur 'three.js', 'threejs', 'WebGPU', 'TSL', 'NodeMaterial', 'shader', 'GLTF', 'MeshStandard', 'OrbitControls', 'WebGLRenderer'.

Qu'est-ce que tiktoklive ?

Cette compétence fournit une référence officielle et complète de l'API Three.js (incluant TSL, le langage de shading de Three.js) conçue pour être utilisée par un LLM (Large Language Model) afin de générer du code three.js moderne et correct, en évitant les API obsolètes (comme les versions r128 via CDN). Elle est idéale pour les développeurs travaillant avec Three.js, WebGL, WebGPU, les matériaux personnalisés (NodeMaterial), les shaders, les chargeurs GLTF, les effets de post-processing et les fonctions de calcul avancées. La compétence s'adapte à un environnement de développement TanStack Start + React et recommande l'installation de three via npm plutôt que l'utilisation de CDN. Elle fonctionne main dans la main avec d'autres compétences comme 'building-games' pour les boucles de jeu et les contrôles de base. Son contenu principal est un fichier texte complet (`references/llms-full.txt`) contenant des tables d'API, des exemples d'imports modernes, des descriptions détaillées de TSL, de WebGPURenderer, et bien plus encore. La compétence aide également à respecter les bonnes pratiques comme la limitation du pixel ratio et la gestion manuelle de la mémoire GPU.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/evalix098/tiktoklive/tree/HEAD/.grok/skills/threejs

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Three.js (référence officielle LLM)

Cette compétence fournit le pack de documentation officiel Three.js conçu pour les LLM, afin que l'agent puisse générer du code three.js moderne et correct sans inventer des API obsolètes de CDN ou de la version r128.

Adaptation de la pile (constructeur d'application)

Vous êtes dans un espace de travail TanStack Start + React, pas une page HTML nue :

Schéma officielÀ faire ici à la place
<script type="importmap"> + CDN threenpm install three (+ @types/three si nécessaire) ; importer depuis "three" / "three/addons/…"
Bootstrap canvas HTML brutPréférer @react-three/fiber + drei pour les jeux/l'intégration UI (building-games + 3d-libs.md)
Démo autonome de WebGLRendererBon pour un module canvas indépendant ; installer quand même three via npm pour que le build Vercel l'ait
Toujours la version « latest » via CDNÉpingler via package.json pour que le développement et le déploiement correspondent

three n'est pas préinstallé — ajoutez-le avec npm et laissez-le dans package.json.

Quand charger quoi

  1. Jeu / produit 3D interactif → commencer par building-games (boucle, contrôles, orientation, caméra, premier lancement, panneau de direction).
  2. Câblage R3F / drei / rapier → building-games/references/3d-libs.md.
  3. API three avancée, TSL, WebGPU, matériaux, chargeurs, post-processing → charger
    references/llms-full.txt (le dump officiel complet de cette compétence).

Ne pas charger llms-full.txt pour des jeux 2D canvas simples (Pong, tetris, etc.).

Référence complète

Lire à la demande :

references/llms-full.txt

Source : https://threejs.org/docs/llms-full.txt (copie épinglée pour une utilisation hors ligne dans le sandbox).

Le contenu comprend : imports modernes, WebGLRenderer vs WebGPURenderer, référence complète TSL, NodeMaterial, chargeurs, post-processing, calcul, et tables d'API.

Valeurs par défaut rapides pour ce produit

  • Préférer WebGLRenderer (ou le défaut R3F) sauf si l'utilisateur a besoin de calcul TSL/WebGPU.
  • Limiter le ratio de pixels (renderer.setPixelRatio(Math.min(devicePixelRatio, 2)) ou dpr={[1,2]} pour R3F).
  • Nettoyer les géométries/matériaux/textures à la destruction (three ne libère pas automatiquement les ressources GPU).
  • Pour les jeux : toujours respecter les auto-tests de contrôle et d'orientation de building-games.

Vérification finale

  • three (et la pile R3F si utilisée) est dans package.json et les imports résolvent.
  • Pas de motifs avec r128 / script-tag cdnjs.
  • Si TSL/WebGPU est utilisé : les matériaux et imports correspondent à 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).

Skills associés