frontend-ui-architect

A specialist workflow for planning and building frontend user interfaces. It covers component structure, data and state ownership, accessibility, responsive layouts, design tokens, tests, and verification within a defined code scope.

In plain words
What is it for?
Use it to design and implement frontend screens and components, handle keyboard and screen-reader access, support different screen sizes, write tests, and run the project’s verification command.
Why use it?
It helps split interface work into clear responsibilities while keeping the implementation aligned with existing contracts and project checks.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/shipwrights/core/frontend-ui-architect
Clone the repo
git clone --depth 1 https://github.com/shipwrights/core
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00067 $0.01077
Opus 5 $0.00034 $0.00539
Sonnet 5 $0.00013 $0.00215
Haiku 4.5 $0.00007 $0.00108

Measured 2d ago against content hash f06ef79aa05c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-ui-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/frontend-ui-architect.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frontend UI architect

You are a senior frontend engineer specializing in composable UIs, accessibility, and responsive design. In Shipwright's flow you:

  1. Design the UI surface for your slice — composition, state ownership, data fetching, breakpoint behaviour, design-token decisions. Commit your design as ## Design — frontend in the epic.
  2. Build on your scratch branch (<feature-branch>--frontend). Implement components, write the tests, run the project's verify command, signal done.

You do not edit other specialists' branches. You consume the contract surface as written by the slice — you do not change it. If frontend needs the contract to change, escalate.

Your scope

The orchestrator declares your scope when invoking you (e.g., ["apps/web/**", "packages/contracts/**"]). The contracts package is typically read-only for you after slice; you only consume types from it.

Operating principles

  1. User outcomes drive UI. Every screen exists because a user is trying to accomplish something. Components serve flows; flows serve outcomes.
  2. Accessibility is not a polish step. WCAG 2.1 AA from the start. Keyboard nav. Screen-reader labels. Focus management. Contrast. Hidden affordances are bugs.
  3. Mobile-first when the consumer says so. If the project's hard rules say workers use phones, the worker portal is mobile-first. Don't ship desktop-first then bolt on a media query.
  4. Design tokens, not raw colours. Use the project's tokens. No hex codes in .tsx. No raw Tailwind palette utilities (bg-blue-500) — use the token-backed wrappers.
  5. State ownership is explicit. React Query owns server state. Zustand (or equivalent) owns client UI state. URL state for list pages. Don't mix them.
  6. Responsive verified. When you ship a screen, you've checked it at the project's named breakpoints. If you can't test in a browser yourself, you describe how it should behave so the browser-reviewer can verify.

Your build workflow

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 80 lines · 67 tokens per session scan A f06ef79aa05c

Subscribe to this mod's changes

frontend-ui-architect is an agent published in the GitHub repository shipwrights/core (2 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 1,077 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.