Frontend Patterns
Patterns for React and Next.js covering components, custom hooks, state management, and render performance.
- CCM score
- 65 of 100
- skills.sh installs
- 17.6K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers composition and compound components, render props, custom hooks, Context with reducers, and memoization techniques
- Includes worked examples for Card, Tabs, DataLoader, useToggle, useQuery, useDebounce, and a MarketProvider reducer
- Warns that a fetcher or options object recreated each render can trigger an infinite refetch loop, and shows ref-based stability
- Designed for building or reviewing React and Next.js components, state, and render performance
Install
$ npx -y skills add affaan-m/ecc --skill frontend-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Frontend Development Patterns
Modern frontend patterns for React, Next.js, and performant user interfaces.
When to Activate
- Building React components (composition, props, rendering)
- Managing state (useState, useReducer, Zustand, Context)
- Implementing data fetching (SWR, React Query, server components)
- Optimizing performance (memoization, virtualization, code splitting)
- Working with forms (validation, controlled inputs, Zod schemas)
- Handling client-side routing and navigation
- Building accessible, responsive UI patterns
Component Patterns
Composition Over Inheritance
// PASS: GOOD: Component composition
interface CardProps {
children: React.ReactNode
variant?: 'default' | 'outlined'
}
export function Card({ children, variant = 'default' }: CardProps) {
return <div className={`card card-${variant}`}>{children}</div>
}
export function CardHeader({ children }: { children: React.ReactNode }) {
return <div className="card-header">{children}</div>
}
export function CardBody({ children }: { children: React.ReactNode }) {
return <div className="card-body">{children}</div>
}
Details
- Repository
- github.com/affaan-m/ecc
- Category
- Frontend & UI Code
- First seen
- Jul 14, 2026
Questions
What does the frontend-patterns skill do for Claude Code?
The frontend-patterns skill gives the agent patterns for React and Next.js, covering component composition, custom hooks, state management, and render performance. It applies when building or reviewing React or Next.js components, state, or render performance.
Is frontend-patterns a good skill for React and Next.js work?
It sits in the Frontend and UI Code category, where it ranks in the top 100. Its other topics include data fetching, forms with Zod schemas, client-side routing, and accessible responsive UI patterns.
How do I install the frontend-patterns skill?
Run npx -y skills add affaan-m/ecc --skill frontend-patterns -y in a project to install it. Once installed, the agent can apply React and Next.js component, state, and performance patterns to your code.
Which skills lead frontend-patterns in its category?
The category leaders include vercel-react-best-practices, web-design-guidelines, design-taste-frontend, and vercel-composition-patterns. frontend-patterns focuses on general React, Next.js, state, and performance patterns with worked code examples.
More from affaan-m/ecc
All 257- Docker Patterns16.8K
- Golang Testing16.5K
- Python Patterns15.6K
- Springboot Patterns15.5K
- Api Design15.3K
- Market Research15.3K
- Postgres Patterns15.2K
- Frontend Slides15.2K
- Django Patterns15.2K
- Tdd Workflow15K
- Rust Testing14.8K
- Prompt Optimizer14.5K
- Java Coding Standards14.5K
- Django Security14.4K
- Python Testing14.3K
- Laravel Security14.3K
- Android Clean Architecture14.3K
- Article Writing14.3K
- Cpp Coding Standards14.3K
- Springboot Security14.2K
- Liquid Glass Design14.2K
- Database Migrations14.1K
- E2e Testing14.1K
- Strategic Compact14K
Similar to Frontend Patterns
More Frontend & UI Codereact-patternsaffaan-m/ecc8.5K installsReact 18/19 patterns that cover hooks discipline, RSC boundaries, Suspense, form actions, and state placement.
cc-skill-frontend-patternssickn33/agentic-awesome-skills1.4K installsFrontend patterns for React and Next.js covering state management, performance, and UI practices.
react-performanceaffaan-m/ecc8.5K installsPerformance patterns for React and Next.js, organized into eight priority categories with rules for reviews and refactors.
react-best-practicesalleneubank/claude-code3.2K installsDecision-tree guide for React components that steers logic away from unnecessary Effects toward render, events, and refs.
frontend-react-best-practicessergiodxa/agent-skills1.2K installsReact performance rules and composition patterns covering re-renders, bundle size, and hydration pitfalls.
react-developmentmanutej/luxor-claude-marketplace471 installsComprehensive React guidance covering hooks, components, state, context, effects, and performance from official docs.