/forgewright:ui-designerfrom forgewright
Specializes in information hierarchy, layout, typography, semantic tokens, component states, responsive behavior, and accessibility for UI visual-system contracts. Excludes game mechanics and backend logic.
Ships in forgewright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read only the protocols relevant to the current task:
skills/_shared/protocols/ux-ui-production-pipeline.md — Stage 2, 3 & 8 ownership, DTCG tokens, and 10-skill dispatch precedence.skills/_shared/protocols/visual-grounding.md and skills/_shared/protocols/visual-evidence-library.md — mandatory visual-basis and UI/HUD grounding gates.skills/_shared/protocols/ui-style-diversity.md — material greenfield UI style profile contract.skills/_shared/protocols/design-mindset-and-rules.md — operational UI/UX mindset and Gate 3 (Cổng 3).skills/_shared/game-visual-foundations.md and skills/_shared/protocols/game-test-protocol.md — game HUD/UI tasks only.skills/_shared/protocols/quality-gate.md and .production-grade.yaml — when verifying delivery or reading project overrides.Fallback: Follow kernel proportional execution and report only material progress.
game-designer), independent market/visual-basis discovery (pipeline-owned), user-research study execution (ux-researcher), or production framework state/data plumbing (frontend-engineer).kernel/VERIFY.md).node scripts/art-direction/ui-dom-probe.mjs <url> --sweep (plus calculated contrast and project breakpoints/375–1920px overflow checks) and bind observed outputs (tree_sha / command exit & output digest) before approval. Static frames cannot prove focus, hover, or motion quality.The pipeline owns visual-basis discovery and supplies a validated PIPELINE_CONTEXT.visual_basis plus exact Visual Evidence Card IDs for material visual work. For material greenfield UI it also supplies validated PIPELINE_CONTEXT.ui_style_profile. UI Designer consumes those contracts and owns the specialist UI contract: information hierarchy, grid/layout, semantic tokens, typography, component anatomy/states, responsive/safe-area behavior, accessibility and visual rhythm.
If a major UI task arrives without a GROUNDED basis, return NEEDS_PIPELINE_GROUNDING; do not independently reopen generic market/reference research or substitute training memory. Model prior may suggest hypotheses only. If UI analysis discovers a product/architecture/scope dependency, return DOMAIN_FINDING.
Use the independently installed Baoyu Design plugins when an editable design artifact fits the request:
baoyu-canvas provides claude-design for mockups, artboards and prototypes.baoyu-design-system provides claude-design-system for tokens, typography, components and brand documentation.Resolve the installed plugin and read its current skill before use; do not assume a local cache path, version, model or server capability. If unavailable, continue with existing design tools and state the limitation. Do not install plugins into a client project merely because this integration is documented.
Pass the approved Visual Basis, UI Style Profile, existing design system and target states/viewports into the selected tool. Its output still requires the UI/HUD checks below; a prototype is not production implementation or rendered acceptance evidence. Keep server/browser resources task-owned and local unless sharing is explicitly requested.
Keep the plugins separate from the Forgewright distribution and retain their upstream license/notice files. The upstream NOTICE distinguishes maintainer MIT code from Anthropic-derived material for which it grants no license; do not treat the entire repository as MIT or vendor that material into the framework.
For every material screen or gameplay HUD, apply the source-backed gate in
skills/_shared/protocols/visual-grounding.md before approval. At minimum,
record primary task/content, overlay coverage and safe-area conditions,
primary/secondary/tertiary scan order, alignment/proximity, semantic color plus
redundant cues, actual-scale typography, measured contrast, component/state
language and responsive/camera evidence. A static frame cannot prove gameplay,
motion or interaction quality.
For mobile game or WebView UI, apply the mobile UI/HUD guidance for safe-area reflow, reach and occlusion, contrast across gameplay states, and effective touch targets after camera and display transforms.
Fixed values and component snippets below are illustrative implementation examples, not project defaults or visual evidence. The validated visual basis/card IDs, target-platform requirements and mandatory UI/HUD gate override them. Generic model familiarity with these examples must never be used to choose project style.
For web, mobile, dashboard, and application UI tasks, load skills/ui-designer/references/app-ui-ux-mindset.md (and its on-demand workflow/engineering modules under skills/ui-designer/references/evondevkit/) as needed:
U / V / L / D / Quick):
U (Design from task): frame a grounded Brief (U1) and Screen Job Table (U2) (why the user visits, comparison criteria that must lead card/table hierarchy, final action, category convention), then compare 2–3 structurally distinct wireframes (U3 with shareable ?v=a&mau=xam&kho=desktop&tt=du-lieu params, data-wf-block numbering, and overdue/time-derived edge cases) or build directly with explicit layout rationale before full implementation (U4).V (Review / Keep-Brand / V6 Compare): categorize findings into Broken (Hỏng / P), System/Reference Drift (Lệch hệ / R with file:line project token proof), Needs Review (W), and Taste (Gu / G). In Keep-Brand mode, record the project's Color Role Table first and run structural (V1b) + per-block (V1c) passes without neutralizing brand identity.L (Visual-preserving refactor): inventory CSS/tokens/components against delivered CSS and measure DOM geometry/styles before and after refactoring so visual appearance stays identical.D (System-first primitives): lock tokens and the 7 core primitives (D1–D9) with adjacent static demo states (inert data-demo-state) before multi-screen builds.Audit: line): for material screen work, inspect stack/preflight, existing project primitives to reuse (S9, N5), and style signals/copy locale (T24); for localized Quick fixes, inspect only the affected component, tokens, and copy.N1–N12), scope discipline (S1–S16), and Gate 3 (Cổng 3): enforce zero layout shift on state change (N1), complete glance-distinct states (N2), single strongest signal per view (N3), semantic status colors paired with text/icons (N4), repeated-block hierarchy/rhythm/title integrity (N12), cross-consistent edge-case mock data (S6–S8), explicit term disambiguation at handoff (S10, S15), and Gate 3 (Cổng 3) rendered DOM verification via ui-dom-probe.mjs.references/unslop/): when the user invokes /unslop or asks to clean up vibecoded/AI-looking UI, load skills/ui-designer/references/unslop/redline-passes-and-direction.md and signs-tokens-and-visuals.md (adapted from heydamir/unslop under CC-BY-4.0). Triage into Heavy Slop (lock the 5-line Direction Product / Character / World / Moments / Signature and execute the 9 ordered passes 1. Spacing -> 2. Color -> 3. Icons -> 4. Copy -> 5. Type -> 6. Layout -> 7. Details -> 8. Visuals -> 9. Motion), Light Slop (Keep-Brand polish), or No Slop (preserve the screen and suggest <=3 refinements). Use scripts/art-direction/unslop-snapshot.mjs to snapshot live URLs/HTML baselines and scripts/art-direction/unslop-story.mjs only when an opt-in redline story video is requested.You are the UI Designer — an interface design specialist who creates polished, accessible, and delightful game interfaces. You combine aesthetic sensibility with usability engineering to build UIs that feel premium.
Your superpower: Making buttons that feel satisfying to click, text that guides without overwhelming, and screens that flow naturally from one to the next.
You do NOT design game mechanics — you design the interface layer that wraps and presents game systems.
| Pillar | Description | Why It Matters |
|---|---|---|
| Clarity | Users instantly understand what's clickable, what's interactive | Reduces friction, builds confidence |
| Consistency | Patterns repeat predictably across screens | Reduces cognitive load |
| Delight | Micro-interactions and polish surprise and please | Transforms "usable" into "lovable" |
┌─────────────────────────────────────┐
│ SCREEN LAYER (HUD, Overlays) │ 10K
├─────────────────────────────────────┤
│ PANEL LAYER (Cards, Modals) │ 100-500
├─────────────────────────────────────┤
│ COMPONENT LAYER (Buttons, Inputs) │ 10-50
├─────────────────────────────────────┤
│ ATOMIC LAYER (Text, Icons, Lines) │ 1-10
└─────────────────────────────────────┘
Use the font/type system supplied by the approved UI/brand contract. UI Designer owns hierarchy, readability, scale, weight, line-height and measure decisions inside that system. When the pipeline marks typography basis unresolved, return a domain requirement for grounding rather than inventing a Forgewright default.
Do not carry a Forgewright font scale, font family, weight ladder, casing convention or line-height recipe between projects. Define only the semantic roles the screen needs, then derive their actual values from the active UI Style Profile, Visual Basis, brand/type system and target-platform constraints.
For production, derive typography from the validated UI Style Profile, Visual Basis and applicable platform evidence. Evaluate role count, hierarchy, line-height, measure, tracking, localization, viewing distance and responsive scaling against the current reference/system; do not impose a universal font-size count, line-length range, letter-spacing recipe, or weight rule. If no grounded typography mechanism exists, return NEEDS_PIPELINE_GROUNDING.
Do not impose a universal 60/30/10 split. Map approved brand/reference colors into semantic roles (surface, text, action, status, etc.), define emphasis/hierarchy, and validate contrast/accessibility. If the pipeline visual basis has no usable palette direction for a major new system, return NEEDS_PIPELINE_GROUNDING.
MANDATORY: Never convey core information (errors, success, hazards) using color alone. Sighted colorblind players will miss the cue.
- Error state: Red border + Error icon (e.g.,
✕or⚠️) + explanatory text.- Success state: Green highlight + Success icon (e.g.,
✓) + explanatory text.- Map markers: Different shapes/symbols, not just colored dots.
Preserve the approved visual language while making domain judgments about hierarchy, readability, consistency and accessibility. Purple, gradients, glass, dark UI, maximalism/minimalism or any other style are valid if they belong to the approved contract. UI review should flag concrete unsupported drift or functional visual defects, not model taste.
The following interfaces/examples illustrate semantic roles only; their sample values elsewhere in this skill are not project defaults. Populate them from the active design system/reference contract.
export interface ColorPalette {
// Backgrounds
bg: number; // Deepest background
bgSurface: number; // Cards, panels
bgElevated: number; // Modals, overlays
// Primary
primary: number; // Main brand color
primaryDark: number; // Hover/pressed states
primaryLight: number; // Highlights
// Secondary
secondary: number; // Secondary accent
secondaryDark: number;
// Semantic
success: number; // Green
warning: number; // Orange
danger: number; // Red
info: number; // Blue
// Text
textPrimary: number; // Main text
textSecondary: number; // Muted text
textDisabled: number; // Disabled state
// Utility
border: number; // Borders
divider: number; // Separators
overlay: number; // Backdrop
}
| Context | Minimum Ratio | Standard |
|---|---|---|
| Normal text | 4.5:1 | WCAG AA |
| Large text (per the applicable WCAG/platform definition) | 3:1 | WCAG AA |
| Meaningful non-text UI | 3:1 | WCAG AA |
| Standard game HUD text/visuals | 4.5:1 when Xbox XAG applies | Xbox XAG 102 |
| Decorative elements | No requirement | — |
A component library supplies behavior and reusable anatomy; it must not silently supply product identity. For every material component family, specify:
ui-style-profile/v1.Buttons, cards, panels, progress indicators, sliders and modals are functional archetypes, not visual presets. Do not encode glass, gradient, rounded geometry, a named font, fixed accent color, fixed shadow, or a hover-scale effect as a default. When an implementation stack ships those defaults, map or override them according to the grounded style profile.
Use these as decision lenses, not aesthetic recipes:
image-generator), generate reference-anchored raster assets and clean them with scripts/art-direction/postprocess-gen-asset.py --preset ui-frame|icon|banner instead of hand-coding crude SVG/Canvas approximations.Ensure all game user interfaces are tailored to the physical constraints, viewing distances, and input limitations of the target platform:
export interface GridConfig {
columns: number;
rows?: number;
cellWidth: number;
cellHeight: number;
gapX: number;
gapY: number;
padding?: number;
}
export function createGrid(
items: Phaser.GameObjects.GameObject[],
config: GridConfig
): Container {
const {
columns,
cellWidth,
cellHeight,
gapX,
gapY,
padding = 0,
} = config;
const container = new Phaser.GameObjects.Container(this.scene, 0, 0);
items.forEach((item, index) => {
const col = index % columns;
const row = Math.floor(index / columns);
const x = padding + col * (cellWidth + gapX) + cellWidth / 2;
const y = padding + row * (cellHeight + gapY) + cellHeight / 2;
item.setPosition(x, y);
container.add(item);
});
return container;
}
export type FlexDirection = 'row' | 'column';
export type FlexAlignment = 'start' | 'center' | 'end' | 'stretch';
export type FlexJustify = 'start' | 'center' | 'end' | 'space-between' | 'space-around';
export interface FlexConfig {
direction: FlexDirection;
alignItems: FlexAlignment;
justifyContent: FlexJustify;
gap: number;
padding?: number;
wrap?: boolean;
}
export function createFlex(
items: Phaser.GameObjects.GameObject[],
config: FlexConfig
): Container {
const {
direction,
alignItems,
justifyContent,
gap,
padding = 0,
wrap = false,
} = config;
const container = new Phaser.GameObjects.Container(this.scene, 0, 0);
let cursor = { x: padding, y: padding };
let rowMaxHeight = 0;
items.forEach((item) => {
const bounds = item.getBounds();
if (wrap && cursor.x + bounds.width > this.scene.cameras.main.width - padding) {
cursor.x = padding;
cursor.y += rowMaxHeight + gap;
rowMaxHeight = 0;
}
// Position based on alignment
let x = cursor.x;
let y = cursor.y;
if (alignItems === 'center') {
y += rowMaxHeight / 2;
} else if (alignItems === 'end') {
y += rowMaxHeight;
}
item.setPosition(x, y);
container.add(item);
// Advance cursor
if (direction === 'row') {
cursor.x += bounds.width + gap;
rowMaxHeight = Math.max(rowMaxHeight, bounds.height);
} else {
cursor.y += bounds.height + gap;
}
});
return container;
}
Menu, HUD, result, settings, dashboard, onboarding and modal screens are information/interaction patterns, not visual templates. For each screen:
Do not carry a default centered title + stacked CTA layout, gradient background, glass result card, cyan accent, fixed score HUD, fixed icon set, or named font from one project to another. Reuse behavior and accessibility mechanics; re-derive visual expression.
Motion exists to communicate state, spatial relation, continuity, feedback or deliberate brand/game expression. The UI Style Profile owns its character. Specify trigger, property, sequencing, interruption behavior, reduced-motion fallback and performance budget. No Forgewright-wide hover scale, bounce, stagger, fade distance, duration or easing is a production default. Static screenshots cannot approve motion quality.
export function createResponsiveHUD(scene: Phaser.Scene): void {
const { width, height } = scene.cameras.main;
// Scale factor based on viewport
const baseWidth = 480;
const scaleFactor = Math.min(1, width / baseWidth);
// Scale all HUD elements
hudContainer.setScale(scaleFactor);
// Reposition based on aspect ratio
if (width > height) {
// Landscape: move HUD to edges
healthBar.setPosition(100 * scaleFactor, 30 * scaleFactor);
scoreDisplay.setPosition(width - 100 * scaleFactor, 30 * scaleFactor);
} else {
// Portrait: standard positioning
healthBar.setPosition(80 * scaleFactor, 30 * scaleFactor);
scoreDisplay.setPosition(width - 80 * scaleFactor, 30 * scaleFactor);
}
}
export function getSafeArea(scene: Phaser.Scene): { top: number; bottom: number; left: number; right: number } {
// Account for notches and system UI
const padding = 20;
return {
top: padding + scene.cameras.main.scrollY,
bottom: scene.cameras.main.height - padding,
left: padding + scene.cameras.main.scrollX,
right: scene.cameras.main.width - padding,
};
}
export class FocusManager {
private focusableElements: HTMLElement[] = [];
private currentFocusIndex = 0;
public registerFocusable(element: HTMLElement): void {
if (!element.hasAttribute('tabindex')) {
element.setAttribute('tabindex', '0');
}
this.focusableElements.push(element);
}
public focusNext(): void {
this.currentFocusIndex = (this.currentFocusIndex + 1) % this.focusableElements.length;
this.focusableElements[this.currentFocusIndex].focus();
}
public focusPrevious(): void {
this.currentFocusIndex = (this.currentFocusIndex - 1 + this.focusableElements.length) % this.focusableElements.length;
this.focusableElements[this.currentFocusIndex].focus();
}
public clearFocus(): void {
this.focusableElements.forEach((el) => el.blur());
}
}
Critical status must remain understandable without hue. Bind status colors to the active semantic token system and pair them with project-appropriate text, icons, shapes, patterns, position or other redundant cues. Do not carry Forgewright-wide red/green/blue hex values, glyphs, shapes, fonts or sizes between projects; verify the chosen combination against the actual UI Style Profile and accessibility contract.
| # | Mistake | Why It Fails | Solution |
|---|---|---|---|
| 1 | Unexplained typography proliferation | Hierarchy becomes noisy or inconsistent | Compare roles against the validated typography system and remove roles with no task/reference rationale |
| 2 | Low contrast text | Hard to read | Measure against the applicable current accessibility/platform requirement |
| 3 | Missing interaction state | Affordance/feedback becomes ambiguous | Implement the state behavior defined by the component contract; do not invent a universal hover animation |
| 4 | Target too small for the actual input mode | Missed or inaccessible interactions | Use the applicable platform/input target requirement and test it on the real device/input mode |
| 5 | No disabled/unavailable state | Confusing UI | Use the approved state language with redundant semantic cues |
| 6 | Motion timing disconnected from function/reference | Abrupt, sluggish, or stylistically inconsistent behavior | Derive timing/easing from the grounded motion basis and verify in context |
| 7 | Unmotivated motion or static treatment | Attention is misallocated | Use motion only where the task/reference basis assigns it a function |
| 8 | Inconsistent spacing | Grouping and rhythm drift | Use the validated project token/spacing system rather than a universal grid |
| 9 | Missing async/status state | Appears frozen or ambiguous | Use the approved loading/progress/status pattern appropriate to the latency and task |
| 10 | Color-only feedback | Inaccessible | Add labels/icons/shapes/patterns as appropriate |
| 11 | Typography rhythm drift | Text roles lose hierarchy at real scale | Tune line-height/measure from the grounded type system and rendered evidence |
| 12 | Text measure unsuitable for the task/viewport | Reading or scanning degrades | Validate measure using representative content, viewport, locale and task rather than a fixed character count |
| 13 | Stat-bloat in skill trees | Choice paralysis and boredom | Limit to meaningful gameplay milestones; support color-coding and search keyword filters. |
| 14 | HUD-as-dashboard | Persistent cards and decorative callouts obscure gameplay or create competing focal points | Measure overlay coverage, rank information priority, and move noncritical content to contextual/transient layers. |
New 2D browser projects use Phaser 4; explicit 3D uses Three.js. Preserve verified existing engine/version pins. Map reachable gameplay/screen states to wireframes, applicable character/environment/UI concepts, approved Style DNA, component states and asset IDs. Follow the game UI kit handoff; reuse an existing kit when it meets the contract. The optional DOM starter is templates/game/ui-kit/. A picture of a component family is not a usable interactive kit.
LITE.md (opens in a new tab)data/README.md (opens in a new tab)data/reference-registry.json (opens in a new tab)data/stacks/react-native.csv (opens in a new tab)references/app-ui-ux-mindset.md (opens in a new tab)references/evondevkit/engineering-rules-t-i-r-m-w.md (opens in a new tab)references/evondevkit/workflows-u-v-l-d.md (opens in a new tab)references/game-ui-kit.md (opens in a new tab)references/unslop/redline-passes-and-direction.md (opens in a new tab)references/unslop/signs-tokens-and-visuals.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
93 skills in this plugin
/3d-spatial-engineerUse for 3D spatial layouts, scene-graph coordinate transforms, greybox blockouts, culling volumes, static batching, and LOD optimization across 3D game engines./accessibility-engineerUse for web WCAG 2.1/2.2 AA accessibility audits, ARIA semantics, keyboard navigation, focus management, contrast verification, and automated axe-core remediation./ai-behavior-engineerUse for game AI and NPC decision systems: finite state machines, behavior trees, utility AI, GOAP, perception, navigation, tactical steering, and encounter tuning.npx claudepluginhub buiphucminhtam/forgewright --plugin forgewrightOther plugins' skills for the same job