agentleFS
valkey-iovalkey-io/valkey-admin/.agents/skills/react/SKILL.md

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

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.
  • pedronauckSkill

    app-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

  • pedronauckSkill

    refactoring-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

  • andyridsSkill

    express

    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

  • tondevrelSkill

    pytorch

    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

  • azlekovSkill

    tailwindcss

    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

  • jander99Skill

    typescript-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

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
  1. Distinctive:

    Use this skill when changing React components, hooks, JSX structure, or frontend render data flow.

    line 8
  2. Distinctive:

    Treat RTK slices and selectors as the source of truth for app/domain state.

    line 12
  3. Distinctive:

    Put single-slice selectors near the slice.

    line 14
  4. Very specific:

    Avoid recomputing shared derived values ad hoc inside components.

    line 16
  5. Distinctive:

    Keep Valkey client and transport details out of React components.

    line 17
  6. Distinctive:

    Do not use hooks as hidden service layers for API orchestration, Redux-derived state, websocket flows, retries, polling, or action chaining.

    line 22
  7. Very specific:

    Avoid useEffect + setState subscription patterns unless the API cannot fit the external-store model.

    line 24
  8. Very specific:

    Use useEffect only for imperative side effects that are not render-state subscriptions, such as focus/scroll commands, title updates, event …

    line 25
  9. Very specific:

    Avoid useEffect for application data flow.

    line 26
  10. Very specific:

    Do not add useMemo or useCallback by default.

    line 27
  11. Distinctive:

    Treat manual memoization as an exception that needs a short reason: measured issue, external API referential-stability requirement, or a …

    line 28
  12. Very specific:

    Use semantic HTML where the element has meaning or interaction: main, section, header, nav, ul, li, button, form, label, and related …

    line 32
  13. Very specific:

    Use div for layout, containment, flex/grid, spacing, overflow, or styling only when no semantic element fits.

    line 33
  14. Very specific:

    Avoid unnecessary nested divs and anonymous wrapper trees.

    line 34
  15. Very specific:

    Prefer named components for repeated or meaningful UI concepts in apps/frontend/src/components.

    line 35
  16. Distinctive:

    Prefer composition over large components and prop-heavy abstractions.

    line 36
  17. Very specific:

    Keep components focused on rendering and local interaction.

    line 37

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 useSyncExternalStore so React owns snapshot consistency.
  • Avoid useEffect + setState subscription patterns unless the API cannot fit the external-store model.
  • Use useEffect only 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 useEffect for application data flow. Components should not use effects to fetch data, sync Redux state, chain actions, or coordinate websocket/API workflows.
  • Do not add useMemo or useCallback by 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 div for 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/.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.