Figma design verification gate. Opens the actual Figma design page via Playwright, extracts structure via visible text/HTML (low token cost), then takes ONE targeted screenshot for visual spot-check. MUST pass before any other code-review doctors run. Trigger: Figma design verification visual comparison design-to-code UI match.
Internationalization compliance detection. Scans JSX for hardcoded English text (missing t() function), ensuring all user-visible text goes through i18next translation. Technical attributes (URLs, test IDs) are exempt. Trigger: i18n internationalization hardcoded string t() translation locale.
React code quality validation. PRIMARY: runs npx react-doctor@0.7.6 (security, performance, correctness, architecture, a11y, bundle size). SUPPLEMENTARY: project-specific convention checks (Redux typed hooks, TanStack Query key factories, React Hook Form, console.log, any type). Trigger: React code quality scan triage cleanup anti-pattern.
Code Review Orchestrator. GATE: figma-doctor verifies design spec match first. On PASS, loads 6 sub-skills in parallel based on scope (frontend|backend|full-stack): typecheck-doctor, react-doctor, style-doctor, boundary-doctor, i18n-doctor, backend-doctor. Each sub-skill is independently composable and can be loaded via use_skill. Trigger: code review PR feedback quality check automated scans anti-pattern detection.
Styling violation detection. Covers hex colors (forbidden), raw Tailwind color names (warning), CSS variable bypass (forbidden), magic numbers (pixel/blur values, warning), Prettier format check (warning). All based on @pawhaven/design-system design token spec. Trigger: style CSS hex color magic number CSS variable bypass design token Prettier format.
Backend code quality detection. Covers: console.log in backend (forbidden, use Logger service), TypeScript any type (forbidden). All Blocking. Trigger: backend NestJS console.log any type backend code quality.
Import boundary & package dependency direction detection. Covers cross-feature imports (forbidden), packages importing feature code (forbidden), ui -> frontend-core dependency inversion (forbidden), backend cross-module internal imports (forbidden). All Blocking. Trigger: import boundary cross-feature cross-module package dependency direction module isolation.
TypeScript type check validation. Dynamically discovers all projects with tsconfig.json and runs pnpm typecheck on each. Ensures zero type errors. Any project failure = Blocking. Trigger: typecheck TypeScript type error compile error tsc build.