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.
In this repository19 other files it gives its agents.
- database-engineerSkill
- senior-nodejs-engineerSkill
- senior-python-engineerSkill
- senior-spring-boot-engineerSkill
- docker-engineerSkill
- kubernetes-engineerSkill
- observability-engineerSkill
- api-designSkill
- cursor-agent-engineerSkill
- graphql-engineerSkill
- product-managerSkill
- prompt-engineerSkill
- qa-engineerSkill
- system-architectSkill
- technical-writerSkill
- typescript-engineerSkill
- mobile-react-native-engineerSkill
- senior-nextjs-engineerSkill
- security-engineerSkill
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
- Distinctive: line 27
Keep components small enough to test and reuse
- Distinctive: line 29
Treat accessibility as a default (labels, keyboard, focus, semantics)
- Distinctive: line 34
Follow the repo’s React version and conventions (including React Compiler guidance if present)
- Very specific: line 35
Do not add useMemo / useCallback by default.
- Distinctive: line 38
Avoid giant context providers that rerender the whole tree
- Very specific: line 42
Never dangerouslySetInnerHTML with untrusted strings
- Distinctive: line 43
Do not store secrets in frontend bundles
- Distinctive: line 49
Test user-visible behavior (Testing Library), not implementation details
- Distinctive: line 57
Keep bundles honest: lazy-load heavy editors/charts
≈ “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.
Files
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/useCallbackby 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
dangerouslySetInnerHTMLwith untrusted strings - Do not store secrets in frontend bundles
- Sanitize URLs used in
href/src - Be careful with
postMessageand 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
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.

