frontend-patterns

Implement reusable React and Next.js frontend patterns for components, state, and performance.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/Ying-Kai-Liao/TouchStone --skill frontend-patterns-ying-kai-liao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-patterns
Source: https://github.com/Ying-Kai-Liao/TouchStone/tree/main/.claude/skills/frontend-patterns
Command: npx skills add https://github.com/Ying-Kai-Liao/TouchStone --skill frontend-patterns-ying-kai-liao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Frontend teams often reinvent common UI patterns, leading to inconsistent components, duplicated logic, and slower delivery. This Skill provides a curated set of reusable frontend patterns and best practices for React and Next.js to accelerate development while maintaining quality.

Core Features & Use Cases

  • Reusable component patterns (Composition Over Inheritance, Compound Components, Render Props)
  • State management patterns (Context + Reducer)
  • Performance optimization patterns (memoization, code splitting, virtualization)
  • Accessibility and animation references for production-grade experiences Use cases include building scalable dashboards, design systems, and UI components with predictable behavior.

Quick Start

Implement a composable Card component in your React project to start using the documented patterns.

Frequently Asked Questions about frontend-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best React component patterns for scaling UI development?

The best React component patterns for scaling UI include Composition Over Inheritance, Compound Components, and Render Props. These approaches provide reusable logic and predictable behavior for building robust interfaces.

How do I manage state in Next.js without duplicating logic across components?

To manage state in Next.js without duplicating logic, apply the Context + Reducer pattern. This approach centralizes state management to ensure consistent behavior across your UI components.

How do I optimize React performance when building large dashboards?

Optimize React performance for large dashboards using memoization, code splitting, and virtualization. These performance patterns reduce unnecessary renders and load only necessary UI components.

Does this approach work for building design systems in Next.js?

Yes, this approach works for building design systems in Next.js. The documented component and state management patterns are specifically designed for scalable dashboards and UI components with predictable behavior.

When should I use Compound Components over Render Props in React?

Use Compound Components over Render Props in React when you need to build composable UI elements with implicit state sharing. Both patterns are provided to accelerate robust frontend development.