Game ui frontend

From fanfan-de/anybox · View interactive version

Game ui frontend is an AI agent skill from the GitHub repository fanfan-de/anybox. 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.

How to use this skill

Skill file

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.
  1. Use CSS variables for the UI theme.
  2. Build clear hierarchy.
  1. Protect the playfield first, especially in 3D.
  1. Keep overlays readable over motion.
  1. Design for both desktop and mobile from the start.
  2. Design 3D UI around camera and input control boundaries.

3D Starter Defaults

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

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:

Prompting Rules

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

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

Motion Rules

What Good Looks Like

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.