react-dev
Skill1 starsChanged 9 months agoMITView on GitHub
React frontend conventions for this project. Use when building or modifying React components, hooks, state management, styling, or frontend tests.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- taeeho/ClaudeSkillstheir own version, first seen May 20, 2026
- nbirkner/digital-braintheir own version, first seen Apr 12, 2026
- chidekina/aria-superpowerstheir own version, first seen Feb 22, 2026
- softaworks/agent-toolkittheir own version, first seen Jan 20, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- softaworks/agent-toolkit★ 2.5ksame name
- chidekina/aria-superpowers★ 2same name
- nbirkner/digital-brain★ 0same name
- taeeho/ClaudeSkills★ 0same name
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.
In this repository16 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/ask-first.mdcCursor rule
- .cursor/rules/git-mv-rename.mdcCursor rule
- .cursor/rules/include-specs.mdcCursor rule
- .cursor/rules/update-specs.mdcCursor rule
- code-review-codexSkill
- commitSkill
- python-devSkill
- spec-review-codexSkill
- summarizerSkill
- ui-designSkill
- yt-transcriptSkill
- codex-reviewSkill
- python-devSkill
- react-devSkill
- ui-designSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use useReducer for complex update logic
- Distinctive: line 26
Ensure keyboard accessibility and visible focus on all interactive controls
- Distinctive: line 31
Use component abstractions (variant objects/props) instead of repeating long class lists
- Very specific: line 33
Use prettier-plugin-tailwindcss for class sorting
- Very specific: line 37
Test like a user — prefer queries by role + accessible name (getByRole, findByRole)
- Very specific: line 38
Use @testing-library/user-event over fireEvent
- Distinctive: line 39
Don't test implementation details (DOM structure, internal state, private methods)
- Distinctive: line 45
Write tests alongside implementation — new components and hooks should ship with tests
- Distinctive: line 50
Speak up: If you spot code that contradicts conventions, has a latent bug, unnecessary complexity, or a missed optimization — flag it.
- Distinctive: line 51
Verify against documentation: Use the context7 MCP to check documentation of libraries when needed.
- Distinctive: line 52
Ask, don't assume: If requirements are ambiguous or you face a non-obvious UI/state design choice, ask for clarification before proceeding.
- Distinctive: line 53
Stay scoped: If you discover an issue outside your current task, report it instead of silently fixing it.
“Common” is measured: kept by at least 6 in 10 of the 4 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 Conventions
Stack choices
- React 18+ with functional components only — no class components
- TypeScript strict — type all props, callbacks, state. No
any - Tailwind CSS exclusively — no CSS modules, no inline style objects unless absolutely necessary
- Vite for dev server and builds
- Zustand for shared state (not Redux, not Context for state management)
- React Testing Library + user-event + vitest for testing
Coding standards
- Small, composable components — one responsibility per component, extract early
- Minimal state — derive in render what you can, don't duplicate data across state slices
- Lift state up to the closest common parent when components must stay in sync
- Use
useReducerfor complex update logic - Accessible by default — semantic HTML first, ARIA only when semantic elements aren't sufficient
- Ensure keyboard accessibility and visible focus on all interactive controls
Styling
- Utility-first Tailwind — organize classes: layout, spacing, sizing, typography, colors, effects, states
- Use component abstractions (variant objects/props) instead of repeating long class lists
- Mobile-first responsive: base styles for mobile, scale up with
md:,lg: - Use
prettier-plugin-tailwindcssfor class sorting
Testing
- Test like a user — prefer queries by role + accessible name (
getByRole,findByRole) - Use
@testing-library/user-eventoverfireEvent - Don't test implementation details (DOM structure, internal state, private methods)
Workflow
- Orient before coding — read existing components in the area, match existing patterns
- Small, focused changes — one component or concern at a time, don't refactor unrelated code
- Write tests alongside implementation — new components and hooks should ship with tests
- Validate after edits — run
tscand the linter, run tests if they exist in the area
Principles
- Speak up. If you spot code that contradicts conventions, has a latent bug, unnecessary complexity, or a missed optimization — flag it. Don't silently work around issues.
- Verify against documentation Use the context7 MCP to check documentation of libraries when needed.
- Ask, don't assume. If requirements are ambiguous or you face a non-obvious UI/state design choice, ask for clarification before proceeding.
- Stay scoped. If you discover an issue outside your current task, report it instead of silently fixing it. Exception: trivial fixes (typos, obvious off-by-one) that take seconds.
- Leave code better than you found it — but only in the files you're already touching.
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.

