agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/frontend-ui-engineering/SKILL.md

frontend-ui-engineering

Skill0 starsChanged 12 days agoMITView on GitHub

Build production-quality UIs: reusable primitives, responsibility decomposition, robust state handling, and complete visual states (hover, loading, error).

83 other projects use a version of this, 39 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, constraint-driven-development and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 18 projects that use this

  • jaydubya818Skill

    observability-and-instrumentation

    Add or review logs, metrics, traces, and actionable alerts.

    Also in 35 projects that use this

  • seikaikyoSkill

    interview-me

    需求不明時的意圖萃取訪談:一次一題、每題附上自己的猜測、聽出「真正想要 vs 覺得應該要」,直到能預測使用者反應(約 95% 信心)才動工。適用:需求缺少對象 / 動機 / 成功標準 / 約束,或使用者點名「訪談我」「先確認一下」「我們確定嗎」。明確自足的指示、純資訊查詢、機械性操作不適用。

    Also in 35 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 9 projects that use this

  • AnasX7Skill

    redesign-existing-projects

    Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 76 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use uidl-runtime to author UIDL documents.

    line 23
  2. Very specific:

    Identify the renderer: Use uidl-runtime for UIDL authoring.

    line 36
  3. Very specific:

    Inspect the rendered layout: Read references/layout-quality.md for spacing, control anatomy, CSS diagnosis, and the narrow/wide visual …

    line 48

“Common” is measured: kept by at least 6 in 10 of the 76 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend UI Engineering

Overview

Build production-quality user interfaces that are accessible, performant, and visually polished. The goal is UI that looks like it was built by a design-aware engineer at a top company — not like it was generated by an AI. This means real design system adherence, proper accessibility, thoughtful interaction patterns, and no generic "AI aesthetic."

When to use

  • Building new UI components or pages
  • Modifying existing user-facing interfaces
  • Implementing responsive layouts
  • Adding interactivity or state management
  • Fixing visual or UX issues

Use uidl-runtime to author UIDL documents; retain these visual quality requirements.

Hand off when

NeedSkill
No declared palette, scale, or themedesign-tokens
Sizing, container queries, breakpoints, RTLresponsive-layout
Inputs, validation, submit statesforms-and-validation
Where a piece of state belongs, or untangling itfrontend-state
Verifying the built result against WCAGaccessibility-audit
Matching a published system's conventions (HIG, M3, Atlassian)uiux-design-systems

Process

  1. Identify the renderer. Use uidl-runtime for UIDL authoring; apply the same layout, hierarchy, and visual review criteria to JSX and declarative UI.
  2. Discover before inventing. Grep the project's primitives, page-kit, and Storybook. Reuse or extend before adding a new component. See references/component-reuse.md.
  3. Colocate, then decompose by responsibility. Keep a small component in one file. Create a family directory when tests, stories, hooks, or subcomponents appear. Split when a file mixes visual regions, state, and data adaptation — 200 lines is a review threshold, not a target. Placement and composition: references/component-structure.md.
  4. Choose the simplest state. Local → lifted → URL (shareable) → server cache → context (read-heavy) → store; stop at the first rung that works, and avoid prop drilling deeper than three levels. Anything beyond that choice: frontend-state.
  5. Declare the design system before writing UI, then match it. An undeclared design system is decided one component at a time, which is how the generic AI palette gets in. Load design-tokens if none is declared. Sizing and breakpoints: responsive-layout. Anything with inputs: forms-and-validation.
  6. Build every state, not just the happy one. Loading, empty, error, focus, disabled, success. Details and the anti-AI-aesthetic table: references/visual-polish.md. Review against references/production-ui-checklist.md, then verify with accessibility-audit.
  7. Keep layers honest. Components render. Hooks own state and effects. Services talk to APIs. Utilities stay pure.
  8. Inspect the rendered layout. Read references/layout-quality.md for spacing, control anatomy, CSS diagnosis, and the narrow/wide visual acceptance gate.
  9. CRUD Side Panel Drawer & Form Ergonomics. For management consoles and master-detail screens, implement slide-over Drawers for creating and editing records. The drawer must have an accessible close button, clean label hierarchies, whisper-soft borders (#e8ecf1), helper hints below inputs, and sticky action footers. Never leave forms uncontained or stretched across excessive widths.

Red flags

  • Components over roughly 200 lines that have not been reviewed for decomposition
  • Large components containing multiple visual regions, state concerns, and interaction flows
  • Extracted subcomponents that remain in the parent file despite having independent behavior
  • Tiny one-use subcomponents that add navigation cost without improving cohesion
  • Private component-family details exported as public API
  • Domain-specific components prematurely placed in the app-wide components/ui/ directory
  • Flat directories of unrelated files, or deep nesting with no clear scope
  • Inline styles, arbitrary pixel values, or colour as the only indicator of state
  • Missing error, loading, or empty states; no keyboard navigation tested
  • Generic "AI look" (purple gradients, oversized cards, stock layouts)
  • Business logic or API calls inside Components (extract to Hook or Service)
  • Duplicated state/effect patterns across Components (extract to shared Hook)
  • Presentation mixed with domain logic, or inline utility logic left in place

Verification

After building UI:

  • Component renders without console errors
  • All interactive elements are keyboard accessible (Tab through the page)
  • Screen reader can convey the page's content and structure
  • Responsive: works at 320px, 768px, 1024px, 1440px
  • Loading, error, and empty states all handled
  • Follows the project's design system (spacing, colors, typography)
  • Rendered evidence checks spacing, alignment, bounded widths, wrapping, and control geometry
  • No accessibility warnings in dev tools or axe-core
  • Architecture: no business logic in Components, no API calls in UI, no duplicated hooks
  • Architecture: Components consume Hooks, Hooks delegate to Services, Utilities are stateless
  • Large components were reviewed and split along meaningful UI or behavioral boundaries
  • Subcomponents live at the narrowest valid reuse scope and private details remain private
  • Component directories are cohesive, shallow, consistently named, and intentionally exported

References

  • references/component-reuse.md — four-layer reuse (Component / Hook / Utility / Service)
  • references/component-structure.md — file layout, composition, and state
  • references/visual-polish.md — the AI-aesthetic table, 2026 trends adopted deliberately, loading and feedback states
  • references/layout-quality.md — layout contract, spacing, CSS diagnosis, and visual evidence
  • references/production-ui-checklist.md — review-mode checklist
  • references/source-synthesis.md — what the published sources behind this skill agree on
  • references/headless-primitives-and-composition.md — unstyled primitives, data-state attributes, and exit lifecycles
  • references/motion-and-physics-systems.md — spring physics, duration tiers, and compositor acceleration

Bundle contents

  • adapters/ — optional per-agent rule snippets (Cursor, KiloCode)
  • agents/openai.yaml — Codex implicit-invocation hint
  • README.md — map of this bundle

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.