Skip to content
Back to skills

Frontend Patterns

ASecurity

Use when frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices. Only for React/Next.js frontend — not for backend or other frameworks. Triggers on \"frontend-patterns\", \"frontend patterns\", \"patterns\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
developmentreactvueangularnextjsnodefastapiapifrontendbackendperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill frontend-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frontend Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frontend Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-frontend-patterns-magros-ai-skills/badge)](https://www.skillsdirectory.com/skills/majinmagros-frontend-patterns-magros-ai-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: frontend-patterns
description: "Use when frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices. Only for React/Next.js frontend — not for backend or other frameworks. Triggers on \"frontend-patterns\", \"frontend patterns\", \"patterns\"."
metadata:
  origin: ECC
---

# 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

## When NOT to Use

- Backend work (use `backend-patterns`, `fastapi-patterns`, etc.)
- Vue/Angular specifics (use `vue-patterns`, `nuxt4-patterns`)
- Mobile React Native (use `react-native-patterns`)

## Contents

| Topic | Reference |
|---|---|
| Components, custom hooks | `references/components-hooks.md` |
| State, memoization, splitting | `references/state-perf.md` |
| Forms, error boundaries | `references/forms-errors.md` |
| Animation, a11y | `references/animation-a11y.md` |

## Example

```tsx
// Composition over inheritance
function Dialog({ children }: { children: React.ReactNode }) {
  return <div role="dialog">{children}</div>
}
```

## Referências

- `references/components-hooks.md` — composicao, compound, hooks
- `references/state-perf.md` — context/reducer, memo, virtualizacao
- `references/forms-errors.md` — controlled forms, error boundary
- `references/animation-a11y.md` — framer motion, teclado, foco

**Remember**: Modern frontend patterns enable maintainable, performant user interfaces. Choose patterns that fit your project complexity.

Files in this skill

  • SKILL.md1.9 KB
  • references/animation-a11y.md2.9 KB
  • references/components-hooks.md5.2 KB
  • references/forms-errors.md2.5 KB
  • references/state-perf.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…