agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/react/SKILL.md

react

Skill1 starsChanged 3 months agoMITView on GitHub

Build, review, debug, migrate, or plan React applications and components using current React documentation. Use for React, React DOM, hooks, JSX, Server Components, Server Functions, Actions/forms, React Compiler, hydration, rendering roots, React 19 upgrades, or questions about modern React patterns and best practices.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use app-renderer-systems, express and 8 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 4 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 5 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

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

  • rawvegSkill

    laravel

    Laravel v12 - The PHP Framework For Web Artisans

    Also in 6 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 14 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to make React choices from current docs plus the local app's actual version, framework, and conventions.

    line 8
  2. Distinctive:

    Read the nearest project guidance files and package manifests.

    line 13
  3. Very specific:

    Check installed or declared versions of react, react-dom, the framework, build tool, test stack, TypeScript, and ESLint.

    line 14
  4. Distinctive:

    Prefer current docs tooling or official docs pages.

    line 17
  5. Distinctive:

    Use source-map.md for the captured latest-version snapshot and official source links.

    line 18
  6. Distinctive:

    Prefer framework primitives over direct React DOM APIs when the framework owns routing, data fetching, SSR, RSC, or hydration.

    line 24
  7. Distinctive:

    Avoid introducing React 19.2-only or canary-only APIs unless the app's dependencies support them.

    line 26
  8. Distinctive:

    Verify the smallest meaningful surface:

    line 27
  9. Distinctive:

    Run the project's relevant typecheck, lint, test, build, story, or browser verification command.

    line 28
  10. Distinctive:

    Keep render pure and idempotent.

    line 34
  11. Distinctive:

    Use Effects only to synchronize with external systems such as the DOM, subscriptions, timers, imperative widgets, analytics, or …

    line 36
  12. Distinctive:

    Keep Effect dependencies honest.

    line 37
  13. Distinctive:

    Put user-caused side effects in event handlers or Actions.

    line 38
  14. Very specific:

    Prefer local state. Lift state only when multiple components need to coordinate.

    line 39
  15. Distinctive:

    Treat Server Components, Server Functions, and React DOM server/static APIs as framework integration territory unless the task is …

    line 40
  16. Distinctive:

    Treat canary and experimental docs as unavailable in stable apps unless the project explicitly uses those channels.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 44 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

Use this skill to make React choices from current docs plus the local app's actual version, framework, and conventions.

Workflow

  1. Identify the React surface before changing code:
    • Read the nearest project guidance files and package manifests.
    • Check installed or declared versions of react, react-dom, the framework, build tool, test stack, TypeScript, and ESLint.
    • Determine whether the target is a client-only app, SSR, framework-managed app, React Server Components app, React Native app, component library, or migration.
  2. Refresh docs when the user asks for latest/current behavior, when versions are unclear, or when using React 19+ APIs:
    • Prefer current docs tooling or official docs pages.
    • Use source-map.md for the captured latest-version snapshot and official source links.
  3. Load the focused reference file for the task:
    • core-react.md: component design, JSX, state, effects, hooks, purity, performance, and testing judgment.
    • react-19.md: React 19/19.2 APIs, upgrades, Actions, forms, Server Components, Server Functions, Compiler, and release-channel caveats.
    • react-dom.md: createRoot, hydrateRoot, DOM forms, hydration, server/static rendering, resources, and escape hatches.
  4. Implement in the existing project style:
    • Prefer framework primitives over direct React DOM APIs when the framework owns routing, data fetching, SSR, RSC, or hydration.
    • Preserve local component boundaries, accessibility conventions, tests, and styling patterns.
    • Avoid introducing React 19.2-only or canary-only APIs unless the app's dependencies support them.
  5. Verify the smallest meaningful surface:
    • Run the project's relevant typecheck, lint, test, build, story, or browser verification command.
    • For visible UI changes, inspect the real screen state when feasible.
    • Report any verification you could not run.

React Judgment

  • Keep render pure and idempotent. Do not read time, randomness, browser-only globals, or mutate non-local values during render unless the value is safely isolated and repeatable.
  • Derive values during render when they can be calculated from props or state. Do not add state plus an Effect just to mirror another value.
  • Use Effects only to synchronize with external systems such as the DOM, subscriptions, timers, imperative widgets, analytics, or non-framework data fetching.
  • Keep Effect dependencies honest. Prove a value is non-reactive by moving it out of the component or into an Effect/Event boundary instead of suppressing the linter.
  • Put user-caused side effects in event handlers or Actions. Put render-caused external synchronization in Effects.
  • Prefer local state. Lift state only when multiple components need to coordinate. Use reducers for complex transitions and useSyncExternalStore for external stores.
  • Treat Server Components, Server Functions, and React DOM server/static APIs as framework integration territory unless the task is explicitly building framework infrastructure.
  • Treat canary and experimental docs as unavailable in stable apps unless the project explicitly uses those channels.

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.