Communitygithub.com

evalix098/tiktoklive

TanStack Start + React + Tailwind v4 + shadcn/Radix アプリ向けに、洗練された没個性的でないUIをデザイン・構築します。ページ、ランディングページ、ダッシュボード、フォーム、モーダル、ナビゲーション、ゲームオーバーレイ(スタート画面、HUD、メニュー)など、あらゆるインターフェース面の作成やリスタイル時に使用します。

tiktoklive とは?

このスキルは、TanStack Start、React、Tailwind v4、shadcn/Radix を用いたアプリケーションにおいて、高品質で没個性的でないユーザーインターフェースをデザイン・構築するための包括的なガイドラインを提供します。デザイントークン、レイアウト、タイポグラフィ、配色、スペーシング、モーションに加え、AIが生成したありきたりな「AIスロップ」を排除するルールを網羅しています。主な適用対象はDOM/オーバーレイUI(ページ、クローム、HUD、メニュー、フォーム)であり、3Dゲームのゲームプレイキャンバスは別のスキルが担当します。本スキルは、CSS変数を用いたトークン定義、shadcn/uiコンポーネントの活用、5色以下・2フォントファミリー以下への色数・フォント数の制限、モバイルファースト設計、グラデーションブロブや絵文字アイコンなどの汎用的なテクニックの禁止といった具体的なルールを定めています。また、ゲームオーバーレイに関するスタイリング指針や、UI完成時のチェックリストも含まれており、一貫性と品質を担保します。

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

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

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

ドキュメント

デザイン & UI

意図的でプレミアム感のあるインターフェースを作成します。テンプレート的な凡庸なものにしないでください。これはアプリビルダーにおける最も重要な品質向上のレバーです。DOM / オーバーレイ UI(ページ、クローム、HUD、メニュー、フォーム)に適用します。(3Dゲームのゲームプレイキャンバスについては、building-gamesスキルを参照してください。このスキルはその上に重なるDOM UIを統轄します。)

詳細は references/ を参照してください(必要に応じて読み込まれます。すべてをインライン化しないでください):

  • references/refined-ui.md — 完全なプロダクトクローム/オーバーレイデザインシステム。
  • references/typography.md — タイプスケール、ペアリング、リズム。
  • references/surfaces.md — エレベーション、ボーダー、シャドウ、レイヤリング。
  • references/animations.md — モーション、イージング、トランジション。
  • references/performance.md — UIをスムーズに保つ(60fps、カクつきなし)。

1. デザインシステムファースト(何かをスタイリングする前に行うこと)

システムを一度定義し、それから組み立てます。アドホックな値を散りばめてはいけません。

  • CSSのトークン(Tailwind v4はCSSファースト)。 パレット、半径、フォントを src/styles.css の @theme 配下にCSS変数として配置し、Tailwindユーティリティとして利用します。唯一の情報源とします。
    @import "tailwindcss";
    @theme {
      --color-bg: #0b0b0f;      --color-surface: #16161d;
      --color-fg: #e7e7ea;      --color-muted: #a0a0ab;
      --color-primary: #14b8a6; --color-border: #26262f;
      --radius: 0.75rem;        --font-sans: "Inter", system-ui, sans-serif;
    }
    
  • shadcn/ui コンポーネントを使用します(Radixプリミティブ + cva バリアント + tailwind-merge)。ボタン、ダイアログ、ドロップダウン、入力などに使用します。これらはアクセシブルで一貫性があります。src/components/ui に生成し、インラインの16進数値ではなくトークンでスタイリングします。
  • Tailwind v4 ベースの修正 — ボタンにはポインターカーソルが必要です。 v4のPreflightは <button> に対して cursor: default を設定し、動作が壊れているように感じられます。これを src/styles.css に一度追加して、ボタン/クリック可能なロールがポインターを表示するようにします:
    @layer base {
      button:not(:disabled),
      [role="button"]:not(:disabled) { cursor: pointer; }
    }
    
  • アドホックなスタイリングを禁止:JSX内の生の16進数値、text-white/bg-black リテラル、p-[16px] や text-[13px] のような任意の値は使用禁止です。値が必要な場合は、トークンまたはスケールステップにします。

2. 定量化されたルーブリック(「ダサさ」を防ぐ簡単なルール)

  • 最大3~5色(プライマリ1色+ニュートラル+最大1アクセント)。ランダムな追加色は禁止。特に指定がない限り、デフォルトでパープルにしないでください。
  • 最大2フォントファミリー(多くの場合は1つ)。ディスプレイ/見出しとボディを組み合わせるか、1つに統一します。
  • 行の高さ1.4~1.6(ボディテキスト)。大きな見出しではさらにタイトにします。
  • 背景色をオーバーライドするときは、前景/テキストの色もオーバーライドします(コントラストを維持する必要があります。ライトモードとダークモードの両方を確認してください)。
  • モバイルファースト:最初に約390pxのレイアウトをデザインし、その後スケールアップします。水平方向のオーバーフローを禁止。タップターゲットは44px以上。
  • 一貫したスペーシングスケール(4/8ベース)。タップリなホワイトスペースが詰め込みより優先されます。
  • 1つのアクセントを控えめに使用し、主要なアクションに限定します。あらゆる場所に使用しないでください。

3. アンチAIスロップ(出力を凡庸に見せる兆候 — 避けるべきもの)

  • グラデーションブロブのフィラー、コンテンツの代わりとなる巨大なヒーローグラデーションは禁止。
  • アイコンとしての絵文字は禁止 — 実際のアイコンセット(lucide-react)を使用してください。
  • 手描きSVGのイラスト/地図/チャートは禁止 — 実際のライブラリ(チャートには recharts)または実際に生成された画像を使用してください。
  • 最終製品におけるプレースホルダー画像/薄グレーのボックスは禁止 — 実際の画像を生成するか、実際のコンテンツを使用してください。キャンバス画像には crossOrigin="anonymous" を設定してください。
  • 多用されすぎたフォントの見た目(デフォルトのシステムフォントのみ、またはComic Sansレベルの選択)を避けてください。
  • すべての要素はその場所に値するものでなければなりません。 装飾的なノイズを削減してください。システムを確立し、意図を持って変化させるのであって、ランダムに行ってはいけません。
  • アプリを編集する際は既存のUIに合わせてください。2番目のビジュアル言語を持ち込まないでください。

4. レイアウト & 階層

  • 明確な視覚的階層:ビューごとに1つのプライマリアクション。サイズ/ウェイト/カラーで重要度を表現します。references/typography.md と references/surfaces.md を参照してください。
  • 実際のレイアウト構造(グリッド/フレックス、コンテナ最大幅)を使用し、絶対配置のハックは使用しないでください。一貫したグリッドに合わせてください。
  • 空の状態、ローディング状態、エラー状態はデザインの一部です。空/ギクシャクした中間状態を出荷しないでください。

5. モーション(控えめで、目的を持った)

  • ホバー/プレス/エントリー時には、短くイージングされたトランジション(150~250ms)。prefers-reduced-motion を尊重します。詳細は references/animations.md にあります。
  • カクつきの原因となる方法でレイアウトをアニメーション化しないでください。transform/opacityを優先します。

6. ゲームオーバーレイ(building-games と組み合わせる場合)

ゲームプレイキャンバスは building-games が所有します。このスキルはDOMオーバーレイ(スタート/「クリックしてプレイ」画面、HUD、スコア、メニュー、ポーズ、モバイルコントロール)のスタイリングを行います。オーバーレイはキャンバス上で読みやすくし(背景、コントラスト)、ポインターロック/ゲームプレイの入力パスから外してください。


完了チェックリスト(UI完了と呼ぶ前に行うこと)

  • トークンが @theme で定義されている。JSX内にアドホックな16進数値や任意の値がないこと。
  • 5色以下、2フォント以下、一貫したスペーシングスケール。
  • コントラストが維持されている。背景をオーバーライドした場所では前景もオーバーライドされていること。
  • モバイル(約390px)でオーバーフローがないこと。ターゲットは44px以上。
  • 実際のアイコン/画像/チャート — アンチスロップの兆候がないこと。
  • ローディング/空/エラー状態が処理されている。モーションは控えめで、モーション軽減設定に対応していること。
  • ブラウザでレンダリングされ、目視確認されていること(AGENTS.mdの確認手順を参照)。単なるcurlではないこと。

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

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

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

関連スキル