Subscribe to Our Updates

Five drafting gates turn a sketch into a structured interface.

The Agentic UI Engineering Pipeline

Five drafting gates turn a sketch into a structured interface.
Image by

mk4oto: https://mk4oto.myportfolio.com/

A coding agent can turn a prompt into a screen. The harder part is carrying the same design decisions through the next component, the next interaction, and the next revision. Give the agent something concrete to carry forward. A design brief can become tokens, the tokens can constrain components, and the rendered interface can be checked against the brief.

This guide proposes five stages, each with an output the next stage can use and a check you can run before moving on. Try the explorer first, then use the motion sandbox to compare two treatments of the same interaction.

Architecture overview

Choose a stage to see its inputs, expected outputs, candidate tools, and review criteria. Switch to Artifact Flow to follow what passes from the initial product prompt to the browser audit.

The explorer and repository matrix preserve the commands and thresholds from the original demo. Treat them as examples and check current project documentation before installing a package or adopting a threshold. The five stages are a proposed workflow. Their effect on quality depends on the project, its constraints, and how the checks are carried out.

Interactive Stage-Gate Architecture Explorer

Select a stage to inspect repositories, artifact contracts, and quality gates

Stage 01 / 05

Direction & Token Architecture

Role: Art Director & Token Architect
Input Contract

Raw product prompt, target domain, & user goals

Output Artifacts

PRODUCT.md & DESIGN.md

Primary Repositories
  • anthropics/skills
  • Leonxlnx/taste-skill
  • nextlevelbuilder/ui-ux-pro-max-skill
  • Nutlope/hallmark
Mandatory Quality Gate

Zero ungrounded hex values, zero generic template chrome, and locked 4–6 color palette before any JSX is written.

npx skills add nutlope/hallmark -g

Stage 1 · Direction and design tokens

Start with the user’s task and the screen’s job. Put those decisions in PRODUCT.md. Use DESIGN.md to record the visual direction, typographic hierarchy, color roles, and patterns to reuse. Give the agent references and explain what to take from each one. A screenshot can show the density you want without telling the agent which hierarchy to copy.

Tools such as Anthropic’s frontend-design skill can guide the design pass. Open Design uses DESIGN.md as the design contract for an active design package. For this stage, the review is whether you can trace the proposed layout and tokens to the brief.

Stage 2 · Material and visual assets

Turn the visual direction into choices the implementation can reuse. Define surfaces, borders, elevation, and when imagery belongs in the interface. A translucent surface, for example, needs a legible foreground over changing content. Check it against both busy and quiet backgrounds before other components inherit it.

The output is a set of CSS tokens and a small collection of approved assets. Check them together in the target screen. A coherent material treatment on a marketing card can become distracting when repeated in a dense workflow.

Stage 3 · Component behavior and accessibility

Define the component’s states before adding motion. A drawer needs a trigger, an open state, a close path, and a plan for keyboard focus. Specify what happens when the user dismisses it, where focus returns, and how error and loading states appear. Base UI’s current setup guide is a starting point for adopting its React primitives.

Review the composed component in the browser. Walk through the task using the keyboard and inspect the accessible names and states. The choice of component library is only one input to that check.

Stage 4 · Motion and product staging

Give motion a job. A drawer should make its point of origin clear. A toast should acknowledge an action without taking over the screen. Set the timing, easing, and reduced-motion behavior for those jobs, then test the transitions with real copy and repeated use.

Switch modes in the sandbox, replay the entrance, open and close the drawer, stack the toasts, and turn on long copy. The curve and timing change with the selected mode. The readout shows the configuration of this demo. A production frame-rate or accessibility claim needs a separate measurement.

UI Physics & Materiality Sandbox

Compare default linear styling against ease-out physics and rim highlights

Production Edge Cluster

edge-fra-01.internal.deploy

99.98% SLA
P99 Latency 14.2 ms
Frame Budget 16.6 ms
Rim highlight & 0.96 scale origin
Deployment snapshot verified #401
Edge cache invalidated #402
Telemetry stream synced #403

Stage 5 · Browser verification

Use the rendered page to check the decisions handed down from the earlier stages. Start with the main task, then test narrow and wide viewports, long labels, keyboard focus, and reduced motion. Playwright MCP provides structured accessibility snapshots for browser automation. Keep visual checks where spacing, clipping, or hierarchy needs a screenshot and human judgment.

Record which constraint failed and which artifact owns the correction. If the layout clips a valid label, update the component or its layout rules so the correction survives the next revision.

Repository reference matrix

Filter the original reference matrix by stage to compare the examples. Use the repository documentation for current setup and compatibility.

StageRepository / SkillAuthor / OrgPrimary FunctionInstall / Entrypoint
1. Direction & Tokensanthropics/skills (frontend-design)AnthropicTwo-pass token plan, ASCII wireframes, anti-template rulesskills/frontend-design to .claude/skills/
1. Direction & TokensLeonxlnx/taste-skillLeon LinAlgorithmic palette/font dealing & 11 hero layout archetypesnpx skills add https://github.com/Leonxlnx/taste-skill
1. Direction & Tokensnextlevelbuilder/ui-ux-pro-max-skillNext Level BuilderBM25 search engine for vertical-specific UI/UX rules across 22 stacksnpm i -g ui-ux-pro-max-cli
1. Direction & TokensNutlope/hallmarkTogether AI / Nutlope50 material themes, Wikimedia photo library, sloplint gatesnpx skills add nutlope/hallmark -g
2. Materiality & Craftdeeplethe/solid-glassdeepletheTactile surface CSS & AI streaming components (data-slot hooks)npx shadcn@latest add deeplethe/solid-glass/solid-glass
2. Materiality & CraftMengTo/SkillsMeng ToCSS treatments, 10 illustration styles, Three.js & shader VFXClone repo; link SKILL.md in CLAUDE.md / AGENTS.md
2. Materiality & Craftnexu-io/open-designNexu / OpenDesignLocal-first AI design studio, 9-section DESIGN.md, live tweaks panelgit clone https://github.com/nexu-io/open-design
3. Primitivesmui/base-uiMUI / Radix TeamUnstyled, accessible headless UI componentsnpm install @base-ui-components/react
3. Primitivesemilkowalski/vaul & sonnerEmil KowalskiGesture-driven drawers and stacked toast notificationsnpm install vaul sonner
4. Motion & Stagingemilkowalski/skillsEmil Kowalski19 UI/animation skills (/animate, /choreograph, /break-ui)npx skills@latest add emilkowalski/skills
4. Motion & Stagingbenjitaylor/skillsBenji Taylorstageshow skill for bento grids, faux UI stills, and video reviewnpx skills add benjitaylor/skills --skill stageshow
4. Motion & Stagingibelick/motion-primitivesJulien ThibeautCopy-paste spring micro-interactions for Motion + Tailwindnpx motion-primitives@latest add
4. Motion & Stagingmagicuidesign/magicuiMagic UIAnimated landing-page bento components, beams, and marqueesnpx shadcn@latest add @magicui/...
5. Critique & Looppbakaus/impeccablePaul Bakaus62-rule slop detector, P0–P3 audits, design hooks, browser live modenpx impeccable install
5. Critique & Loopmicrosoft/playwright-mcpMicrosoftLive DOM accessibility tree & multi-viewport screenshot inspectionConfigure via MCP server JSON
5. Critique & Loopjhuse25/anti-slop-design-skillsjhuse25Cross-medium anti-slop rules for web UIs, slide decks, and docsInstall as Claude Code plugin or copy skills/

Put the stages to work

Start with one flow. Give the agent a brief and a token set, choose one component with meaningful states, and define the browser checks before implementation. Load the guidance needed for the stage at hand. A small change may reuse decisions from several earlier stages. It still needs a way to show whether those decisions held in the rendered interface.

Works Cited


Discover more from NBM4

Subscribe to get the latest posts sent to your email.

Leave a Reply

RECENT CONTENT
Recent Blog Articles
Knowledge Base

Discover more from NBM4

Subscribe now to keep reading and get access to the full archive.

Continue reading