Communitygithub.com

evalix098/tiktoklive

Diseña y construye interfaces pulidas y no genéricas para esta aplicación TanStack Start + React + Tailwind v4 + shadcn/Radix. Úsalo al crear o rediseñar cualquier superficie de interfaz: páginas, landing pages, paneles, formularios, modales, navegación y superposiciones de juego (pantallas de inicio, HUD, menús).

¿Qué es tiktoklive?

Este skill proporciona un sistema completo de diseño y UI para aplicaciones modernas con TanStack Start, React, Tailwind v4 y shadcn/Radix. Está diseñado para garantizar que cualquier interfaz que se cree o rediseñe luzca intencionada y premium, evitando el aspecto genérico típico de las salidas de IA ("AI-slop"). El skill cubre desde la definición de tokens de diseño (colores, tipografía, espaciado, radios) en CSS hasta reglas cuantificadas para evitar interfaces feas: límite de colores (≤5), fuentes (≤2), escalas de espaciado consistentes, jerarquía visual clara y animaciones sutiles. También incluye directrices específicas para superposiciones de juego cuando se combina con el skill de creación de juegos. Soporta plataformas como Claude Code, Cursor y Codex, y se activa con palabras clave como "design", "UI", "make it look good", "polish", "landing page", "theme", "style", "redesign", "ugly", "clean up". El skill hace referencia a documentos externos en `references/` para profundizar en tipografía, superficies, animaciones y rendimiento, pero proporciona las reglas esenciales y ejemplos de código directamente en el markdown principal.

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

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Diseño & UI

Crea interfaces que se vean intencionadas y premium, no genéricas como plantillas. Esta es la palanca de calidad más importante en el constructor de aplicaciones. Aplícalo a interfaces DOM / superposiciones — páginas, chrome, HUD, menús, formularios. (Para el lienzo de juego 3D, consulta el skill building-games; este skill rige la interfaz DOM que se superpone a él.)

Lee references/ para profundizar (se carga bajo demanda, no lo incluya todo en línea):

  • references/refined-ui.md — el sistema de diseño completo para chrome de producto/superposición.
  • references/typography.md — escalas tipográficas, emparejamientos, ritmo.
  • references/surfaces.md — elevación, bordes, sombras, capas.
  • references/animations.md — movimiento, easing, transiciones.
  • references/performance.md — mantén la interfaz fluida (60fps, sin tirones).

1. Sistema-de-diseño-primero (haz esto antes de estilizar cualquier cosa)

Define el sistema una vez, luego compón a partir de él. Nunca añadas valores ad-hoc.

  • Tokens en CSS (Tailwind v4 es CSS-first). Pon la paleta, radios y fuentes en src/styles.css con @theme como variables CSS; consúmelos como utilidades de Tailwind. Una única fuente de verdad.
    @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;
    }
    
  • Usa componentes shadcn/ui (primitivas Radix + variantes cva + tailwind-merge) para botones, diálogos, dropdowns, inputs, etc. Son accesibles y consistentes. Genéralos en src/components/ui; estiliza mediante tokens, no hex inline.
  • Corrección base de Tailwind v4: los botones necesitan un cursor pointer. El Preflight de v4 hace que <button> use cursor: default, lo que se siente roto. Añade esto una vez en src/styles.css para que los botones/roles cliqueables muestren un puntero:
    @layer base {
      button:not(:disabled),
      [role="button"]:not(:disabled) { cursor: pointer; }
    }
    
  • Prohíbe el estilo ad-hoc: nada de hex en bruto en JSX, nada de literales text-white/bg-black, nada de valores arbitrarios como p-[16px] o text-[13px]. Si necesitas un valor, se convierte en un token o en un paso de escala.

2. La rúbrica cuantificada (reglas baratas que evitan lo "feo")

  • ≤ 3–5 colores en total (un primario + neutros + como máximo un acento). Sin tonos extra aleatorios. No recurras a púrpura a menos que te lo pidan.
  • ≤ 2 familias de fuentes (a menudo una sola). Empareja una fuente de display/encabezado con una de cuerpo, o usa una sola.
  • Altura de línea 1.4–1.6 para cuerpo; más ajustada para encabezados grandes.
  • Cuando sobrescribas un color de fondo, sobrescribe también el color de texto/foreground (el contraste debe mantenerse: compruébalo tanto en claro como en oscuro).
  • Móvil primero: diseña primero el diseño para ~390px, luego escala hacia arriba. Sin desbordamiento horizontal; objetivos táctiles ≥ 44px.
  • Escala de espaciado consistente (basada en 4/8). El espacio en blanco generoso supera al amontonamiento.
  • Un acento, usado con moderación para acciones principales, no en todas partes.

3. Anti-AI-slop (las señales que hacen que la salida se vea genérica — evítalas)

  • Sin relleno de blob degradado, sin degradados hero gigantes como sustituto del contenido.
  • Sin emojis como iconos — usa un conjunto de iconos real (lucide-react).
  • Sin ilustraciones SVG dibujadas a mano / mapas / gráficos — usa librerías reales (recharts para gráficos) o imágenes generadas reales.
  • Sin imágenes placeholder / cajas grises lorem en el producto final — genera imágenes reales o usa contenido real; establece crossOrigin="anonymous" en imágenes de canvas.
  • Evita el aspecto de fuente sobreutilizada (solo sistema por defecto, o selecciones tipo Comic Sans).
  • Cada elemento se gana su lugar. Elimina el ruido decorativo. Establece un sistema, luego varía con intención, no con aleatoriedad.
  • Coincide con la UI existente al editar una aplicación in situ; no introduzcas un segundo lenguaje visual.

4. Layout & jerarquía

  • Jerarquía visual clara: una acción principal por vista; el tamaño/peso/color expresa importancia. Consulta references/typography.md y references/surfaces.md.
  • Usa estructura de layout real (grid/flex, anchos máximos de contenedor), no trucos de posición absoluta. Alinea a una cuadrícula consistente.
  • Los estados vacíos, de carga y de error son parte del diseño — no entregues estados intermedios en blanco/con tirones.

5. Movimiento (sutil, con propósito)

  • Transiciones cortas y suaves (150–250ms) en hover/press/enter; respeta prefers-reduced-motion. Detalles en references/animations.md.
  • Nunca anime el layout de una manera que cause tirones; prefiere transform/opacity.

6. Superposiciones de juego (cuando esto se combina con building-games)

El lienzo de juego pertenece a building-games. Este skill estiliza la superposición DOM: pantalla de inicio/"clic para jugar", HUD, puntuación, menús, pausa, controles móviles. Mantén la superposición legible sobre el lienzo (fondo, contraste) y fuera de la ruta de entrada de pointer-lock/juego.


Lista de verificación final (antes de dar la UI por terminada)

  • Tokens definidos en @theme; sin hex ad-hoc / valores arbitrarios en JSX.
  • ≤ 5 colores, ≤ 2 fuentes, escala de espaciado consistente.
  • El contraste se mantiene; foreground sobrescrito donde se sobrescribe el fondo.
  • Móvil (~390px) sin desbordamiento; objetivos ≥ 44px.
  • Iconos/imágenes/gráficos reales — ninguna de las señales anti-slop.
  • Estados de carga/vacío/error manejados; movimiento sutil y seguro para reduced-motion.
  • Renderizado y revisado visualmente en un navegador (consulta la verificación en AGENTS.md), no solo con 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).

Skills relacionados