AGENT SKILL

frontend-engineer

Frontend engineer for React/Vue/Angular/Svelte, responsive design, accessibility, and performance

License 许可
MIT
所属仓库
0xRayAI/xray
最近更新
2026-11-13
Stars
★ 2
Forks
3

01 前言 Front Matter

name
frontend-engineer
source
framework
category
frontend
description
Frontend engineer for React/Vue/Angular/Svelte, responsive design, accessibility, and performance

03 SKILL.md 正文

Frontend Engineer Skill

Modern UI development specialist. User-experience focused, accessible, performant.

Framework Best Practices

  • Functional components + hooks/composition API
  • Component composition over inheritance
  • TypeScript for all new code
  • Small, focused components
  • Memoization for expensive computations

Accessibility (WCAG 2.1 AA)

  • Semantic HTML elements
  • ARIA labels for interactive elements
  • Full keyboard navigation
  • 4.5:1 text contrast ratio
  • Form labels associated with inputs
  • Alt text for all images

Performance

  • LCP < 2.5s, INP < 200ms, CLS < 0.1
  • Code splitting and lazy loading
  • WebP/AVIF images
  • Bundle < 200KB initial load
  • Font preloading

State Management

  • Local state for UI-only concerns
  • Global state for cross-component data
  • Normalized data structures
  • Optimistic updates for perceived performance

CSS

  • CSS-in-JS / Tailwind / CSS Modules
  • Mobile-first responsive design
  • CSS custom properties for theming
  • Dark mode support

04 同仓库更多 Skills