react
Skill156 starsChanged 7 months agoApache-2.0View on GitHub
Guidance for React frontend work. Use when changing React components, hooks, JSX structure, semantic markup, component composition, selector consumption, or frontend render data flow.
48 other projects use a version of this.
Adopted by
Most recently taken up by
- atinder-harika/reel-reactortheir own version, first seen Nov 8, 2026
- LuisSambrano/antigravity-configtheir own version, first seen Nov 8, 2026
- compozy/compozytheir own version, first seen Nov 7, 2026
- lobehub/lobehubtheir own version, first seen Nov 5, 2026
- hmj1026/dhpktheir own version, first seen Nov 1, 2026
- gingerminds/claude-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use app-renderer-systems, refactoring-analysis 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.
pedronauckSkillapp-renderer-systems
Create, extend, or debug frontend domain modules organized under systems/. Covers adapters, Query hooks, local state, and public exports; excludes generic components and backend implementation.
Also in 3 projects that use this
pedronauckSkillrefactoring-analysis
Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/_refacs/. Excludes formatting, performance, and security audits.
Also in 3 projects that use this
andyridsSkillexpress
Run the ICM express-change pipeline - a small change no spec has to move for, with the plan record left intact
Also in 4 projects that use this
tondevrelSkillpytorch
Leading deep learning framework. Provides Tensors and Dynamic Computational Graphs with strong GPU acceleration. Widely used for research, neural networks, and differentiable programming.
Also in 3 projects that use this
azlekovSkilltailwindcss
This skill should be used when the user asks to "style with Tailwind", "add CSS", "configure theme", "use @theme", "add custom colors", "implement dark mode", "use container queries", "add responsive design", "use OKLCH colors", or discusses styling, theming, or visual design. Always use the latest Tailwind CSS version and modern patterns.
Also in 5 projects that use this
jander99Skilltypescript-advanced
Design, implement, refactor, and debug advanced TypeScript patterns including generics, utility types, mapped types, conditional types, type guards, discriminated unions, and strict mode configuration. Use when writing type-safe code, fixing type errors, or improving type inference.
Also in 3 projects that use this
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- lobehub/lobe-chat★ 84ksame name
- lobehub/lobehub★ 84ksame name
- vercel-labs/json-render★ 19ksame name
- compozy/compozy★ 2.9ksame name
- BetterTyped/react-zoom-pan-pinch★ 1.9ksame name
- openops-cloud/openops★ 1.1ksame name
- pedronauck/skills★ 649same name
- Mindrally/skills★ 275same name
- kid-sid/claude-spellbook★ 190same name
- magnus919/agent-skills★ 172same name
38 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 7 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 38 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when changing React components, hooks, JSX structure, or frontend render data flow.
- Distinctive: line 12
Treat RTK slices and selectors as the source of truth for app/domain state.
- Distinctive: line 14
Put single-slice selectors near the slice.
- Very specific: line 16
Avoid recomputing shared derived values ad hoc inside components.
- Distinctive: line 17
Keep Valkey client and transport details out of React components.
- Distinctive: line 22
Do not use hooks as hidden service layers for API orchestration, Redux-derived state, websocket flows, retries, polling, or action chaining.
- Very specific: line 24
Avoid useEffect + setState subscription patterns unless the API cannot fit the external-store model.
- Very specific: line 25
Use useEffect only for imperative side effects that are not render-state subscriptions, such as focus/scroll commands, title updates, event …
- Very specific: line 26
Avoid useEffect for application data flow.
- Very specific: line 27
Do not add useMemo or useCallback by default.
- Distinctive: line 28
Treat manual memoization as an exception that needs a short reason: measured issue, external API referential-stability requirement, or a …
- Very specific: line 32
Use semantic HTML where the element has meaning or interaction: main, section, header, nav, ul, li, button, form, label, and related …
- Very specific: line 33
Use div for layout, containment, flex/grid, spacing, overflow, or styling only when no semantic element fits.
- Very specific: line 34
Avoid unnecessary nested divs and anonymous wrapper trees.
- Very specific: line 35
Prefer named components for repeated or meaningful UI concepts in apps/frontend/src/components.
- Distinctive: line 36
Prefer composition over large components and prop-heavy abstractions.
- Very specific: line 37
Keep components focused on rendering and local interaction.
“Common” is measured: kept by at least 6 in 10 of the 38 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 Skill
Use this skill when changing React components, hooks, JSX structure, or frontend render data flow.
State Flow
- Treat RTK slices and selectors as the source of truth for app/domain state.
- Components should dispatch intent actions and consume selectors. Avoid anonymous
useSelector((state) => ...)in components. - Put single-slice selectors near the slice. Put selectors that join multiple state areas in a domain selector file; create a shared/global selector file only when the cross-slice selector does not belong to one domain.
- Derived Redux fields are valid when intentional. Use the compute pattern when prepared view data improves render simplicity, consistency, or performance.
- Avoid recomputing shared derived values ad hoc inside components. Move shared transforms into reducers, selectors, or
common/. - Keep Valkey client and transport details out of React components.
Hooks
- Custom hooks are appropriate for reusable component-local behavior, browser/DOM integration, and small UI interaction state.
- Do not use hooks as hidden service layers for API orchestration, Redux-derived state, websocket flows, retries, polling, or action chaining.
- For external stores or subscription-based browser/runtime state, prefer
useSyncExternalStoreso React owns snapshot consistency. - Avoid
useEffect + setStatesubscription patterns unless the API cannot fit the external-store model. - Use
useEffectonly for imperative side effects that are not render-state subscriptions, such as focus/scroll commands, title updates, event reporting, imperative library setup/cleanup, or component-local resource cleanup. - Avoid
useEffectfor application data flow. Components should not use effects to fetch data, sync Redux state, chain actions, or coordinate websocket/API workflows. - Do not add
useMemooruseCallbackby default. Prefer straightforward code, selectors, compute steps, and stable component boundaries. - Treat manual memoization as an exception that needs a short reason: measured issue, external API referential-stability requirement, or a case React Compiler cannot optimize safely.
Components And Markup
- Use semantic HTML where the element has meaning or interaction:
main,section,header,nav,ul,li,button,form,label, and related elements. - Use
divfor layout, containment, flex/grid, spacing, overflow, or styling only when no semantic element fits. - Avoid unnecessary nested
divs and anonymous wrapper trees. - Prefer named components for repeated or meaningful UI concepts in
apps/frontend/src/components. - Prefer composition over large components and prop-heavy abstractions.
- Keep components focused on rendering and local interaction. Move data orchestration to middleware and shared transforms to selectors, reducers, or
common/.
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.

