Skip to content
Kitbay
Skill

frontend-patterns

MITUpdated on Nov 9, 2026300,529GitHub stars

A reference skill from the ECC collection with patterns for building or reviewing React and Next.js front ends.

What the skill teaches

A reference skill from the ECC collection with patterns for building or reviewing React and Next.js front ends. It shows component composition, compound components that share context and render props; custom hooks for toggles, data fetching and debounced input; and shared state with Context plus a reducer. Performance sections cover memoising values, callbacks and components, lazy loading with code splitting, and virtualising long lists. It also gives examples of controlled forms with field validation, an error boundary with a retry option, list and modal transitions with Framer Motion, and keyboard navigation and focus handling for dropdowns and modals. The examples are code snippets the agent adapts, not scripts it runs.

Capabilities

  • Compose React components and custom hooks
  • Manage shared state with Context and reducers
  • Memoise, lazy-load and virtualise lists
  • Add keyboard and focus handling