Skip to content
cccskills
FreePublished on GitHub

frontend-patterns

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md2.1 KB
  • references/component-patterns.md2.1 KB
  • references/forms-errors-a11y.md4.2 KB
  • references/hooks-patterns.md1.4 KB
  • references/state-performance.md3.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Frontend Development Patterns

Modern frontend patterns for React, Next.js, and performant user interfaces.

Pattern Categories

Component Patterns

Composition over inheritance, compound components, render props. See references/component-patterns.md for implementations.

Custom Hooks

Reusable hooks: useToggle, useDebounce; server state via TanStack Query / SWR. See references/hooks-patterns.md for implementations.

State Management & Performance

Context + Reducer pattern, memoization, code splitting, virtualization. See references/state-performance.md for implementations.

Forms, Error Boundaries, Animation & Accessibility

Controlled forms with validation, ErrorBoundary, motion (formerly Framer Motion), keyboard navigation, focus management. See references/forms-errors-a11y.md for implementations.

Quick Decision Guide

NeedPattern
Shared state across siblingsContext + Reducer
Expensive computation (no React Compiler)useMemo
Stable callback reference (no React Compiler)useCallback
Prevent unnecessary re-renders (no React Compiler)React.memo
Large list renderingVirtualization (@tanstack/react-virtual)
Heavy componentlazy() + Suspense
Form validationControlled form + error state
Graceful error handlingErrorBoundary class component
Keyboard accessible UIrole, aria-*, onKeyDown handlers

Note: On projects using React Compiler, manual memoization (useMemo/useCallback/React.memo) is generally unnecessary; add it only when profiling shows a real problem.

Remember: Choose patterns that fit your project complexity. Not every project needs every pattern.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.

The English summary is being prepared. Showing the original description.

cloudnative-co/claude-code-starter-kit154Updated Oct 12, 2026

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

The English summary is being prepared. Showing the original description.

cloudnative-co/claude-code-starter-kit154Updated Oct 12, 2026

日本語の業務文書を作成・修正するときに使用する共通品質基準。事実性、確度、論理、簡潔さ、自然な日本語を守る。提案書、報告、技術説明、議事録、メール、Slack、要約、レビューに適用する。創作、広告コピー、コードや構造化データだけの生成には使用しない。

The English summary is being prepared. Showing the original description.

cloudnative-co/claude-code-starter-kit154Updated Oct 12, 2026

Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

The English summary is being prepared. Showing the original description.

cloudnative-co/claude-code-starter-kit154Updated Oct 12, 2026

Formal evaluation framework for Claude Code sessions implementing eval-driven development (EDD) principles.

The English summary is being prepared. Showing the original description.

cloudnative-co/claude-code-starter-kit154Updated Oct 12, 2026

Example project-specific skill template. Use as a starting point when creating guidelines for your own projects.

The English summary is being prepared. Showing the original description.

cloudnative-co/claude-code-starter-kit154Updated Oct 12, 2026

See all skills by cloudnative-co

Report a problem with this skill