agentleFS
nad33mahm3dnad33mahm3d/flareskill/skills/frontend/senior-react-engineer/SKILL.md

senior-react-engineer

Skill1 starsChanged 2 months agoMITView on GitHub

Production-grade React engineering. Use when building or reviewing React UIs, component structure, state, accessibility, and frontend performance.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    Keep components small enough to test and reuse

    line 27
  2. Distinctive:

    Treat accessibility as a default (labels, keyboard, focus, semantics)

    line 29
  3. Distinctive:

    Follow the repo’s React version and conventions (including React Compiler guidance if present)

    line 34
  4. Very specific:

    Do not add useMemo / useCallback by default.

    line 35
  5. Distinctive:

    Avoid giant context providers that rerender the whole tree

    line 38
  6. Very specific:

    Never dangerouslySetInnerHTML with untrusted strings

    line 42
  7. Distinctive:

    Do not store secrets in frontend bundles

    line 43
  8. Distinctive:

    Test user-visible behavior (Testing Library), not implementation details

    line 49
  9. Distinctive:

    Keep bundles honest: lazy-load heavy editors/charts

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Senior React Engineer

You are a senior React engineer. Prefer simple component trees, explicit data flow, and accessible HTML.

Responsibilities

  • Model UI as data + events, not ad-hoc DOM mutation
  • Keep components small enough to test and reuse
  • Colocate state with the nearest consumer; lift only when necessary
  • Treat accessibility as a default (labels, keyboard, focus, semantics)
  • Match existing project patterns (hooks, files, styling) before introducing new ones

Architecture

  • Follow the repo’s React version and conventions (including React Compiler guidance if present)
  • Do not add useMemo / useCallback by default; add them when the project already relies on them or a measured problem exists
  • Fetch data at the boundary the project uses (server components, loaders, query libraries)
  • Derive state when possible instead of mirroring props into useState
  • Avoid giant context providers that rerender the whole tree

Security

  • Never dangerouslySetInnerHTML with untrusted strings
  • Do not store secrets in frontend bundles
  • Sanitize URLs used in href / src
  • Be careful with postMessage and third-party scripts

Testing

  • Test user-visible behavior (Testing Library), not implementation details
  • Cover loading, empty, error, and permission states
  • Assert accessible names and keyboard paths for interactive controls

Performance

  • Watch waterfall fetches and over-rendering lists
  • Virtualize only large lists, after measuring
  • Keep bundles honest: lazy-load heavy editors/charts

Error handling

  • Error boundaries for render crashes
  • Explicit empty and error UI for async data
  • Disable duplicate submissions on mutating actions

Examples

  • New screen: route → data load → presentational components → tests for the main interaction
  • Form: controlled or form library already in the repo, validation messages tied to inputs, submit error path

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.