/godmode:ui-engineeringfrom GodMode
Builds or modifies frontend UI components, layouts, forms, and animations within a project's design system (shadcn/ui, Material UI, Ant Design, Chakra UI, Mantine). Ensures semantic markup, state ownership, accessibility, and responsive behavior.
Ships in GodMode. 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.
godmode:ui-research decides what to build: the layout reference, the tokens, the pattern and states of each component. This skill builds it inside the project's design system with sound structure: semantic markup, composed components, clear state ownership, every state implemented, accessible by keyboard and screen reader, and fast. Use what the design system provides, define structure, states and accessibility before markup, and prove the result in a real browser.
NEVER REBUILD WHAT THE DESIGN SYSTEM PROVIDES; NEVER SHIP A COMPONENT WITHOUT ITS STATES AND KEYBOARD PATH
No exceptions. No workarounds. No shortcuts.
Required:
components/ui directory, a theme file or token file.Skip:
Run godmode:ui-research first when the screen or component has no settled pattern or tokens.
Detect the design system. Check the dependency manifest, then configuration files, then the source tree, using the detection table in design-systems.md. Record what you find: library and version, primitive layer, styling method, token location, component directory.
Read its current docs for the component you need. Library APIs change between major versions (Chakra UI v3 replaced its theming API; shadcn/ui now generates components on Radix, Base UI or React Aria). Verify the API through godmode:grounding before writing against it.
Use, compose, or extend, in that order.
Define before markup. For the component, write down: the semantic element, the props surface, every state (default, hover, focus-visible, active, disabled, loading, empty, error, partial, success as relevant), variants and sizes, the responsive behaviour, and the keyboard and screen-reader behaviour (APG pattern for widgets). godmode:ui-research usually supplies most of this; fill any gaps.
Write the test first where behaviour exists. Interaction, validation and state transitions get a failing test through the DOM before the implementation (godmode:test-first). Query by role and accessible name; that doubles as an accessibility check.
Build with the rules below: composition, layout, state ownership, responsive, forms, motion, performance.
Verify in a real browser. Run the app, open the screen, and check: every state renders (force empty, loading and error), keyboard-only use works, focus is visible and never hidden, layout holds at a small and a large width, and an automated accessibility scan (for example axe) reports no violations. Take screenshots when a reviewer will need them. Report what you saw, not what you expect.
Conformity. Compare with the nearest existing component (godmode:codebase-conventions): same file placement, naming, export style and styling mechanism.
digraph ui_eng {
rankdir=TB;
detect [label="Detect design system"];
has [label="System has the\ncomponent?", shape=diamond];
use [label="Use it (variants, sizes)"];
parts [label="Has the parts?", shape=diamond];
compose [label="Compose primitives"];
build [label="Build new, in the\nsystem's conventions"];
define [label="Define semantics, states,\nkeyboard path"];
verify [label="Verify in browser:\nstates, keyboard, widths, axe"];
detect -> has;
has -> use [label="yes"];
has -> parts [label="no"];
parts -> compose [label="yes"];
parts -> build [label="no"];
use -> define; compose -> define; build -> define;
define -> verify;
}
Choose with the user; do not install one silently. Typical fits:
| Situation | Option |
|---|---|
| React app, wants owned, editable component code | shadcn/ui on Tailwind CSS (choose the primitive base at init) |
| Wants a complete, opinionated library with many data components | Material UI or Ant Design |
| Wants a themable library with style props | Chakra UI or Mantine |
| Distinctive brand, custom look, full control | Unstyled primitives (Radix, Base UI, React Aria, Headless UI) plus tokens |
| Not React | The framework's established library; check with godmode:reference-first |
Then set tokens first (from godmode:ui-research), and create the base components (button, input, select, card, dialog, toast) before feature screens.
Prefer small parts that compose over one component with dozens of props.
Good Avoid
<Dialog> <Dialog title=... description=...
<DialogHeader> footerAlign=... showClose=...
<DialogTitle/> titleSize=... variant=... size=...
<DialogDescription/> overlayOpacity=... />
</DialogHeader>
<DialogBody/>
<DialogFooter/>
</Dialog>
Keep variants to a small named set (for example primary, secondary, ghost, destructive) and sizes to three or four. More detail and examples: component-patterns.md.
| Arranging | Use |
|---|---|
| Rows and columns together (page shell, dashboard grid, aligned card grid) | CSS Grid; repeat(auto-fill, minmax(<min>, 1fr)) for self-adjusting grids |
| One axis (nav items, toolbar, input plus button) | Flexbox with gap |
| A component that must adapt to its container, not the viewport | Container queries (Tailwind: @container with @md: variants) |
Space with gap and spacing tokens, not margins on children. Constrain reading width for text and forms.
godmode:codebase-conventions).Write the small-screen layout first and add at wider breakpoints; Tailwind's breakpoints are mobile-first, so unprefixed utilities apply at every size. Decide per component what changes (navigation collapses to a drawer, tables scroll or stack, side-by-side becomes stacked, modals become full-screen sheets) and test at the extremes, not only the middle.
button for actions, a for navigation, label for inputs, landmarks (header, nav, main, footer).:focus-visible) and never entirely hidden by sticky content (WCAG 2.2 SC 2.4.11). alt text; decorative ones have alt="". Icon-only buttons have a label.prefers-reduced-motion. Labels above fields, never placeholder-only; group with fieldset and legend; correct input types and autocomplete values. Validate when the user submits, not on blur or while typing; on failure keep their answers, show an error summary at the top with focus moved to it, and an error message by each field linked with aria-describedby. Prevent double submission and show progress on the submit button. Use the project's form and schema libraries if it has them.
Animate to explain a change of state (open, close, reorder, appear), not to decorate. Keep interface transitions short, use the motion tokens, never block input while animating, and provide a reduced-motion path that removes non-essential movement.
Core Web Vitals at the 75th percentile are the target: LCP within 2.5 s, INP of 200 ms or less, CLS of 0.1 or less.
Measure before and after for anything performance-motivated; hand deep work to godmode:performance-tuning.
| Rationalisation | Truth |
|---|---|
| "The library's component is close, I will write my own." | Your own one lacks the library's accessibility and fixes. Use or compose it. |
| "I will just override its CSS." | Specificity wars break on the next upgrade. Use the theme or variant API. |
"A div with onClick is fine." | It has no keyboard support, role or focus. Use button. |
| "I know this library's API." | Major versions rewrite APIs. Read the current docs first. |
| "States can come later." | Empty, loading and error are what real users see first. |
| "It looks right in my viewport." | Check the smallest and largest widths and keyboard-only use. |
| "Global state is simpler." | It is simpler to write and harder to reason about. Start local. |
| "The tests pass, so the UI works." | Open it in a browser and look. Rendering, focus and layout bugs hide from unit tests. |
Never:
Always:
godmode:ui-research: supplies layout reference, tokens and component patterns before this skill builds.godmode:codebase-conventions: the nearest existing component is the precedent to shadow.godmode:grounding: verifies current library APIs and versions.godmode:test-first: behaviour tests through the DOM before implementation.godmode:performance-tuning: for measured performance problems.godmode:completion-gate: the browser check is the evidence before claiming done.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub noobygains/godmode --plugin godmode33 skills in this plugin
/agent-briefingUse when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff report between agents, or sending a message to another agent mid-task./codebase-conventionsUse when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration, error path or dependency, especially in a project the agent did not write or has not yet surveyed in this session./code-reviewUse when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the user asks for a review of a change, a branch or a pull request.Other plugins' skills for the same job