react-expert
Skill0 starsChanged 13 months agoMITView on GitHub
Expert in React development with hooks, TypeScript, state management, and modern patterns. Use for React component development, optimization, and best practices.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- mizchi/skillstheir own version, first seen Oct 2, 2026
- peakdong68/my-skillstheir own version, first seen Aug 29, 2026
- Aarvion-AI/stackwise-skillstheir own version, first seen Aug 25, 2026
- Leo-Atienza/atlas-claudetheir own version, first seen Jul 24, 2026
- james-paul25/claude-skilltheir own version, first seen Jul 11, 2026
- codeApe-7/ai-agent-workflowGrouptheir own version, first seen Jun 6, 2026
Used with
Projects with it also use fullstack-guardian, playwright-expert and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JeffallanSkillfullstack-guardian
Builds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the complete stack from database to UI, enforcing auth, input validation, output encoding, and parameterized queries across all layers. Use when implementing features across frontend and backend, building REST APIs with corresponding UI, connecting frontend components to backend endpoints, creating end-to-end data flows from database to UI, or implementing CRUD operations with UI forms. Distinct from frontend-only, backend-only, or API-only skills in that it simultaneously addresses all three perspectives—Frontend, Backend, and Security—within a single implementation workflow. Invoke for full-stack feature work, web app development, authenticated API routes with views, microservices, real-time features, monorepo architecture, or technology selection decisions.
Also in 6 projects that use this
JeffallanSkillplaywright-expert
Use when writing E2E tests with Playwright, setting up test infrastructure, or debugging flaky browser tests. Invoke to write test scripts, create page objects, configure test fixtures, set up reporters, add CI integration, implement API mocking, or perform visual regression testing. Trigger terms: Playwright, E2E test, end-to-end, browser testing, automation, UI testing, visual testing, Page Object Model, test flakiness.
Also in 5 projects that use this
martinholovskySkillfastapi-expert
Expert FastAPI developer specializing in production-ready async REST APIs with Pydantic v2, SQLAlchemy 2.0, OAuth2/JWT authentication, and comprehensive security. Deep expertise in dependency injection, background tasks, async database operations, input validation, and OWASP security best practices. Use when building high-performance Python web APIs, implementing authentication systems, or securing API endpoints.
Also in 6 projects that use this
- +9 more from Jeffallan
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- Jeffallan/claude-skills★ 12ksame name
- mizchi/skills★ 349same name
- codeApe-7/ai-agent-workflowGroup★ 17same name
- kaustubhhiware/agent-skills-fullstack-development★ 16same name
- megastep/codex-skills★ 7same name
- Aarvion-AI/stackwise-skills★ 5same name
- Leo-Atienza/atlas-claude★ 4same name
- d3labs-thomas/claude-code★ 2same name
- james-paul25/claude-skill★ 0same name
- peakdong68/my-skills★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- system-designSkill
- nodejs-expertSkill
- codex-coderSkill
- terraformSkill
- mermaid-diagramsSkill
- technical-writerSkill
- css-expertSkill
- vue-expertSkill
- kubernetes-expertSkill
- android-expertSkill
- ios-expertSkill
- security-expertSkill
- ux-designerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 1 is common, 19 are distinctive, and 0 are very specific to this project.
1
Common
Most of the 11 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Prefer functional components over class components
- Distinctive: line 26
Use hooks for state and side effects
- Distinctive: line 28
Follow component composition patterns
- Distinctive: line 32
Use generics for reusable components
- Distinctive: line 34
Create discriminated unions for complex state
- Distinctive: line 37
Use useState for local component state
- Distinctive: line 40
Consider Redux Toolkit or Zustand for global state
- Distinctive: line 44
Use React.memo for expensive components
- Distinctive: line 198
Use index files for exports
- Distinctive: line 203
Use default props sparingly (prefer default parameters)
- Distinctive: line 204
Avoid prop drilling (use context or composition)
- Distinctive: line 207
Use Error Boundaries for error catching
- Distinctive: line 212
Write tests for components
- Distinctive: line 213
Use React Testing Library
- Distinctive: line 214
Test user interactions, not implementation
- Distinctive: line 221
Test with screen readers
- Distinctive: line 231
Not cleaning up side effects
- Common: line 245
When implementing React features:
- Distinctive: line 250
Optimize Performance: - Add memoization only when needed
- Distinctive: line 253
Review & Refactor: - Ensure code quality and maintainability
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React Development Expert
Purpose
Provide expert-level React development assistance focusing on modern React patterns, hooks, TypeScript integration, performance optimization, and best practices.
When to Use This Skill
- Building React components with functional components and hooks
- Implementing complex state management (Context API, Redux, Zustand)
- TypeScript integration with React
- Performance optimization (memo, useMemo, useCallback)
- React Router implementation
- Form handling and validation
- API integration with React Query or SWR
- Testing React components
Key Principles
1. Modern React Patterns
- Prefer functional components over class components
- Use hooks for state and side effects
- Implement custom hooks for reusable logic
- Follow component composition patterns
2. TypeScript Best Practices
- Define proper prop types with TypeScript interfaces
- Use generics for reusable components
- Leverage type inference where appropriate
- Create discriminated unions for complex state
3. State Management
- Use useState for local component state
- useReducer for complex state logic
- Context API for shared state
- Consider Redux Toolkit or Zustand for global state
- Implement proper state normalization
4. Performance Optimization
- Use React.memo for expensive components
- Implement useMemo for expensive calculations
- useCallback for function stability
- Code splitting with React.lazy and Suspense
- Virtualization for long lists
5. Side Effects
- useEffect for side effects with proper dependency arrays
- Clean up effects properly
- Avoid infinite loops
- Separate concerns in different effects
Code Structure
Component Template
import React, { useState, useEffect, useMemo, useCallback } from 'react';
interface ComponentProps {
data: DataType;
onAction: (id: string) => void;
className?: string;
}
export const Component: React.FC<ComponentProps> = ({
data,
onAction,
className
}) => {
const [state, setState] = useState<StateType>(initialState);
const memoizedValue = useMemo(() => {
return expensiveCalculation(data);
}, [data]);
const handleAction = useCallback((id: string) => {
onAction(id);
}, [onAction]);
useEffect(() => {
// Side effect
return () => {
// Cleanup
};
}, [dependencies]);
return (
<div className={className}>
{/* Component JSX */}
</div>
);
};Custom Hook Template
import { useState, useEffect } from 'react';
export function useCustomHook<T>(initialValue: T) {
const [value, setValue] = useState<T>(initialValue);
const [loading, setLoading] = useState(false);
const [error, setError] = useState<Error | null>(null);
useEffect(() => {
// Custom hook logic
}, []);
return { value, setValue, loading, error };
}Common Patterns
1. Data Fetching
const useData = (url: string) => {
const [data, setData] = useState(null);
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);
useEffect(() => {
const fetchData = async () => {
try {
const response = await fetch(url);
const result = await response.json();
setData(result);
} catch (err) {
setError(err);
} finally {
setLoading(false);
}
};
fetchData();
}, [url]);
return { data, loading, error };
};2. Form Handling
const useForm = <T extends Record<string, any>>(initialValues: T) => {
const [values, setValues] = useState<T>(initialValues);
const [errors, setErrors] = useState<Partial<Record<keyof T, string>>>({});
const handleChange = (name: keyof T, value: any) => {
setValues(prev => ({ ...prev, [name]: value }));
};
const validate = () => {
// Validation logic
return Object.keys(errors).length === 0;
};
return { values, errors, handleChange, validate };
};3. Context Pattern
interface ContextValue {
state: State;
actions: Actions;
}
const Context = createContext<ContextValue | undefined>(undefined);
export const Provider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const [state, setState] = useState<State>(initialState);
const value = useMemo(() => ({
state,
actions: {
update: (data: Data) => setState(prev => ({ ...prev, data }))
}
}), [state]);
return <Context.Provider value={value}>{children}</Context.Provider>;
};
export const useContextValue = () => {
const context = useContext(Context);
if (!context) {
throw new Error('useContextValue must be used within Provider');
}
return context;
};Best Practices
- Component Organization
- One component per file
- Co-locate related files
- Use index files for exports
- Separate containers from presentational components
- Props Management
- Destructure props
- Use default props sparingly (prefer default parameters)
- Avoid prop drilling (use context or composition)
- Error Handling
- Use Error Boundaries for error catching
- Handle async errors properly
- Provide user-friendly error messages
- Testing
- Write tests for components
- Use React Testing Library
- Test user interactions, not implementation
- Mock external dependencies
- Accessibility
- Use semantic HTML
- Provide ARIA labels where needed
- Ensure keyboard navigation
- Test with screen readers
Anti-Patterns to Avoid
- Modifying state directly
- Missing dependencies in useEffect
- Using indexes as keys in lists
- Too many useEffect hooks in one component
- Props drilling through many levels
- Overusing Context (causes unnecessary re-renders)
- Not cleaning up side effects
Tools & Libraries
- State Management: Redux Toolkit, Zustand, Jotai, Recoil
- Data Fetching: React Query, SWR, Apollo Client
- Forms: React Hook Form, Formik
- Routing: React Router, TanStack Router
- UI Libraries: Material-UI, Chakra UI, shadcn/ui
- Testing: Jest, React Testing Library, Vitest
- Build Tools: Vite, Next.js, Create React App
Implementation Approach
When implementing React features:
- Analyze Requirements - Understand the component's purpose and data flow
- Design Component Structure - Plan component hierarchy and state placement
- Implement with TypeScript - Define types first, then implement logic
- Optimize Performance - Add memoization only when needed
- Add Error Handling - Handle edge cases and errors gracefully
- Write Tests - Cover critical functionality
- Review & Refactor - Ensure code quality and maintainability
Examples
Complex Form with Validation
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
const schema = z.object({
email: z.string().email(),
password: z.string().min(8)
});
type FormData = z.infer<typeof schema>;
export const LoginForm: React.FC = () => {
const { register, handleSubmit, formState: { errors } } = useForm<FormData>({
resolver: zodResolver(schema)
});
const onSubmit = async (data: FormData) => {
// Handle submission
};
return (
<form onSubmit={handleSubmit(onSubmit)}>
<input {...register('email')} />
{errors.email && <span>{errors.email.message}</span>}
<input type="password" {...register('password')} />
{errors.password && <span>{errors.password.message}</span>}
<button type="submit">Login</button>
</form>
);
};This skill ensures production-ready, maintainable, and performant React applications.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

