Communitygithub.com

evalix098/tiktoklive

このスキルは、*.grok.me 上のアプリ向けに、シェアリンクプレビュー(OGカード)とアプリのアイデンティティ(ファビコン、PWAアイコン)を生成・管理します。アプリのスキャフォールディング、リネーム、スタイル変更時、およびシェア / アンファール / OG / Twitterカードに関する質問に使用します。

tiktoklive とは?

このスキルは、*.grok.me ドメインにデプロイされたアプリに対して、ソーシャルシェア用のOGカード(1200×630 のカスタム画像)、タブのファビコン(SVG)、およびPWAインストール用アイコンを自動生成・管理するためのものです。インジェクター(`scripts/grok-pwa-shared.mjs`)が各HTMLレスポンスにOGタグを上書きするため、開発者は `src/lib/og/site.json` にタイトルとタイプ(ゲームの場合は `x:game`)を指定し、`public/og.jpg` にカスタムカード画像を配置するだけで、すべてのブランドアセットが自動的に設定されます。特にゲームアプリでは、Xフィード用のバナー画像(`public/x-banner.jpg`)も必要です。このスキルは、ブランドアセット生成を `task` サブエージェントとして非同期に実行し、ユーザーを待たせない設計が特徴です。サブエージェントは `references/brand-pass.md` などのドキュメントを参照してアセットを生成し、`public/` に直接書き込まずに `/workspace/.grok/` にステージングしてからアトミックに配置します。対応プラットフォームは Claude Code や Codex などの AI エージェントで、シェアカード、ファビコン、PWAアイコンに関するあらゆる質問(OG、Twitterカード、アンファール、プレビュー画像など)に応答します。

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

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

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

ドキュメント

シェアカード、ファビコン、アプリアイコン

デプロイされたアプリ(https://{name}.grok.me)は1200×630のカードでアンファールされ、すべてのアプリ(プレビューを含む)はタブにファビコンを表示します。シェアカードの <meta> タグは __root.tsx で記述しません — インジェクター(scripts/grok-pwa-shared.mjs)が各HTMLレスポンスに対して og:* と twitter:card を上書きします。アイデンティティデータのみを記述し、パスがすべてを書き込みます。ディスパッチ時には、何もシードしません:

  • src/lib/og/site.json — 事前にシードされず、必要な場合のみ作成:{ "title", "type"?: "x:game", "card"?: "custom", "color"?: "RRGGBB" };タイトルはデフォルトでホストスラッグになります。
  • public/og.jpg — カスタム1200×630カード(オプション、それ以外はプレースホルダー)
  • public/x-banner.jpg — ゲームのみ:50:11(1200×264)のXフィードカード
  • public/favicon.svg — ルートの head() からリンク;パスがランディングするまで、タブにはブラウザのデフォルトが表示されますが、問題はありません

__root.tsx を拡張し、丸ごと置き換えないでください(認証SSR、リデザイン、スキル抜粋):ファビコンリンクを削除すると、ローカルチェックでは検出できない空白のタブアイコンが配信されます。

決定:このアプリにどのカードを割り当てるか

デフォルト:アプリ独自のアートによるカスタムカード — あらゆる種類のゲームとレンダリング技術(Canvas/WebGL および DOMボード、カード、ワード、パズル、クイズ:divの三目並べグリッドもゲームです)、遊び心のあるアプリ、クリエイティブツール、コンテンツ指向およびブランド指向のページ。迷ったら、カスタムカードを作成してください。

プレーンなユーティリティアプリのみ(コンバーター、CRUDトラッカー、ダッシュボード、メモ/管理 — データが顔となるアプリ)は、デフォルトの og.grok.me プレースホルダーを維持します:public/og.jpg はありません。そのURL、"color" ノブ、およびリネームルールについては、references/placeholder-card.md を参照してください。

ゲームの og:type

あらゆる種類のゲームは、src/lib/og/site.json に "type": "x:game" を持ちます — パスがそのファイルを所有して書き込みます。ホスト名は含めず、カスタムカードに依存せず、website、裸の game、twitter:card、または考案された x:type に「修正」しないでください:Xのパイプラインはその正確な値をキーにしています。非ゲームではこれを省略します。あなたのチェック対象であり、編集対象ではありません — それが欠けている場合、またはカスタムカードが存在する場合に public/x-banner.jpg が欠けている場合は、ブランド警告となります。

ブランドアセットパス:常にサブエージェント、決して待たない

task ツールをお持ちですか?このパスをサブエージェントとしてディスパッチし、自分でカードアートを生成しないでください — インラインで行うと、数分の生成レイテンシがユーザーの前に発生します。名前とパレットが確定したらすぐに(AGENTS.md §「並行作業」)、このプロンプトをそのままディスパッチしてください。これは完全です — 以下の参照を開いてエンリッチしないでください;パス自身が読み取ります:

あなたはブランドアセットパスです。og スキルに従ってください。アプリ <NAME>、og:type <TYPE>、パレット <PALETTE>。あなたは public/ ブランドアセットと src/lib/og/site.json を唯一所有します。

構築を続けてください。ユーザーがアートディレクションを行っている場合、または再利用するアートがまだ存在しない場合にのみ、逐次処理を続けてください。

決して待たないでください。 wait_tasks は使用せず、ブランドタスクに対して get_task_output も使用しないでください:タスクの出力を読み取ると消費され、消費されたタスクは完了通知を送信しないため、カードの結果(失敗を含む)は誰にも届きません。アプリがレンダリングされたらすぐに回答してください;後でパスがあなたを起こし、そのターンは多くとも1つの短い文 — 再公開を依頼する文です。public/og.jpg はビルドに含まれ、公開後にランディングしたカードはそれだけではライブアプリに到達しないためです: 「シェアカードを追加しました — すでに公開した場合はもう一度公開してください。」/「カードは失敗しました。デフォルトのカードが使用されています。」

パスが /workspace/.grok/og-pending を最新に保っている間、ブランドチェックはカードについて何も言いません:進行中は発見事項ではありません。マーカーは10分後に古くなるため、非常に長いパスでは警告が通ることがあります — しかし実行中にブランド警告が出ても、その作業をやり直す合図にはなりません。

task ツールがありませんか?その場合、あなたがパスです — 今すぐアセットをビルドしてください;他には何もありません。誰が実行しても、そのマーカーを主張し、ファイルを /workspace/.grok/ にステージングします — 決して public/ の中には入れません(vite build はこれをそのままデプロイされたアプリにコピーします)— scripts/write-atomic.mjs でハンドオーバーして、ビルドが半分のJPEGを読み取らないようにし、node scripts/brand-check.mjs --game で自己チェックします。

アセットをビルドする — パスはこれらを読み取り、親は読み取りません

ディスパッチ中ですか?開かないでください — 上記のプロンプトで完全です。1回の読み取りでこの手順がコンテキストに含まれ、後のすべてのターンでサブエージェントが作業を行います。

あなたがパスですか? references/brand-pass.md から始め、次に各資産ごとに読み取ります:public/og.jpg については references/custom-card.md、ゲームのみの public/x-banner.jpg については references/x-banner.md、public/favicon.svg とPWAラスターアイコンについては references/favicon-and-icons.md — これらはユーザーがインストール可能/PWAを要求した場合のみで、決してマニフェストを発明しないでください。そのSVGは手書きし、決して imagine_text_to_image を使用しないでください:16pxで鮮明である必要があります。ゲーム用に site.json を書く場合?references/og-type-contract.md が、Xが拒否するスペルについて説明しています。

リネーム時または重要なアイデンティティ変更時に再生成 — APP_NAME、site.json の title、および埋め込まれたカードタイトルが一緒に移動します。imagine_text_to_image またはxAI Images APIがない場合は、og.grok.me カードを維持してください;壊れた og:image URL を決して出荷しないでください。

サポート対象外

/api/og ルート、ランタイム画像レンダラー、ルートごとのカードはありません — カードは1つの静的サイト全体画像(public/og.jpg またはプレースホルダーサービス)です。robots.txt を追加する場合、Disallow: / を絶対に行わないでください:クローラーはタグを読み取るために / をフェッチする必要があります。

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

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

関連スキル