frontend-ui-engineering
Skill1 starsChanged 11 days agoMITView on GitHub
Build production-quality UIs with component architecture, state management, and layout discipline. Use across web, mobile, desktop, or PWA. Do NOT use for platform-specific implementation.
We split this skill into the rules it gives an agent
6 rules. 1 is common, 5 are distinctive, and 0 are very specific to this project.
1
Common
Most of the 57 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
No standalone artifact. UI architecture patterns and accessibility rules realized through platform-specific skills (frontend-web, …
- Distinctive: line 74
Start with local state, lift only when needed
- Distinctive: line 93
Use relative units (rem, %) not fixed pixels for layout
- Common: line 94
Test at breakpoints: 375px, 768px, 1024px, 1440px
- Distinctive: line 102
ARIA: use native HTML semantics first, ARIA only when semantics don't exist
- Distinctive: line 111
No responsive design — a desktop-only layout that breaks on mobile.
“Common” is measured: kept by at least 6 in 10 of the 57 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.
Files
Frontend UI Engineering
Universal UI principles that apply across web, mobile, desktop, and PWA.
This is a foundation skill referenced by platform-specific skills (frontend-web, frontend-mobile, frontend-desktop, frontend-pwa). It covers UI principles that transcend platform boundaries.
Sources: React.dev (react.dev/learn) — component composition, props patterns, conditional rendering, thinking in React hierarchy. web.dev (Google) — WCAG color contrast (4.5:1 normal, 3:1 large text), focus-visible keyboard navigation, ARIA accessibility patterns.
When to Use
- Building any user-facing component
- Designing component architecture or state management
- Implementing layouts, navigation, or responsive patterns
- Referenced automatically by platform skills
When NOT to Use
- Platform-specific work (use the dedicated platform skill)
- API or backend work (use backend-api-mastery)
Output Contract
No standalone artifact. UI architecture patterns and accessibility rules realized through platform-specific skills (frontend-web, frontend-mobile, frontend-desktop, frontend-pwa).
Relationship to Platform Skills
frontend-ui-engineering (this skill — universal UI principles)
├── frontend-web (web-specific)
├── frontend-mobile (native mobile)
├── frontend-desktop (desktop)
└── frontend-pwa (progressive web)Component Architecture
Components are the building blocks of every UI. Design them with clear contracts (props interface), composition over inheritance (children, slots), and single responsibility.
Key patterns:
- Composition — nest components via
childrenor slot props. Avoid deep prop drilling. - Props interface — every component has a typed props contract. Required props are explicit, optional props have sensible defaults.
- Container vs presentational — separate data fetching (container) from rendering (presentational). Presentational components are reusable across projects.
- Conditional rendering — show/hide UI based on state. Use ternary expressions for binary states, early returns for guard clauses.
See guides/COMPONENT-ARCHITECTURE.md for detailed patterns and examples.
State Management
State is data that changes over time. Choose the right scope for each piece of state:
| Scope | When to Use | Example |
| Local (component) | Only this component needs it | Form input value |
| Lifted (parent) | Parent and children share it | Selected item in a list |
| Context (subtree) | Deep descendants need it | Theme, user preferences |
| External store | Many unrelated components need it | Cached API data |
Rules:
- Start with local state, lift only when needed
- Context is not a state management solution — it avoids prop drilling, but doesn't manage mutations
- External stores (Redux, Zustand, Jotai) are for global state, not for everything
See guides/STATE-MANAGEMENT.md for migration patterns between state scopes.
Layout Discipline
Layout is the structure that holds components. Use the right tool for the job:
| Pattern | Purpose | When |
| Grid | 2D layout (rows + columns) | Page-level structure |
| Flexbox | 1D layout (row OR column) | Component-level alignment |
| Spacing tokens | Consistent gaps between elements | Every layout |
| Responsive breakpoints | Adapt layout to viewport | Mobile, tablet, desktop |
Responsive rules:
- Design mobile-first (smallest screen first)
- Use relative units (rem, %) not fixed pixels for layout
- Test at breakpoints: 375px, 768px, 1024px, 1440px
Accessibility
Accessibility is not optional. Every UI must meet WCAG AA as a minimum:
- Color contrast: 4.5:1 for normal text, 3:1 for large text (≥18pt/24px)
- Focus indicators: visible on keyboard navigation (
:focus-visible), never removed - ARIA: use native HTML semantics first, ARIA only when semantics don't exist
- Tab order: follows visual order, no unexpected jumps
- Reduced motion: respect
prefers-reduced-motion, provide static alternatives
Anti-Patterns
- Prop drilling — passing data through 5+ component layers without context or composition.
- God component — a single component that handles data fetching, state, layout, and rendering.
- Over-engineering state — Redux for a toggle button.
- No responsive design — a desktop-only layout that breaks on mobile.
- Removing focus outlines —
outline: nonewithout providing an alternative. - Inline styles instead of design tokens — hardcoded colors and spacing everywhere.
Verification
- Component props have clear interfaces (typed, documented)
- State scope chosen correctly (local → lifted → context → external)
- Layout uses appropriate pattern (grid, flexbox, spacing tokens)
- Responsive breakpoints tested at 375px, 768px, 1024px
- Color contrast meets WCAG AA (4.5:1 normal, 3:1 large)
- Focus indicators visible on keyboard navigation
prefers-reduced-motionrespected for animations
Other versions64 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 64
- addyosmani/agent-skills★ 112ksame name
- ollaya-dev/ollaya★ 1.4ksame name
- rizqinrr/viserys-agent★ 556same name
- shashankswe2020-ux/whoop-mcp★ 174same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- jmxt3/gitscape.ai★ 33same name
- sampleXbro/agentsmesh★ 24same name
- jaskirat1616/grok-skills★ 22same name
- helderberto/agent-skills★ 19same name
- JPeetz/agent-skills★ 14same name
54 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use constraint-driven-development, web-design-guidelines and 3 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.
MrCipherSmithSkillconstraint-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 11 projects that use this
VercelSkillweb-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 8 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 6 projects that use this
AnasX7Skillredesign-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
victorgarciaesgiSkillzoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
Also in 3 projects that use this
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- adapt-skillSkill
- api-and-interface-designSkill
- architecture-analysisSkill
- audit-skillSkill
- backend-api-masterySkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- clarify-skillSkill
- cli-toolsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- critique-skillSkill
- customize-opencodeSkill
- debugging-and-error-recoverySkill
- debugging-three-strikesSkill
- delight-skillSkill
- deprecation-and-migrationSkill
- dev-environment-auditSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- engineering-fundamentalsSkill
- frontend-desktopSkill
- frontend-mobileSkill
- frontend-pwaSkill
- frontend-webSkill
- fullstack-shippingSkill
- gateSkill
- git-init-and-versioningSkill
- git-workflow-and-versioningSkill
- hard-skillSkill
- idea-refineSkill
- incremental-implementationSkill
- industrial-brutalist-uiSkill
- interview-meSkill
- minimalist-uiSkill
- multi-agent-orchestrationSkill
- observability-and-instrumentationSkill
- optimize-skillSkill
- output-skillSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- polish-skillSkill
- project-health-checkSkill
- project-metricsSkill
- redesign-skillSkill
- security-and-hardeningSkill
- self-improvementSkill
- shipping-and-launchSkill
- skill-creatorSkill
- skill-improverSkill
- soft-premium-uiSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- typeset-skillSkill
- user-onboardingSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

