Enforces React-specific patterns: functional components with hooks, TypeScript prop interfaces, CSS Modules co-location, React Testing Library behavioral tests. Use when creating React components, writing custom hooks, structuring component folders, applying RTL test patterns, or wiring TypeScript prop types. Trigger terms: React, .tsx, component, hook, RTL, jsx, useState, useEffect, prop interface
75
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
ComponentName.tsx inside its feature folder, co-located with ComponentName.module.scss and ComponentName.test.tsx.ComponentNameProps; PascalCase component names..module.scss), Sass variables/mixins pulled from the shared libraries, CSS custom properties for theming.strict stays enabled in tsconfig.json; no as casts.pnpm lint
pnpm typecheck # use `pnpm tsc --noEmit` if the alias is absent
pnpm test # single test: pnpm test -- -t <name>
pnpm buildSanitize user-supplied HTML (e.g. dompurify) before rendering. Client-side validation is never sufficient on its own — see api-patterns for server validation.
fa0c341
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.