Skills for Real Engineers. Straight from my .agents directory.
react-patterns
Agent skill fromjezweb/claude-skills
React 19 performance patterns and composition architecture for Vite + Cloudflare projects. 50+ rules ranked by impact — eliminating waterfalls, bundle optimisation, re-render prevention, composition over boolean props, server/client boundaries, and React 19 APIs. Use when writing, reviewing, or refactoring React components. Triggers: 'react patterns', 'react review', 'react performance', 'optimise components', 'react best practices', 'composition patterns', 'why is it slow', 'reduce re-renders', 'fix waterfall'.
How to install react-patterns
npx skills add jezweb/claude-skills# or add only this skill to Claude Code: copy the folder
plugins/frontend/skills/react-patterns/
# into
~/.claude/skills/react-patterns/ (all projects)
.claude/skills/react-patterns/ (one project)
1# React Patterns23Performance and composition patterns for React 19 + Vite + Cloudflare Workers projects. Use as a checklist when writing new components, a review guide when auditing existing code, or a refactoring playbook when something feels slow or tangled.45Rules are ranked by impact. Fix CRITICAL issues before touching MEDIUM ones.67## When to Apply89- Writing new React components or pages10- Reviewing code for performance issues11- Refactoring components with too many props or re-renders12- Debugging "why is this slow?" or "why does this re-render?"13- Building reusable component libraries14- Code review before merging1516## 1. Eliminating Waterfalls (CRITICAL)1718Sequential async calls where they could be parallel. The #1 performance killer.1920| Pattern | Problem | Fix |21|---------|---------|-----|22| **Await in sequence** | `const a = await getA(); const b = await getB();` | `const [a, b] = await Promise.all([getA(), getB()]);` |23| **Fetch in child** | Parent renders, then child fetches, then grandchild fetches | Hoist fetches to the highest common ancestor, pass data down |24| **Suspense cascade** | Multiple Suspense boundaries that resolve sequentially | One Suspense boundary wrapping all async siblings |25| **Await before branch** | `const data = await fetch(); if (condition) { use(data); }` | Move await inside the branch — don't fetch what you might not use |26…
Excerpt shown under the repository's MIT license.
More skills in claude-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
