Communitygithub.com

evalix098/tiktoklive

Generate and edit images and videos with the Grok Build Imagine tool suite. Covers text-to-image/video, image-to-image/video, reference-based generation, display, and more.

tiktoklive とは?

このスキルは、Grok Build プラットフォーム上で画像や動画を生成・編集するための**分割された Imagine ツール群**の使い方を詳細に説明します。単一の `imagine_image` や `imagine_video` のようなツールは存在せず、代わりに `imagine_text_to_image`、`imagine_image_to_image`、`imagine_reference_to_image`、`imagine_text_to_video`、`imagine_image_to_video`、`imagine_reference_to_video`、`render_file` といったモダリティ固有のツールを呼び出す必要があります。これらのツールは共有サンドボックス上のファイルパスを入出力として扱い、生成結果は `render_file` でユーザーに表示します。特に、正確なテキストや数値、構造が求められる場面では画像生成ツールではなくコード(HTML/CSS推奨)でアセットを構築することを推奨し、生成結果の検証と修正をループで行うワークフローを提示しています。また、実在の人物を扱う際は参照画像を優先して使用する、事実に基づくプロンプトを作成するために事前にWeb検索を行う、キャラクターの一貫性を保つためにベース画像を再利用する、といった重要な原則も含まれています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/evalix098/tiktoklive/tree/HEAD/.grok/skills/imagine-grok-build

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

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

ドキュメント

Imagine

Grok Build は分割された Imagine 計算スタック(grok_computer バリアント)を使用します。 統合された imagine_image や imagine_video ツールは存在しません。常に以下の表からモダリティ固有の名前を呼び出してください。

ツール役割
imagine_text_to_imageテキストプロンプトのみから新しい画像を生成(ソースなし)。
imagine_image_to_image既存の画像1枚を編集/リスタイル(サンドボックスパス)。
imagine_reference_to_image2枚以上の参照画像を合成(サンドボックスパス)。
imagine_text_to_videoテキストプロンプトのみから新しい動画を生成(ソースなし)。
imagine_image_to_video静止画1枚(サンドボックスパス)をアニメーション化して動画に。
imagine_reference_to_video1枚以上の参照画像から動画を生成(サンドボックスパス)。
render_fileサンドボックス内の画像/動画パスをチャットでユーザーに表示。

パスベースのハンドル。 これらのツールは共有サンドボックスを読み書きします。

  • 生成はサンドボックスの file_path(artifacts 配下)を返します。read_file / シェルで開き、render_file でユーザーに表示します。
  • 編集・アニメーションツールはそのパス(複数可)を入力として受け取ります。実際のスキーマ(image、images など)に従ってください。パスを勝手に作成しないでください。
  • imagine_image / imagine_video は絶対に呼び出さないでください。アセットIDヘルパー(imagine_create_asset / imagine_view_media / render_imagine_media)はこのスタックでは利用できません。

これらのツールのいずれかを検討中、または呼び出そうとしている場合はこれを適用してください。

ハンドルフロー(必須のメンタルモデル)

generate → file_path → render_file (ユーザーに表示) / read_file またはスクリプト (QC)
edit / animate → 以前の file_path を image_to_* / reference_to_* に渡す
  • ツールが実際に返したパスを使用する — ファイルシステムのパスをでっち上げないでください。
  • ユーザーにメディアを表示するには render_file を使い、アドホックなマークダウン画像リンクは使わないでください。

コードで正確なビジュアルを構築する(画像ツールは使わない)

  1. 画像モデルは正確なテキスト、数値、構造には信頼できません。 短いテキストやシンプルなレイアウトは処理できますが、単語を間違えたり、数値をでっち上げたり、実際のデータに合わないグラフの棒を描いたり、図の矢印をどこにも指さないようにしたりすることがよくあり、正確さが要求されるほどパフォーマンスは低下します。詳細なプロンプトでも信頼性は向上せず、imagine_image_to_image での編集で修正できることも通常はありません。そのため、結果に特定のテキスト、データ、または構造が正確である必要がある場合(実際の数値からのグラフ、ラベル付きの図や技術的な図、数学の解説、表、実際のコピーが入った画面)は、コードでアセットを構築し、正確な内容を制御してください。HTML と CSS を推奨します。これらは Python のプロットよりもはるかに優れたレイアウト、タイポグラフィ、洗練さを提供します。見た目だけが重要な場合(写真、イラスト、キャラクター、シーン、装飾アート)は、画像ツールが適切な選択です。どちらが適切かは、リクエストの文言ではなく、出力が何を正確に表現する必要があるかによって決まります。

離散的な精度の検証(ループ)

出力が特定のテキスト、数値、データ、または構造を正確に表現する必要がある場合、最初の結果を信頼せず、ループで検証してください。

  1. 結果を生成します(生成するか、コードで正確なビジュアルを構築するに従ってコードで構築します)。
  2. 実際の出力を検査します — 結果のパスに対して read_file(画像理解)を使用し — すべての単語、数値、ラベル、構造の詳細が要件と一致し、何も重なったり、クリップされたり、キャンバスからはみ出したりしていないことを確認します。
  3. 何か問題があれば修正して再検証します。
    • 画像モデルによるテキストの文字化け、数値のでっち上げ、レイアウトの崩れ? 単にプロンプトを再実行しないでください — おそらく再び文字化けします。コードで再構築してください。
    • コードで構築した出力で要素が重なったりクリップされたりしている? 座標を手動で微調整するのではなく、自動レイアウト(HTML/CSS)で再レイアウトしてください。
    • それ以外の場合は、以前のパスを使用して imagine_image_to_image で1か所をターゲットにした編集を行います。
  4. 離散的な内容が完全に正確になった場合のみ終了します。正確にできない場合は、間違ったものを出荷するのではなく、ユーザーに伝えてください。

中核原則

  1. プロンプトはあなたが責任を持ちます。 ユーザーが詳細なプロンプトを指定した場合、またはあなたのプロンプトを使用するように依頼した場合は、それをそのまま使用します。それ以外の場合は最終的なプロンプトを作成します:主題を前面に配置し、すべての詳細を過剰に指定せずにムード、構図、照明、スタイルの強力な高レベルの方向性を与え、キーワードタグではなく自然な散文で記述し、否定プロンプトではなく肯定的に記述します。編集の場合は、変更内容のみを記述します。2〜5文を目標にします。
  2. 実在の人物には参照ファースト。 名前付きの実在の人物やグループに純粋なテキストから画像への生成を決して使用しないでください。顔交換、ポスター、漫画、映画的または編集的な描写を含みます。代わりに実際の参照パスを指定して imagine_image_to_image を使用し、非合意的、性的、または未成年を含む肖像を決して生成しないでください。手順については「実在の人物と参照」を参照してください。
  3. まず検索で事実を確認します。 リクエストの一部が現実世界の事実、身元、ブランドや製品、場所、イベント、または最新の結果に依存している場合は、生成前にウェブを検索し、確認済みの実際の詳細をプロンプトに入力します。記憶に頼らず、「現在の大統領」のような曖昧なプレースホルダーを記述せず、確認済みの名前を記述します。
  4. 一貫性のためにベースを再利用します。 同じキャラクター、オブジェクト、設定が複数の画像にわたって登場する必要がある場合、imagine_text_to_image で1つのベースを生成し、その file_path を保持し、すべてのバリエーションに対してそのパスを imagine_image_to_image に渡します。繰り返し登場する被写体に対して毎回テキストから画像への生成を最初から実行しないでください。
  5. 障害は優雅に処理します。 モデレーションまたは安全ブロックが発生した場合は停止します。再試行せず、フィルターを回避するためにプロンプトを言い換えたりしません。ブロックされたことをユーザーに伝え、別の方向性を提案します。参照が弱い場合や結果が的外れに見える場合は、黙って繰り返すのではなく、その旨を伝えてアップロードや方向転換を依頼します。
  6. マルチステップのワークフローを計画します。 ステップを順序付けます。同じステップに属する生成のみを並列化します。
  7. 最後に見直します。 意図した生成が実際に実行され、要求されたものと一致することを確認します。最終アセットは render_file でレンダリングします。
  8. ツールの動作を推測しないでください。 ツールのパラメーター、戻り値、環境機能が実際に提供されていないものをでっち上げないでください。推測ではなく確認します。

ツールの選択

状況呼び出すツール
新しい画像、ソースなしprompt(+ aspect_ratio)を指定した imagine_text_to_image
既存の画像1枚の編集/リスタイル/色変更prompt + ソースパスを指定した imagine_image_to_image
2枚以上の参照画像を1枚に合成prompt + ソースパスを指定した imagine_reference_to_image
以前の結果を反復以前のパスを指定した imagine_image_to_image
名前付きの実在の人物またはグループウェブ検索後、実際の参照パスを指定した imagine_image_to_image
一般的/発明された被写体をゼロからimagine_text_to_image
新しい動画、ソースなしprompt を指定した imagine_text_to_video
静止画1枚をアニメーション化その静止画のパスを指定した imagine_image_to_video
複数参照の動画画像パス(複数可)を指定した imagine_reference_to_video

経験則:参照なし → text_to_; 参照1つ → image_to_; 参照2つ以上 → reference_to_*。

imagine_text_to_image

テキストプロンプトから新しい画像を生成します。

入力:

  • prompt(必須)- 希望する画像の完全な説明。
  • aspect_ratio - 1:1、3:4、4:3、2:3、3:2、9:16、16:9、21:9、5:2、50:11、または unknown のいずれか。OGシェアカードには 16:9 を、ゲーム用のカスタム public/x-banner.jpg 生成時(すべてのアプリが x:game:image を配線します。Imagineを呼び出すのはゲームのみ — og スキルを参照)にはXフィードバナーに 50:11 を使用します。真の2:1キャンバスが必要な場合は、xAI Images APIを呼び出します。

複数のバリエーションを生成するには、異なるプロンプトで複数の imagine_text_to_image 呼び出しを行います。このツールは n や count パラメーターを公開しません。

imagine_image_to_image

既存の画像1枚を編集します。

入力(名前は実際のスキーマに従います — 通常は単一のサンドボックスパス):

  • prompt(必須)- 変更内容(編集のみを記述)。
  • ソースパスフィールド(必須)- 以前の生成またはダウンロードで返されたサンドボックスパス。
  • aspect_ratio - ユーザーが明示的に比率変更を希望する場合のみ設定します。

imagine_reference_to_image

2つ以上の参照パスから1つの画像を合成します。

入力:

  • prompt(必須)。
  • ソースパス(必須)- 2つ以上のサンドボックスパス。
  • aspect_ratio - オプション。

単一ソースの編集には、代わりに imagine_image_to_image を使用します。

imagine_text_to_video

テキストプロンプトのみから新しい動画を生成します(ソースフレームなし)。

入力:

  • prompt(必須)- 短い現在形のショットの説明。
  • duration / aspect_ratio / 解像度フィールド(実際のスキーマで公開されているもの)。

短いショットを推奨します。プロンプト作成ルールは以下の画像から動画への場合と同じです。

imagine_image_to_video

静止画1枚をアニメーション化して動画にします。

入力:

  • 単一のソース静止画パス(必須)。
  • prompt - 短い現在形のショット(推奨。一部のバリアントでは必須)。
  • duration - 6(デフォルト)、10、または 15(公開されている場合)。
  • aspect_ratio - オプション。1枚の画像をアニメーション化する場合、ソースの比率を維持するために省略します。

短いショットを推奨します。 動画は1つの長いテイクではなく、計画された短いクリップのシーケンスとして構築します。

  1. ストーリーをショット(各1ビート)として計画します。
  2. 少ない長いショットよりも、より多くの6秒ショットを優先します。
  3. 各ショットのソース静止画を imagine_text_to_image / imagine_image_to_image で作成します(キャラクターパスの一貫性を維持)。
  4. imagine_image_to_video + その静止画パスでアニメーション化します。

主要な動作:

  • プロンプト作成: 明確なカメラの動きを伴う、現在形の短くて鮮明な瞬間を1〜2文で。
  • 最小限だが興味深く: 1つの明確な被写体と、単純な1つの動きまたはカメラの動き。
  • 複雑なソース? 被写体を固定してカメラのみを動かすか、より単純なショットに分割します。
  • 実在の人物: 参照ファースト — 確認済みの参照から駆動します。参照なしで名前付きの人物をアニメーション化しないでください。
  • 要求されない限り、同じクリップをループさせないでください。
  • 返された動画パスを使用して、FFmpeg ストリームコピーでマルチショットのタイムラインを組み立てます。

imagine_reference_to_video

1つ以上の参照画像パスからプロンプトに従って動画を生成します。クリーンな最初のフレームが目標の場合は、まず imagine_reference_to_image で単一の静止画を合成し、次に imagine_image_to_video を使用することを推奨します。

強力なプロンプトの書き方

おおよそ次の順序で記述します:被写体 → 動作/ポーズ → 設定 → スタイル → 構図 → 照明/ムード → 重要な詳細。

  • 具体的かつ明確にします。最も重要な要素から始めます。
  • 除外するものではなく、含めるものを述べます。
  • プロンプトごとに1つの一貫したシーンを使用します。
  • aspect_ratio をユースケースに合わせます:9:16 は電話/ストーリー、16:9 はバナー/動画フレームまたはOGシェアカード、1:1 はアバター/アイコン。

実在の人物と参照

  1. 明らかな場合でも、まずウェブを検索して身元、役割、関係、またはイベントを確認します。
  2. ディスク上に強力な参照画像を取得し(ユーザーアップロードまたは検索 → サンドボックスパス)、そのパスを指定して imagine_image_to_image を呼び出します。ユーザーがアップロードした写真が最適です。
  3. 適切な参照が存在しない場合は、弱いベースから生成するのではなく、ユーザーにアップロードを依頼します。

結果の表示

  • render_file にサンドボックスの file_path を指定して呼び出し、ユーザーがチャットで画像/動画を確認できるようにします。
  • 自身のQCとスクリプトについては、そのパスで read_file / シェルを使用します。

ゲームのスプライトとマップには独自のパイプラインがあります — それらについては generate2dsprite、video2dsprite、generate2dmap に従ってください。

避けるべき障害モード

  • 統合名 imagine_image または imagine_video の呼び出し(利用できません)。
  • imagine_image_to_image / imagine_image_to_video にリストを渡す(単一ソースのみ)。
  • ツールが返したことのないファイルシステムパスをでっち上げる。
  • 実際の生成/file_path なしに、でっち上げたパスで chroma/ffmpeg を実行する。

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

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

関連スキル