Communitygithub.com

evalix098/tiktoklive

Projete e construa interfaces polidas e não genéricas para este aplicativo TanStack Start + React + Tailwind v4 + shadcn/Radix. Use sempre que criar ou reformular qualquer superfície de interface — páginas, landing pages, dashboards, formulários, modais, navegação e sobreposições de jogos (telas iniciais, HUD, menus). Abrange tokens de design, layout, tipografia, cor, espaçamento, movimento e as regras anti-"AI-slop" que evitam resultados genéricos. Dispara com "design", "UI", "deixar bonito", "polir", "landing page", "tema", "estilo", "redesign", "feio", "organizar".

O que é tiktoklive?

Esta skill fornece um sistema de design completo e regras de UI para criar interfaces polidas, intencionais e não genéricas em aplicações TanStack Start + React + Tailwind v4 + shadcn/Radix. Ela abrange desde a definição de tokens de design (cores, tipografia, espaçamento, bordas) no CSS, usando `@theme`, até a aplicação de um rubric quantificado que limita o número de cores e fontes, garante contraste e prioriza o design mobile-first. A skill também inclui uma seção anti-"AI-slop" que proíbe práticas comuns que deixam a UI com aparência genérica, como gradientes preenchidos, emojis como ícones e imagens placeholder. Por fim, orienta sobre layout, hierarquia visual, animações sutis e a estilização de sobreposições de jogos, com uma checklist de finalização para garantir a qualidade. É uma skill essencial para desenvolvedores que querem elevar o padrão visual de seus projetos, seja em páginas, dashboards ou HUDs de jogos.

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

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Design & UI

Crie interfaces que pareçam intencionais e premium, não genéricas como templates. Esta é a maior alavanca de qualidade no construtor de aplicativos. Aplique-a à UI DOM / sobreposição — páginas, chrome, HUD, menus, formulários. (Para o canvas de gameplay de um jogo 3D, veja a skill building-games; esta skill governa a UI DOM sobreposta a ele.)

Leia references/ para aprofundamento (carregado sob demanda — não inclua tudo inline):

  • references/refined-ui.md — o sistema de design completo de produto-chrome/sobreposição.
  • references/typography.md — escala tipográfica, pares, ritmo.
  • references/surfaces.md — elevação, bordas, sombras, camadas.
  • references/animations.md — movimento, easing, transições.
  • references/performance.md — mantenha a UI fluida (60fps, sem travamentos).

1. Design-system-first (faça isso antes de estilizar qualquer coisa)

Defina o sistema uma vez, depois componha a partir dele. Nunca espalhe valores avulsos.

  • Tokens no CSS (Tailwind v4 é CSS-first). Coloque a paleta, raios e fontes em src/styles.css dentro de @theme como variáveis CSS; consuma-os como utilitários do Tailwind. Uma única fonte da verdade.
    @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;
    }
    
  • Use componentes shadcn/ui (primitivas Radix + variantes cva + tailwind-merge) para botões, diálogos, dropdowns, inputs, etc. Eles são acessíveis e consistentes. Gere-os em src/components/ui; estilize através de tokens, não hex inline.
  • Correção de base do Tailwind v4 — botões precisam de cursor pointer. O Preflight do v4 faz <button> usar cursor: default, o que parece quebrado. Adicione isso uma vez em src/styles.css para que botões/roles clicáveis mostrem um pointer:
    @layer base {
      button:not(:disabled),
      [role="button"]:not(:disabled) { cursor: pointer; }
    }
    
  • Proíba estilização avulsa: sem hex puro no JSX, sem literais text-white/bg-black, sem valores arbitrários como p-[16px] ou text-[13px]. Se precisar de um valor, ele vira um token ou um degrau de escala.

2. A rubrica quantificada (regras baratas que previnem o "feio")

  • ≤ 3–5 cores no total (uma primária + neutras + no máximo um acento). Sem matizes extras aleatórios. Não use roxo como padrão a menos que seja solicitado.
  • ≤ 2 famílias de fontes (geralmente uma). Combine uma fonte de exibição/título com uma de corpo, ou use apenas uma.
  • Altura de linha 1.4–1.6 para corpo; mais justa para títulos grandes.
  • Quando sobrescrever uma cor de fundo, sobrescreva também a cor do texto/primeiro plano (o contraste deve ser mantido — verifique tanto no modo claro quanto no escuro).
  • Mobile-first: projete primeiro o layout de ~390px, depois escale. Sem overflow horizontal; alvos de toque ≥ 44px.
  • Escala de espaçamento consistente (baseada em 4/8). Espaço em branco generoso é melhor do que apinhamento.
  • Um acento, usado com moderação para ações primárias — não em todo lugar.

3. Anti-AI-slop (os sinais que fazem o resultado parecer genérico — evite)

  • Sem preenchimento de gradiente-blob, sem gradientes enormes de herói como substituto de conteúdo.
  • Sem emoji como ícones — use um conjunto de ícones real (lucide-react).
  • Sem ilustrações SVG desenhadas à mão / mapas / gráficos — use bibliotecas reais (recharts para gráficos) ou imagens geradas reais.
  • Sem imagens placeholder / caixas cinza lorem no produto final — gere imagens reais ou use conteúdo real; defina crossOrigin="anonymous" em imagens de canvas.
  • Evite a aparência de fonte excessivamente usada (apenas sistema padrão, ou escolhas no nível Comic Sans).
  • Cada elemento ganha seu lugar. Corte ruído decorativo. Estabeleça um sistema, depois varie com intenção — não aleatoriedade.
  • Combine com a UI existente ao editar um aplicativo no local; não introduza uma segunda linguagem visual.

4. Layout & hierarquia

  • Hierarquia visual clara: uma ação primária por visualização; tamanho/peso/cor expressam importância. Veja references/typography.md e references/surfaces.md.
  • Use estrutura de layout real (grid/flex, larguras máximas de contêiner), não hacks de posicionamento absoluto. Alinhe a uma grade consistente.
  • Estados vazios, de carregamento e de erro fazem parte do design — não entregue estados intermediários em branco/com problemas.

5. Movimento (sutil, proposital)

  • Transições curtas e suaves (150–250ms) ao passar o mouse/pressionar/entrar; respeite prefers-reduced-motion. Detalhes em references/animations.md.
  • Nunca anime o layout de forma que cause travamento; prefira transform/opacity.

6. Sobreposições de jogos (quando combinado com building-games)

O canvas do jogo é de responsabilidade do building-games. Esta skill estiliza a sobreposição DOM: tela inicial/"clique para jogar", HUD, pontuação, menus, pausa, controles mobile. Mantenha a sobreposição legível sobre o canvas (fundo, contraste) e fora do caminho de entrada do pointer-lock/gameplay.


Checklist de finalização (antes de considerar a UI pronta)

  • Tokens definidos em @theme; sem hex avulso / valores arbitrários no JSX.
  • ≤ 5 cores, ≤ 2 fontes, escala de espaçamento consistente.
  • Contraste mantido; primeiro plano sobrescrito onde o fundo é.
  • Mobile (~390px) sem overflow; alvos ≥ 44px.
  • Ícones/imagens/gráficos reais — nenhum dos sinais de AI-slop.
  • Estados de carregamento/vazio/erro tratados; movimento sutil e seguro para reduced-motion.
  • Renderizado e inspecionado visualmente em um navegador (veja verificação em AGENTS.md), não apenas 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).

Habilidades Relacionadas