Communitygithub.com

evalix098/tiktoklive

为任何使用 Imagine 工具生成游戏资源的流程提供核心规范:引擎就绪的默认行为、规格清单、风格锚定、回读验证、诚实的缺陷标记。在生成任何游戏美术资源(精灵、图集、动画、瓦片、UI、特效)时使用——然后同时加载匹配的专业技能:game-animation-frames(用于任何移动对象)、game-tilesets(用于瓦片/地形)、game-character-consistency(用于反复出现的角色)、game-ui-icons(用于 UI 和图标)。

tiktoklive 是什么?

该技能为 AI 辅助的游戏资源生成提供了纪律性核心规范。它解决了游戏开发中的一个常见痛点:开发人员只描述他们“需要什么”,而 AI 则必须推断出“如何”使其达到引擎就绪状态,否则资产需要进行手动清理——即使开发人员从未提及该要求。技能定义了无提示的默认行为,涵盖精灵(隔离主体、纯色可去背背景 #FF00FF、无地面场景或投影)、精灵表(统一隐式单元格、无分隔线、相同位置)、无缝平铺地形、9-slice UI(无文本)、角色一致性(从现有图像编辑链派生)和图标(风格统一、统一内边距、在 32px 下可读)等。其工作流程包括私有的规格清单检查、以生成器语言撰写提示、盲述验证、层级化重试策略,最后进行交付与报告(列出所有未修复缺陷和有意识偏离的默认项)。该技能适用于大多数 AI 代理平台,并建议与 gen_animation_frames、gen_tilesets 等专业管道技能配合使用。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

资源核心

游戏开发者会描述他们需要什么,而不会说明如何使其达到引擎就绪状态。 如何做到是你的事。当请求未明确指定时,应用以下默认行为—— 即使用户从未提及该要求,需要进行手动清理的资源仍然是失败的。

应用构建器说明

本技能是规范/质量控制。对于此沙盒中的 2D 精灵和动画,同时运行以下管道技能:

  • generate2dsprite / video2dsprite 用于精灵表与视频采集
  • 这些路径上可做键控的背景为纯色 #FF00FF(色度键所需) — 而非任意纯色十六进制值
  • 运动规律和循环质量控制位于 game-animation-frames(它将执行委托给上述管道)

无提示的引擎就绪默认行为

当要求...交付内容,无需被告知...
一个角色/生物/道具精灵隔离主体、纯单色可键控背景(使用 generate2dsprite/video2dsprite 时为 #FF00FF)、干净轮廓、无烧制的地面场景或投影
任何移动/动画对象能够干净循环的帧序列(参见 game-animation-frames;通过 video2dsprite/generate2dsprite 执行)
一个精灵表统一隐式单元格,无分隔线,主体在每个单元格中位于相同位置,以便以宽度/列数 × 高度/行数裁剪帧——或自行构建:帧 + PIL 合成
地面/地形/水/墙壁无缝平铺(使用真实的 2×2 合成验证),无地标图案,可能旋转区域使用无方向性光照
UI 面板/框架/按钮可缩放(9-slice:角落装饰,统一边缘),绝无文本(游戏会做本地化),状态变体几何形状相同
相同的角色/对象再次出现从现有基础图像通过编辑链派生,绝不重新生成
图标整个集合使用相同的风格合同,统一内边距,在 32px 下可辨认

交付组织有序、名称准确的文件;如果请求将数量或命名交给你,选择合理的名称并在清单/记录中记录它们。

工作纪律

  1. 规格清单(私密)。 列出每个已说明的属性加上适用的上述默认值。对照它进行验证;绝不要将其粘贴到提示中。
  2. 以生成器的语言撰写提示。 2–5 句生动的句子,务必包含风格/媒介词汇。将几何/数量表示为可命名的视觉配置(时钟位置、饼图扇形、彩色标记),绝不要使用数字或抽象概念。
  3. 通过盲述然后差异对比来验证。 在重新阅读规格之前写出图像显示的内容。每个已说明的属性和每个适用的默认值都是通过/失败——没有“足够好”,没有自行协商的豁免。自己描述中的回避 = 检查失败。
  4. 升级表达,然后策略。 使用更具体的视觉重新表达重试一次。如果生成器重复相同的失败,则是先例:通过组合方式构建(部件 + PIL 旋转/镜像/装配——注意镜像产生的不对称)或保留最佳结果并标记它。每个正在验证的点最多丢弃约 2 次。
  5. 交付并报告。 对所有文件进行最后一次一致性检查和清单核对;说明每个未修复的缺陷以及每个你主动偏离的默认项。

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

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

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

相关技能