
Frontend patterns
Gives your agent React, Next.js, state and performance patterns for building UIs
Frontend patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 71
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Frontend patterns
This skill is a reference of frontend coding patterns that an agent applies when building React components or Next.js interfaces. It covers component composition, compound components, render props, custom hooks for toggles, async fetching and debouncing, reducer-based state with context, memoization, code splitting, list virtualization, controlled forms with validation, error boundaries, animation with Framer Motion, and keyboard and focus handling for accessibility.
The examples are written in TypeScript and are meant to be adapted rather than copied directly. The skill also sets privacy guidance: it asks the agent to use synthetic or domain-generic data in examples, avoid logging or displaying sensitive personal data, and avoid adding analytics or third-party scripts without approval.
The skill expects a React or Next.js project. Some patterns reference libraries such as Zustand, SWR, React Query, Zod and TanStack Virtual, so those packages are needed when the corresponding pattern is used.
When your agent uses it
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (15 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the egc plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Fmarzochi/EGC
/plugin install egc@egcOr copy only this skill to ~/.claude/skills/frontend-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/frontend-patterns &&
cp -R "$tmp/.agents/skills/frontend-patterns" ~/.claude/skills/frontend-patterns &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/frontend-patterns inside it instead.
Copy the skill folder to ~/.agents/skills/frontend-patterns to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/frontend-patterns &&
cp -R "$tmp/.agents/skills/frontend-patterns" ~/.agents/skills/frontend-patterns &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/frontend-patterns inside it instead.
Copy the skill folder to ~/.cursor/skills/frontend-patterns to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/frontend-patterns &&
cp -R "$tmp/.agents/skills/frontend-patterns" ~/.cursor/skills/frontend-patterns &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/frontend-patterns inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Fmarzochi/EGC.git --path .agents/skills/frontend-patternsOr copy the folder to ~/.gemini/skills/frontend-patterns yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/frontend-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/frontend-patterns &&
cp -R "$tmp/.agents/skills/frontend-patterns" ~/.copilot/skills/frontend-patterns &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/frontend-patterns inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Fmarzochi/EGC.gitThen copy EGC/.agents/skills/frontend-patterns into your agent's skills folder as frontend-patterns. Agents that support SKILL.md read one folder per skill.
What it does
- Component composition patterns
- Shows how to build flexible components using children, compound components and render props.
- Custom hooks library
- Provides reusable hooks for toggles, async data fetching and debounced values.
- State management with reducers
- Describes context plus reducer setups for sharing application state across components.
- Performance optimization techniques
- Covers memoization, lazy loading with Suspense and virtualized long lists.
- Form validation patterns
- Explains controlled inputs with field-level validation and error messages.
- Accessibility and focus handling
- Demonstrates keyboard navigation in dropdowns and focus management in modals.
Good for
- Refactor a React component to use compound components
- Add debounced search to an input field in Next.js
- Set up a virtualized list for a large dataset
- Build a validated form with controlled inputs
- Add an error boundary around a dashboard section
- Make a dropdown keyboard-accessible
Frontend patterns FAQ
What does Frontend patterns need to run?
It has no scripts. It is a set of instructions and code examples for React and Next.js projects, written in TypeScript.
Does Frontend patterns change any files on its own?
It has no scripts or tools of its own. It guides the agent's code suggestions when frontend work matches its described topics.
When does the agent use Frontend patterns?
When the task involves building React components, managing state, fetching data, optimizing performance, working with forms, routing, or building accessible responsive UI.
How do I install Frontend patterns in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/frontend-patterns to use it in all your projects, or to .claude/skills/frontend-patterns in one project. Or install the egc plugin, which includes it: /plugin marketplace add Fmarzochi/EGC, then /plugin install egc@egc.
Does Frontend patterns run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Frontend patterns?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Frontend patterns?
The closest alternatives to Frontend patterns are Frontend UI engineering, Frontend UI engineering, React frontend, React patterns and Premium frontend UI.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Fmarzochi/EGC

Fetch current library and framework docs through Context7 MCP instead of relying on memory
- Open source
- 71 GitHub stars
- Knowledge and memory

Gives agents a structured workflow to capture, diagnose and recover from their own
- Open source
- 71 GitHub stars
- Developer tools

Builds a repo-specific EGC install plan that sorts components into daily and library sets
- Open source
- 71 GitHub stars
- Developer tools

Guides an agent through consistent REST API design: naming, status codes, pagination
- Open source
- 71 GitHub stars
- Developer tools

Drafts long-form articles, guides and newsletters in a consistent, specific voice
- Open source
- 71 GitHub stars
- Writing style

Guides an agent through Node.js and Express backend design, data access and error handling
- Open source
- 71 GitHub stars
- Developer tools





