src/orchestrator/skills/react-development/SKILL.md
Enforces naming conventions, prop typing patterns, file structure, and test coverage standards. Use when creating or modifying React components, custom hooks, or component tests. Trigger terms: React app, .tsx files, testing library, custom hooks, functional components
npx skillsauth add etylsarin/opencastle react-developmentInstall 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.
ComponentName.tsx in the feature folder; co-locate ComponentName.module.scss and ComponentName.test.tsxComponentNameProps with TypeScript; destructure in function signatureinterface UserCardProps { name: string; role: string }
export function UserCard({ name, role }: UserCardProps) {
return (
<div data-testid="user-card">
<h3>{name}</h3>
<span>{role}</span>
</div>
);
}
tsconfig.json. See REFERENCE.md for detailed TypeScript patterns..module.scss) co-located with components.import { render, screen } from '@testing-library/react';
import { UserCard } from './UserCard';
test('renders user info', () => {
render(<UserCard name="Alice" role="Admin" />);
expect(screen.getByText('Alice')).toBeInTheDocument();
expect(screen.getByTestId('user-card')).toBeInTheDocument();
});
Run these as part of your PR validation pipeline or locally:
pnpm lint # fixable issues: pnpm lint --fix
pnpm typecheck # run `pnpm tsc --noEmit` if alias not present
pnpm test # rerun failing tests with `pnpm test -- -t <name>`
pnpm build # ensure production build succeeds
If lint fails: run pnpm lint --fix and re-run. If typecheck fails: inspect reported files; add missing types. If tests fail: run with --runInBand to collect stack traces and reproduce locally.
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, and smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, and flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, and defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting a delegation session, running a multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves and restores session state including task progress, file changes, and delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.