discover-frontend

Automatically discover frontend development skills when working with React, Next.js, UI components, state management, data fetching, forms, accessibility, performance optimization, or SEO. Activates for frontend web development tasks.

Frontend Skills Discovery

Provides automatic access to comprehensive frontend development skills.

When This Skill Activates

This skill auto-activates when you're working with:

Available Skills

Quick Reference

The Frontend category contains 10 core skills (+ elegant-design):

  1. react-component-patterns - Component design, composition, hooks, performance
  2. nextjs-app-router - Next.js 14+ App Router, Server Components, routing
  3. react-state-management - Context, Zustand, Redux Toolkit patterns
  4. react-data-fetching - SWR, React Query, Server Actions, data patterns
  5. react-form-handling - React Hook Form, Zod validation, form patterns
  6. web-accessibility - WCAG 2.1 AA compliance, ARIA, keyboard navigation
  7. frontend-performance - Bundle optimization, Core Web Vitals, code splitting
  8. nextjs-seo - SEO with Next.js, metadata API, structured data
  9. web-workers - Web Workers API, message passing, offloading computation
  10. browser-concurrency - Service Workers, SharedWorkers, Worklets, PWAs
  11. elegant-design/SKILL.md - World-class accessible interfaces (separate Agent Skill)

Load Full Category Details

For complete descriptions and workflows:

cat skills/frontend/INDEX.md

This loads the full Frontend category index with:

Load Specific Skills

Load individual skills as needed:

# Core React patterns
cat skills/frontend/react-component-patterns.md
cat skills/frontend/react-state-management.md
cat skills/frontend/react-data-fetching.md

# Next.js specific
cat skills/frontend/nextjs-app-router.md
cat skills/frontend/nextjs-seo.md

# Forms and validation
cat skills/frontend/react-form-handling.md

# Quality and performance
cat skills/frontend/web-accessibility.md
cat skills/frontend/frontend-performance.md

# Concurrency and workers
cat skills/frontend/web-workers.md
cat skills/frontend/browser-concurrency.md

# Design system and UI (Agent Skill - auto-discovered separately)
# elegant-design/SKILL.md activates independently for UI design work

Common Workflows

New Next.js Application

Sequence: App Router → Components → Data Fetching

cat skills/frontend/nextjs-app-router.md          # Setup routing, layouts
cat skills/frontend/react-component-patterns.md   # Build components
cat skills/frontend/react-data-fetching.md        # Fetch data

Elegant UI Design

Sequence: Design System → Components → Accessibility

# Note: elegant-design auto-activates as separate Agent Skill
# for design-focused work (shadcn/ui, accessible interfaces, etc.)
cat skills/frontend/react-component-patterns.md
cat skills/frontend/web-accessibility.md

Form Implementation

Sequence: Form Handling → State Management

cat skills/frontend/react-form-handling.md     # Build forms
cat skills/frontend/react-state-management.md  # Manage form state

Production Optimization

Sequence: Performance → Accessibility → SEO

cat skills/frontend/frontend-performance.md    # Optimize bundle
cat skills/frontend/web-accessibility.md       # Ensure accessibility
cat skills/frontend/nextjs-seo.md              # Optimize SEO

CPU-Intensive Features & PWAs

Sequence: Workers → Concurrency → Performance

cat skills/frontend/web-workers.md             # Offload heavy computation
cat skills/frontend/browser-concurrency.md     # Service Workers, offline support
cat skills/frontend/frontend-performance.md    # Optimize overall performance

Skill Selection Guide

React Component Patternsreact-component-patterns.md:

Next.js App Routernextjs-app-router.md:

State Managementreact-state-management.md:

Data Fetchingreact-data-fetching.md:

Formsreact-form-handling.md:

Accessibilityweb-accessibility.md:

Performancefrontend-performance.md:

SEOnextjs-seo.md:

Web Workersweb-workers.md:

Browser Concurrencybrowser-concurrency.md:

Integration with Other Skills

Frontend skills commonly combine with:

API skills (discover-api):

Testing skills (discover-testing):

Design (elegant-design Agent Skill):

Database skills (discover-database):

Deployment skills (discover-deployment):

Progressive Loading

This gateway skill enables progressive loading:

Total context: 2K + 4K + skill(s) = 6-12K tokens vs 25K+ for entire index.

Quick Start Examples

"Build a Next.js app with App Router":

cat skills/frontend/nextjs-app-router.md

"Create reusable React components":

cat skills/frontend/react-component-patterns.md

"Implement global state management":

cat skills/frontend/react-state-management.md

"Build a form with validation":

cat skills/frontend/react-form-handling.md

"Optimize my app performance":

cat skills/frontend/frontend-performance.md

"Make my app accessible":

cat skills/frontend/web-accessibility.md

"Improve SEO":

cat skills/frontend/nextjs-seo.md

"Offload heavy computation":

cat skills/frontend/web-workers.md

"Build a PWA with offline support":

cat skills/frontend/browser-concurrency.md

React vs Next.js Decision

Use React (Vite) when:

Use Next.js when:

State Management Decision

Use Component State (useState) when:

Use Context when:

Use Zustand when:

Use Redux Toolkit when:

For detailed guidance:

cat skills/frontend/react-state-management.md

Data Fetching Decision

Server Components (Next.js App Router):

Server Actions (Next.js):

SWR:

React Query:

For detailed patterns:

cat skills/frontend/react-data-fetching.md

Usage Instructions

  1. Auto-activation: This skill loads automatically when Claude Code detects frontend work
  2. Browse skills: Run cat skills/frontend/INDEX.md for full category overview
  3. Load specific skills: Use bash commands above to load individual skills
  4. Follow workflows: Use recommended sequences for common patterns
  5. elegant-design: Note that elegant-design is a separate Agent Skill that auto-activates for UI design work

Next Steps: Run cat skills/frontend/INDEX.md to see full category details, or load specific skills using the bash commands above.