Communitygithub.com

evalix098/tiktoklive

遊戲 TILE 資源的深度指南:無縫可平鋪紋理、地形過渡圖塊集、自動圖塊以及地面/平台瓷磚。每當生成可平鋪紋理、圖塊集、地形過渡或無縫圖案時使用。與 game-asset-core 相輔相成。

tiktoklive 是什麼?

evalix098/tiktoklive 是一個 AI 代理技能,專門用於生成和驗證遊戲中的 tile 資源,例如無縫紋理、過渡圖塊集和平台貼磚。該技能旨在幫助使用 Claude Code、Cursor 或 Codex 等工具的開發者,確保所產生的 tile 資源在重複時不易被玩家察覺——這是評判品質的核心標準。它詳細說明了如何生成均勻、無重複動機的無縫單 tile,並強制使用 PIL 進行 2x2 拼接檢查以找出接縫線和色調梯度。對於過渡圖塊集,它強調將過渡繪製為連續圖像,而非分離的貼紙式圖塊,並確保方向性正確。此外,該技能還教授透過旋轉對稱性來減少 tile 數量(例如僅製作一個直邊和一個外角,然後在引擎中旋轉),但同時也指出了方向性光照會使旋轉失效的例外情況,特別是在平台遊戲中。最終,該技能透過關注紋理重複的可見性,幫助 AI 代理生成品質更高、更專業的遊戲資源。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/evalix098/tiktoklive/tree/HEAD/.grok/skills/game-tilesets

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

圖塊集

圖塊的工作是在重複中隱形。 使用者說出他們需要什麼,而不是如何做 —— 即使請求從未提及,也要在此應用所有規則。 用「玩家是否會注意到網格?」來評判一切。

1. 無縫單一圖塊

  • 提示生成均勻的隨機紋理:密度均勻、光線均勻、沒有方向性的陰影、「圖案從每個邊緣連續延伸出去」。
  • 重複的殺手是任何明顯的動機——一個可辨認的叢簇、花朵或岩石會無限重複。提示生成無特徵的紋理;透過尋找任何你可以指出兩次的東西來驗證。
  • 強制性檢查:使用 PIL 將真實的 2×2 重複合成到一個暫存檔案並檢視它。檢查 (a) 接合處的接縫線、(b) 任何可以從所有四個象限中發現的動機、(c) 會產生棋盤格效應的大規模色調梯度。任何一種情況 = 重試。

2. 過渡圖塊集(例如草地→泥土)

  • 將其提示為一幅連續繪製的圖像,恰好可以切割 —— 絕不要將其視為「圖塊」、「帶邊界的網格單元」或任何會導致分離貼紙式圖塊並產生間隙的提示。網格單元必須邊對邊填滿,繪製的內容越過單元邊界流動,使得相鄰的圖塊真正匹配。
  • 3×3 的佈局:中心 = 純內部材質;邊緣單元 = 朝外的直線過渡;角落單元 = 外角。驗證每個單元的方向性(例如,上中單元的草地沿其頂部邊緣分佈)。

3. 旋轉經濟性 —— 製作更少、更好的圖塊

如果光照是中性的(純俯視,無方向性陰影),一個直邊和一個外角可以透過在引擎中旋轉來產生所有四個方向。因此,當圖塊數量由你決定時:

  • 製作:1 個中心填充、1 個直邊、1 個外角、1 個內角 —— 然後將剩餘的預算用於中心填充的變體(2–3 個無名變體在打破重複方面遠比 4 個相同的旋轉邊緣更有效)。
  • 注意事項 —— 旋轉僅在藝術中沒有任何東西編碼方向時才有效:沒有方向性光線、沒有重力提示(下垂的草葉、水滴)、沒有文字/標誌。側視圖(平台遊戲)圖塊幾乎總是編碼了重力和光線,因此它們需要所有方向單獨繪製。在你的交付說明中聲明哪些圖塊可以安全旋轉。
  • 如果請求明確指定了網格(例如「3×3 包含所有 8 種過渡」),則準確交付該內容 —— 在說明中提及旋轉經濟性,但不要單方面更改交付物。

4. 平台和道具

孤立於可鍵控的背景上,與其圖塊集的光照一致,沒有烘焙的地面陰影(引擎會分開合成陰影)。

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 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

Official Three.js API and TSL (Three.js Shading Language) reference for LLM code generation. Load when writing or debugging three.js / WebGL / WebGPU / custom materials / shaders / GLTF / advanced three APIs beyond basic game loop/controls. Prefer building-games for game correctness (loop, WASD, camera, orientation); use this skill for full API/TSL depth. Triggers on "three.js", "threejs", "WebGPU", "TSL", "NodeMaterial", "shader", "GLTF", "MeshStandard", "OrbitControls", "WebGLRenderer".

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).

相關技能