agent-briefing
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when writing or changing frontend component code, page layouts, forms, client state, responsive behaviour, animation or styling, or when working in a codebase that uses a design system or component library such as shadcn/ui, Material UI, Ant Design, Chakra UI or Mantine.
Claude Code
$ npx -y skills add NoobyGains/godmode --skill ui-engineering --agent claude-code
Codex
$ npx skills add NoobyGains/godmode --skill ui-engineering -a codex -y
Cursor
$ npx skills add NoobyGains/godmode --skill ui-engineering -a cursor -y
Gemini CLI
$ npx skills add NoobyGains/godmode --skill ui-engineering -a gemini-cli -y
GitHub Copilot
$ npx skills add NoobyGains/godmode --skill ui-engineering -a github-copilot -y
OpenCode
$ npx skills add NoobyGains/godmode --skill ui-engineering -a opencode -y
Windsurf
$ npx skills add NoobyGains/godmode --skill ui-engineering -a windsurf -y
name: ui-engineering description: "Use when writing or changing frontend component code, page layouts, forms, client state, responsive behaviour, animation or styling, or when working in a codebase that uses a design system or component library such as shadcn/ui, Material UI, Ant Design, Chakra UI or Mantine."
`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:**
**Skip:**
Run `godmode:ui-research` first when the screen or component has no settled pattern or tokens.
1. **Detect the design system.** Check the dependency manifest, then configuration files, then the source tree, using the detection table in [design-systems.md](references/design-systems.md). Record what you find: library and version, primitive layer, styling method, token location, component directory.
2. **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.
3. **Use, compose, or extend, in that order.**
4. **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.
5. **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.
6. **Build** with the rules below: composition, layout, state ownership, responsive, forms, motion, performance.
7. **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.
8. **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 p
Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…
Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…
Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…
Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…
Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration