.agent/skills/react-component-expert/SKILL.md
Active workflow skill for React component architecture, hook patterns, render performance, and composition support. Grounded in the official React documentation with live-docs-first doctrine. Use when the working agent needs React expertise for active tasks — distinct from the react-component-reviewer, which is a read-only assessment specialist.
npx skillsauth add oaknational/oak-open-curriculum-ecosystem react-component-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Active workflow skill for React component architecture and implementation work. This skill supports the working agent during tasks that involve component design, hook patterns, render performance, prop APIs, composition, or server/client component boundaries — it does not replace the react-component-reviewer, which provides independent read-only assessment.
Use this skill when the working agent needs to:
react-component-revieweraccessibility-expertdesign-system-expertmcp-expertcode-reviewertest-reviewerThis skill follows the ADR-129 standard doctrine hierarchy:
| Document | Purpose |
|----------|---------|
| docs/architecture/architectural-decisions/149-frontend-specialist-reviewer-gateway-cluster.md | Cluster definition and MCP boundary rule |
| docs/architecture/architectural-decisions/147-browser-accessibility-as-blocking-quality-gate.md | Components must produce accessible HTML |
| docs/architecture/architectural-decisions/148-design-token-architecture.md | Components consume tokens via CSS custom properties |
| Document | Load when |
|----------|-----------|
| docs/governance/accessibility-practice.md | Building accessible component patterns |
| docs/governance/design-token-practice.md | Consuming tokens in component styles |
| docs/architecture/architectural-decisions/141-mcp-apps-standard-primary.md | Building MCP App view components |
| docs/architecture/architectural-decisions/129-domain-specialist-capability-pattern.md | Understanding the triplet pattern |
Determine whether you are designing a new component, refactoring an existing one, or implementing a specific pattern. Identify the rendering context (server, client, MCP App).
Use WebFetch to consult the React docs (https://react.dev/) for the relevant pattern. Check the API reference for correct hook and component usage.
Apply the first question: could this component be simpler? Prefer:
Write component tests first. Cover the component's behaviour, not its implementation. Test accessibility at the component level (semantic HTML, keyboard interaction).
Check for unnecessary re-renders. Use React DevTools profiler if available. Memoise only where measured, not speculatively.
exhaustive-deps complains, the dependency array is wrong — fix the dependencies, not the lint.any in prop types. Per the repo's cardinal rule, types flow from schemas. Use proper TypeScript types.react-component-reviewer for independent assessment.tools
When and how to use git worktrees for isolated work.
documentation
TSDoc and documentation workflow for canonical source comments, README updates, and ADR touchpoints.
development
Structured debugging workflow: reproduce, isolate, hypothesise, verify, fix, regression test.
data-ai
Load the shared thorough start-right workflow from `.agent/skills/start-right-thorough/shared/start-right-thorough.md`.