frontend-patterns

Provide structured frontend patterns for React, Vue, and TypeScript projects.

Updated Sep 8, 2025
One-click install
npx skills add https://github.com/randalmurphal/claude-config --skill frontend-patterns-randalmurphal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-patterns
Source: https://github.com/randalmurphal/claude-config/tree/main/skills/frontend-patterns
Command: npx skills add https://github.com/randalmurphal/claude-config --skill frontend-patterns-randalmurphal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides practical frontend development patterns for React, Vue, and TypeScript, covering component composition, state management, hooks patterns, performance optimizations, testing strategies, and build tooling to accelerate UI development and reduce architectural debt.

Core Features & Use Cases

  • React Component Patterns: functional components, composition, render props, and HOC patterns.
  • Vue Patterns: Composition API patterns and reusable composables.
  • State Management: patterns for Redux, Zustand, Pinia across frameworks.
  • Hooks & Performance: custom hooks, memoization, lazy loading.
  • Testing & Build: Jest/Vitest testing guidance, Vite/webpack setup.

Quick Start

Create a minimal React component using a functional pattern and a small composable hook to illustrate usage.

Frequently Asked Questions about frontend-patterns

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

FAQPage Schema
How do I structure reusable components in React and Vue?

Reusable components use functional patterns in React (composition, render props, HOCs) and Composition API patterns in Vue. Both frameworks support extracting logic into custom hooks and composables, reducing duplication across projects and enabling consistent component architecture.

What's the best way to manage state across React and Vue applications?

State management patterns differ by framework: Redux and Zustand for React, Pinia for Vue. This Skill covers implementation patterns for each, helping you choose and configure centralized stores that reduce prop drilling and maintain predictable data flow.

How do I optimize render performance in React and Vue with hooks?

Performance optimization uses memoization, lazy loading, and custom hooks to prevent unnecessary re-renders. React offers useMemo and useCallback; Vue's Composition API provides equivalent reactivity controls. Proper patterns significantly reduce bundle size and rendering time.

Can I use the same testing approach for both React and Vue projects?

Jest and Vitest support both frameworks, but testing patterns differ. This Skill provides framework-specific guidance for configuring test environments, writing unit and integration tests, and integrating with build tools like Vite and Webpack for consistent quality.

Does TypeScript work with React, Vue, and state management libraries?

Yes. TypeScript typings are available for React, Vue, Redux, Zustand, and Pinia. This Skill covers how to configure strong typing across component props, state stores, and hooks to catch errors at development time and improve code reliability.

What should I do if my frontend architecture has inconsistent patterns across projects?

Frontend fragmentation leads to maintenance debt and slower onboarding. Structured patterns for components, state management, hooks, and build workflows reduce inconsistency, enable code sharing, and establish a repeatable architecture across React, Vue, and TypeScript codebases.