К основному содержанию
скилл CX Codex GP ChatGPT официальный · OpenAI

game-ui-frontend — скилл для Codex: что делает и как установить

Скилл помогает проектировать интерфейсы браузерных игр: HUD, меню и оверлеи. Защищает игровое поле от перекрытия панелями и настраивает блокировку ввода для 3D-камеры.

Установить в Codex · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add openai/plugins --skill game-ui-frontend -a codex
Открыть на GitHub

Что делает game-ui-frontend

Скилл задаёт правила вёрстки для веб-игр: мир рендерится в canvas или WebGL, а текст и кнопки выносятся в DOM. Интерфейс строится на CSS-переменных. Главное требование — беречь игровое поле. В 3D-играх постоянный HUD не должен занимать больше 20-25% экрана на десктопе, а центр и нижняя середина экрана остаются чистыми.

Внутри заложены правила работы с камерой и вводом. При открытии модальных окон, инвентаря или меню скилл требует глушить управление камерой и сбрасывать pointer-lock. Вторичные данные вроде карты и лора прячутся во всплывающие панели и шторки, чтобы не превращать экран в панель мониторинга.

Ставьте скилл, если делаете 3D или 2D-игру в браузере и хотите избежать тяжёлых дашбордов. Для обычных веб-сервисов без игрового рендера он не пригодится.

Какие задачи решает

  • спроектировать HUD без перекрытия игрового поля
  • развязать управление камерой и клики по кнопкам интерфейса
  • перенести текстовые меню из canvas в стандартный DOM
  • адаптировать панели игры под экраны смартфонов

Примеры запросов агенту

  • Спроектируй HUD для 3D-игры с видом от третьего лица, сохрани чистый центр экрана
  • Добавь меню инвентаря на чистом DOM и заблокируй вращение камеры при открытии

Как установить game-ui-frontend

1Через Skills CLI (Vercel)

npx skills add openai/plugins --skill game-ui-frontend -a codex

2Вручную: положить файлы

.agents/skills/game-ui-frontend/SKILL.md

Для всех проектов — ~/.agents/skills/

Из того же набора201

Весь набор →
supabase официальный supabase Скилл помогает настраивать базу данных, аутентификацию и RLS в Supabase без скрытых дыр в безопасности. CX Codex GP ChatGPT 8установок remotion-render официальный Remotion Экспортирует видео и отдельные кадры из проектов Remotion через консольные команды. CX Codex GP ChatGPT 3установок figma-create-new-file официальный Figma Создаёт пустые файлы Figma, FigJam или Slides в черновиках нужной команды. Скилл готовит параметры и planKey перед запуском MCP-инструментов. CX Codex GP ChatGPT 6установок swiftui-performance-audit официальный OpenAI Находит причины просадок кадров, долгого рендеринга и утечек памяти в SwiftUI. Помогает разобрать код вьюшек или подготовить замеры для профилирования. CX Codex GP ChatGPT 109установок swiftui-liquid-glass официальный OpenAI Скилл помогает создавать и проверять интерфейсы SwiftUI с Liquid Glass для iOS 26+. Он нужен при внедрении эффекта, ревью и проверке fallback-сценариев. CX Codex GP ChatGPT 121установок swiftui-ui-patterns официальный OpenAI Скилл помогает собирать и рефакторить SwiftUI-интерфейсы: навигацию, состояние, компоновку и контролы. Подойдёт для новых экранов и правок существующего проекта. CX Codex GP ChatGPT 114установок swiftui-view-refactor официальный OpenAI Скилл наводит порядок в коде SwiftUI: делит разросшиеся экраны на отдельные структуры View и выносит побочные эффекты из body. CX Codex GP ChatGPT 113установок ios-memgraph-leaks официальный OpenAI Скилл захватывает и разбирает утечки памяти iOS из симулятора или .memgraph. Нужен для поиска удерживающих связей и проверки исправлений. CX Codex GP ChatGPT 1 054установок

Похожие

mvvm-toolkit-messenger официальный github Скилл для GitHub Copilot по Messenger из CommunityToolkit.Mvvm: связывает ViewModels через pub/sub, без прямых ссылок друг на друга. GitHub Copilot 56установок foundry-hosted-agent-copilotkit официальный github Помогает связать фронтенд React на CopilotKit с агентом Microsoft Agent Framework в Microsoft Foundry через протокол AG-UI. Пригодится при сборке веб-приложений с ИИ-агентами на стеке Azure. GitHub Copilot 29установок landing-page-conversion-audit официальный github Скилл находит утечки конверсии на посадочных страницах и экранах оплаты. Он формирует список правок по силе влияния на доход от платного трафика. GitHub Copilot 28установок webmcpify официальный github Скилл превращает веб-приложение в набор WebMCP-инструментов для AI-агентов, проверяет работу в браузере и исправляет найденные проблемы. GitHub Copilot 27установок macos-golden-gate-design официальный github Помогает проектировать, ревьюить и верстать нативные интерфейсы macOS 27 на SwiftUI или AppKit по правилам Liquid Glass. Пригодится, если окно приложения превратилось в веб-дашборд. GitHub Copilot 23установок frontend-design официальный anthropics Скилл задаёт осмысленное визуальное направление для новых интерфейсов и редизайна. Подойдёт, когда стандартный шаблонный UI не устраивает. Claude Code Claude.ai 1 025 790установок design-taste-frontend Leonxlnx Скилл задаёт арт-дирекцию для публичных страниц и рабочих экранов, а затем проверяет результат в браузере по скриншотам. Нужен, когда интерфейс выглядит шаблонным или недоработанным. Claude Code CX Codex Cursor +1 673 100установок prototype Matt Pocock Создаёт временный прототип, чтобы проверить логику, модель состояния или вид интерфейса до работы над основным кодом. Claude Code 986 201установок

Вопросы о game-ui-frontend

Как установить game-ui-frontend в Codex?

Выполните команду npx skills add openai/plugins --skill game-ui-frontend в терминале своего проекта.

Что делает game-ui-frontend?

Направляет агента при разработке игровых интерфейсов, требуя верстать DOM поверх WebGL и не перегружать экран деталями.

Зачем скилл требует выносить текст в DOM, а не в Canvas?

Текстовый интерфейс в DOM проще стилизовать через CSS и он дешевле в рендеринге, чем ручная отрисовка шрифтов на canvas.

Исходный текст

SKILL.md · MIT
---
name: game-ui-frontend
description: Design UI surfaces for browser games. Use when the user asks for HUDs, menus, overlays, responsive layouts, or visual direction that must protect the playfield.
---

# Game UI Frontend

## Overview

Use this skill whenever the game needs a visible interface layer. The job is not to produce generic dashboard UI. The job is to produce a readable, thematic browser-game interface that supports the play experience.

Default assumption: build the game world in canvas or WebGL, and build text-heavy UI in DOM.

## Frontend Standards

1. Establish visual direction before coding.
   - Genre and fantasy
   - Material language
   - Typography
   - Palette
   - Motion tone
2. Use CSS variables for the UI theme.
3. Build clear hierarchy.
   - Critical combat or survival information first
   - Secondary tools second
   - Rarely used settings behind menus or drawers
4. Protect the playfield first, especially in 3D.
   - The initial screen should feel playable within a few seconds.
   - Default to one primary persistent HUD cluster and at most one small secondary cluster.
   - Keep the center of the playfield clear during normal play.
   - Keep the lower-middle playfield mostly clear during normal play.
   - Put lore, field notes, quest details, and long control lists behind drawers, toggles, or pause surfaces.
   - Prefer contextual prompts and transient hints over permanent boxed panels.
5. Keep overlays readable over motion.
   - Use backing panels, edge treatment, contrast, and restrained blur where needed.
6. Design for both desktop and mobile from the start.
7. Design 3D UI around camera and input control boundaries.
   - Pause or gate camera-control input when menus, dialogs, or pointer-driven UI are active.
   - Keep pointer-lock, drag-to-look, and menu interaction states explicit.

## 3D Starter Defaults

For exploration, traversal, or third-person starter scaffolds, prefer this UI budget:

- one compact objective chip or status strip at the edge
- one transient controls hint or interaction prompt
- one optional collapsible secondary surface such as a journal, map, or quest log

Do not open every informational surface on first load. The scene should be readable before the user opens any deeper UI.

As a default implementation constraint for 3D browser games:

- no always-on full-width header plus multi-card body plus full-width footer layout
- no large center-screen or lower-middle overlays during normal movement
- no more than roughly 20-25% of the viewport covered by persistent HUD on desktop unless the user explicitly requests a denser layout
- on mobile, collapse to a narrow stack or contextual chips before covering the playfield with larger panels

## Prompting Rules

When asking the model to design or implement game UI, include:

- the game fantasy
- the camera or viewpoint
- the player verbs
- the HUD layers
- the camera or control mode when the game is 3D
- the tone of motion
- desktop and mobile expectations
- playfield protection and disclosure strategy
- explicit anti-patterns to avoid

Use `../../references/frontend-prompts.md` for concrete prompt shapes.

## Motion Rules

- Prefer a few meaningful transitions over constant micro-animation.
- Reserve strong motion for state change, reward, danger, and onboarding.
- Respect reduced-motion settings for non-essential animation.
- Keep 3D HUD motion from competing with camera motion.

## What Good Looks Like

- HUD elements are legible without flattening the scene.
- Menus feel native to the game world, not like a SaaS admin panel.
- Layout adapts cleanly across breakpoints.
- Pointer, keyboard, and game-state feedback are obvious.
- In 3D games, menu and HUD states do not fight camera control or pointer-lock.
- In 3D games, the first playable view keeps most of the viewport available for movement, aiming, and spatial reading.
- Persistent information density is low enough that screenshots still read as game scenes, not UI comps.

## Anti-Patterns

- Generic app dashboard layouts
- Flat placeholder styling with no theme
- Default font stacks without intent
- Dense overlays that obscure the playfield
- Large title cards or multi-paragraph notes sitting over a live playable scene
- Equal-weight boxed panels distributed around every edge of the viewport
- Controls, objectives, notes, and lore all expanded at once on first load
- Full-width top-and-bottom chrome with large always-on center or body panels in 3D play
- Excessive motion on every element
- Canvas-only UI when DOM would be clearer and cheaper
- Forcing HUD controls into the 3D scene when standard DOM would be clearer
- Letting camera input remain active under modals or inventory panels

## References

- Shared architecture: `../web-game-foundations/SKILL.md`
- Prompt recipes: `../../references/frontend-prompts.md`
- Low-chrome 3D layout patterns: `../../references/three-hud-layout-patterns.md`
- React-hosted 3D UI context: `../react-three-fiber-game/SKILL.md`
- Playtest review: `../../references/playtest-checklist.md`

© OpenAI · MIT · openai/plugins

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой