Frontend UI Engineering
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_e40a4360/frontend-ui-engineering.
About this skill
Problem
Many front-end screens work, but visual hierarchy, interaction states, and accessibility are improvised: indigo gradients, oversized radii, generic card grids, placeholder copy, missing loading, error, and empty states, and weak keyboard or screen-reader support. These are not just component bugs; they come from missing engineering constraints.
How the skill works
The Frontend UI Engineering skill turns production-quality UI into repeatable checks:
- Component architecture: colocate component files, prefer composition over prop configuration, keep components short, and avoid prop drilling beyond three levels.
- Design system: use the project's existing spacing scale, type hierarchy, and semantic tokens such as text-primary and bg-surface; do not invent arbitrary hex values or padding.
- Accessibility: verify WCAG 2.1 AA behaviors for keyboard navigation, ARIA labels, focus management, and meaningful empty/error states; never use color as the only state signal.
- Responsive and state coverage: design mobile first, test at 320px, 768px, 1024px, and 1440px, and handle loading, error, empty, and transition states.
Boundaries
It fits new components, UI changes, and visual or UX fixes, but it does not replace real design decisions. If the project lacks design tokens, define or adopt defaults instead of adding generic “AI-style” styling.
Use Cases
- Building a new sign-up page and adding loading, error, and empty states with full keyboard support.
- Refactoring a legacy form, replacing inline styles with design tokens, and eliminating deep prop drilling.
- Pre-release check: verifying responsive layout at 320/768/1024/1440 breakpoints and clearing axe-core a11y warnings.
- Taking over a page with purple gradients and oversized radii, then re-tuning spacing and border-radius to the design system.
Best For
- Front-end engineers shipping product UI who must meet the design system and WCAG 2.1 AA while writing components.
- Full-stack developers maintaining mid/back-office projects who need to consolidate inline styles and hardcoded colors into design tokens.
- Front-end tech leads who want to send back a11y and responsive issues in one code review pass.
- New front-end hires taking over a project full of AI-default styling and need to pull it back to the design system.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.
Control Windows WeChat through GUI automation to search contacts and send text, images, or files without official APIs.