Communitygithub.com

evalix098/tiktoklive

ゲームアニメーションアセット(移動サイクル、アクションキーフレーム、エフェクトシーケンス、アニメーションスプライトシート)を動画ファーストのパイプラインで生成するための詳細ガイドです。

tiktoklive とは?

このスキルは、ゲーム開発向けの2Dアニメーションアセットを動画生成から効率的に作成するための指針を提供します。従来の画像生成モデルに中間姿勢を描かせるのではなく、動画生成器の特性を活用して自然な動作(脚の交互移動、弧の連続性、布や火の物理)を得ることを重視します。主なプラットフォームはApp Builder環境であり、`video2dsprite` と `generate2dsprite` の2つのスキルを連携させて使用します。これらのスキルは、マゼンタ色(`#FF00FF`)の背景を用いたクロマキー処理とffmpegスクリプトを自動化し、ループ可能なフレーム列やスプライトシートを出力します。作業の流れは、ベースフレーム生成→動画アニメーション作成→フレーム収穫・クリーンアップ→選択・パッケージングの順で進め、最後にモーションの法則(連続性、物理、ループ閉鎖)とフリップテストで品質を検証します。このアプローチにより、手動ffmpegやアドホックなキーフレーム生成よりも一貫性が高く、少ない試行でゲームに使えるアセットを得られます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/evalix098/tiktoklive/tree/HEAD/.grok/skills/game-animation-frames

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

アニメーションフレーム — 動画ファースト

画像生成器はポーズを描きますが、動画生成器は動きを理解します — 脚の交互移動、弧の連続性、布や火の物理は、動画がそれらをアニメートするために自動的に現れます。そのため、画像モデルに中途半端なポーズを想像させるのではなく、ベースをアニメートして実際のフレームを収穫しましょう。

App Builderでの実行(最初に読むこと)

このスキルはドクトリン(動作法則、ループ品質管理、動画を使用すべきタイミング)です。App Builder環境では、自由形式の ffmpeg 収穫やランダムなキー可能な #hex 背景を発明してはいけません。

ステップ実行すること
プロダクション用スプライト / 固定グリッドgenerate2dsprite — 一色の #FF00FF マゼンタシート + クロマキースクリプト
動画からの高密度ロコモーションvideo2dsprite — ベースを #FF00FF に静止 → imagine_image_to_video → スキルスクリプト(ffmpeg + クロマキー)
キー可能な背景いずれかのパイプラインを使用する場合は常に #FF00FF(クロマキーに必要)
このスキル以下に記載のループ / フリップテスト / 動作法則 — パイプライン実行後に適用

.grok/skills/video2dsprite/SKILL.md または .grok/skills/generate2dsprite/SKILL.md を開き、それらのワークフローに従って生成と後処理を行ってください。その後、フレームをゲームに組み込む前に、ここに記載の法則とフリップテストを適用します。

デフォルトのパイプライン(意図)

  1. ベースフレーム。 被写体をニュートラル/開始ポーズで、完全なスタイルワード、横/ゲームに適したビュー、一色の #FF00FF 背景(App Builderのクロマキー)。game-asset-coreのデフォルトが適用されます。
  2. アニメート。 ベースから imagine_image_to_video を実行:1つの明確な動作、その場で、静的カメラ(「騎士がその場で歩く、横ビュー、カメラ固定」、6秒)。ショットはシンプルに保つ — 1被写体、1動作。これを**video2dsprite** 経由で実行することを推奨します。収穫とクロマキーが一貫するためです。
  3. 収穫 + クリーンアップ。 video2dsprite スクリプトを使用します(アドホックな ffmpeg -i … fps=12 単独では使用しないでください)。マゼンタのフラッドフィル/デスピルはそこにあります。異なるフラット #hex で再キー設定しないでください。マゼンタのパイプラインから完全に離れない限り。
  4. 選択。 (a) 動作の異なるフェーズを捉え、(b) ループする — シーケンスの終わりが開始に戻って流れなければならない — フレームを選びます。フレーム数を強制しないでください:動作が8、10、12フレームで最適に読めるなら、その数を提供します(フレームが多いほどエンジン内で滑らかになります)。サイクルの場合、動作のランドマーク(足の接触、翼の極端、炎のピーク)を使用して1周期を選択します。
  5. パッケージング。 フレームを再生順(ゼロ埋め名前)および/または game-asset-core ルール(均一セル、区切りなし)に従ったシートとして提供 — または video2dsprite / generate2dsprite が出力する透明ストリップ/グリッド。意図したfpsを明記します。

動画が動作に失敗した場合にのみ(まれ:非常に様式化されたポーズ、単一の劇的なキーフレーム)、キーフレームごとの imagine_text_to_image(スプライトスクリプトで後処理する際は #FF00FF 上で)にフォールバックします — その場合、自分でフェーズを計画し、以下の法則に従います。鮮明なプロダクション用複数フレームグリッドには generate2dsprite を推奨します。

動作法則(パイプラインに関わらず、これらと照合してください)

  • サイクルはループする;交互歩容は周期の半分をミラーリングして過ごす。
  • 連続性:手足、小道具、解剖学、エフェクトは連続した経路上を移動する — 隣接フレーム間でテレポート、消失、複製はしない。
  • 物理が静止画で読める:空中は空中感を示し、予備動作は圧縮し、フォロースルーはオーバーシュートする;エフェクトはリクエストで移動が指示されない限り、その起点に固定されたまま。
  • エネルギーはリクエストに一致する:アイドル/微妙な動きは、ほとんど変わらないフレームを意味する。

検証 — フリップテスト

最終フレームを厳密に順番に表示し、動きをナレーションする;ループの閉鎖を明示的に確認する(最後→最初)。ナレーションでためらいがあれば、それは不合格のフレームです。動画パイプラインは通常、最初の試行でこれを通過します — それがデフォルトである理由です。

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

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

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

関連スキル