react-patterns
Skill0 starsChanged 3 months agoMITView on GitHub
Implement or review React web components, hooks, state, effects, composition, forms, and rendering boundaries using the repository's actual React and framework versions. Use for React web work; do not use for React Native or generic visual direction.
29 other projects use a version of this.
Adopted by
Most recently taken up by
- ku5ic/claude-kittheir own version, first seen Oct 6, 2026
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- komluk/scaffoldingtheir own version, first seen Sep 28, 2026
- lintangknitto/agent-skillstheir own version, first seen Sep 23, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- SkotAlexsander/skillstheir own version, first seen Sep 16, 2026
Used with
Projects with it also use typescript-strict, fastapi-patterns and 7 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.
kevinaimonsterSkilltypescript-strict
TypeScript strict mode and advanced type system assistant. Helps write strictly-typed TypeScript code with generics, type guards, utility types, conditional types, mapped types, and template literal types. Trigger when user says 'TypeScript types' 'type gymnastics' 'TypeScript generics' 'strict TypeScript' 'type guard' 'TS类型' 'TypeScript严格模式' '类型体操' '泛型怎么写' 'TS type help'. Keywords: TypeScript, strict mode, generics, type guard, utility types, conditional types, mapped types, template literal types, infer, extends, keyof, typeof, type narrowing, discriminated unions, type assertion, type predicate, type gymnastics, TS, 类型体操, 泛型, 类型守卫, 严格类型
Also in 3 projects that use this
hieutrtrSkillfastapi-patterns
FastAPI framework mechanics and advanced patterns. Use when configuring middleware, creating dependency injection chains, implementing WebSocket endpoints, customizing OpenAPI documentation, setting up CORS, building authentication dependencies (JWT validation, role-based access), implementing background tasks, or managing application lifespan (startup/shutdown). Does NOT cover basic endpoint CRUD or repository/service patterns (use python-backend-expert) or testing (use pytest-patterns).
Also in 3 projects that use this
xfstudioSkillpython-patterns
Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.
Also in 5 projects that use this
LangChainSkilldocker-patterns
Best practices for Docker containerization and multi-stage builds
Also in 4 projects that use this
AnthropicSkilltesting-strategy
Design test strategies and test plans. Trigger with "how should we test", "test strategy for", "write tests for", "test plan", "what tests do we need", or when the user needs help with testing approaches, coverage, or test architecture.
Also in 4 projects that use this
rohitg00Skilldjango-patterns
Django architecture patterns including DRF, ORM optimization, signals, middleware, and project structure
Also in 3 projects that use this
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 29
- rohitg00/awesome-claude-code-toolkit★ 2.7ksame name
- nth5693/gemini-kit★ 373same name
- jh941213/my-cc-harness★ 126same name
- templetongroup/radiant★ 113same name
- maxyeh0817/Forge★ 34same name
- Fandry96/k3-agentic-skills★ 27same name
- VoDaiLocz/kilo-kit-mcp★ 27same name
- komluk/scaffolding★ 15same name
- benshapyro/cadre-devkit-claude★ 9same name
- xfstudio/skills★ 9same name
19 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 repository21 other files it gives its agents.
- global/AGENTS.mdAGENTS.md
- api-designSkill
- backend-patternsSkill
- brandSkill
- contract-firstSkill
- database-migrationsSkill
- engineering-task-workflowSkill
- error-handlingSkill
- fixing-accessibilitySkill
- frontend-designSkill
- frontend-ui-engineeringSkill
- intent-driven-developmentSkill
- react-native-patternsSkill
- react-testingSkill
- security-best-practicesSkill
- shadcnSkill
- supabase-postgres-best-practicesSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- ui-ux-pro-maxSkill
- verification-before-completionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 16 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Keep rendering pure: the same props and state should produce the same UI.
- Distinctive: line 16
Prefer composition and explicit props over inheritance, hidden registries, or global context.
- Distinctive: line 18
Use semantic HTML before ARIA and preserve keyboard/focus behavior.
- Distinctive: line 22
Place state at the narrowest owner that needs to coordinate it:
- Distinctive: line 34
Use an effect to synchronize React with an external system: subscription, timer, imperative API, storage, network mechanism not owned by …
- Distinctive: line 36
Do not use effects for values that can be derived during render.
- Distinctive: line 39
Prefer event handlers for work caused by a user action.
- Distinctive: line 45
Use React Server Components or Server Actions only when the installed framework and route architecture support them.
- Distinctive: line 47
Use the existing query/cache solution for client server-state.
- Distinctive: line 52
Use native form behavior and accessible labels/errors as the baseline.
- Distinctive: line 53
Keep simple forms simple.
- Distinctive: line 54
Use the existing form/schema library for cross-field validation, dynamic collections, or complex workflows.
- Distinctive: line 60
Use stable keys tied to identity, never array position when items can reorder.
- Distinctive: line 61
Avoid recreating large contexts or subscriptions for unrelated updates.
- Very specific: line 63
Treat memo, useMemo, and useCallback as targeted optimizations, not defaults.
- Distinctive: line 67
Test behavior through user-observable outcomes.
- Distinctive: line 69
Do not route this skill to React Native.
“Common” is measured: kept by at least 6 in 10 of the 25 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 Patterns
Preserve the repository's framework, version, state model, component library, and testing conventions. Do not introduce a new state, form, fetching, or styling library unless the requested behavior needs it.
Component boundaries
- Keep rendering pure: the same props and state should produce the same UI.
- Prefer composition and explicit props over inheritance, hidden registries, or global context.
- Split a component when responsibilities, update frequency, reuse, or testing boundaries become clearer; do not split only to reduce line count.
- Use semantic HTML before ARIA and preserve keyboard/focus behavior.
State placement
Place state at the narrowest owner that needs to coordinate it:
- local component state for local interaction;
- lift to the nearest common owner when a few related components share it;
- context for stable, low-frequency cross-tree concerns;
- an existing external store for shared high-frequency or domain state;
- the repository's server-state mechanism for remote data.
Derive values during render when possible. Do not copy props or query data into state without a synchronization requirement.
Effects
Use an effect to synchronize React with an external system: subscription, timer, imperative API, storage, network mechanism not owned by the framework, or third-party widget.
- Do not use effects for values that can be derived during render.
- Clean up subscriptions and cancel or ignore stale asynchronous work.
- Include dependencies that reflect the actual synchronization contract.
- Prefer event handlers for work caused by a user action.
Data and framework boundaries
Discover the actual router/framework before applying framework-specific patterns.
- Use React Server Components or Server Actions only when the installed framework and route architecture support them.
- Preserve serialization and server/client boundaries already used by the project.
- Use the existing query/cache solution for client server-state; avoid ad hoc effect-based fetching when the project already provides one.
- Validate assumptions against current framework documentation when APIs or conventions are version-sensitive.
Forms
- Use native form behavior and accessible labels/errors as the baseline.
- Keep simple forms simple.
- Use the existing form/schema library for cross-field validation, dynamic collections, or complex workflows.
- Preserve submitted values and focus when validation fails.
Performance
- Measure or identify a concrete render problem before memoizing.
- Use stable keys tied to identity, never array position when items can reorder.
- Avoid recreating large contexts or subscriptions for unrelated updates.
- Virtualize only when list size and rendering cost justify it.
- Treat
memo,useMemo, anduseCallbackas targeted optimizations, not defaults.
Testing and review
Test behavior through user-observable outcomes. Use the repository's React testing skill and tools when writing component tests. Review loading, empty, error, success, disabled, focus, responsive, and cleanup behavior when relevant.
Do not route this skill to React Native; use the dedicated RN/Expo skill. Visual direction belongs to the design skill, while this skill governs React implementation behavior.
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.

