From beagle-react
Reviews changed React/TypeScript frontend code, auto-detects technologies (Remix, Zustand, shadcn/ui, etc.), and loads specialized sub-skills for targeted review. Optionally parallelizes with agents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/beagle-react:review-frontendThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- `--parallel`: Spawn specialized subagents per technology area
--parallel: Spawn specialized subagents per technology areagit diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '\.(tsx?|jsx?|mjs|cjs|css)$|^(remix|vite)\.config\.'
# Detect Remix v2 (any official adapter). When matched, the Remix-specific
# surface is delegated to beagle-remix-v2:review-remix-v2 in Step 4.
grep -E '"@remix-run/(react|node|cloudflare|deno|serve)"' package.json | head -3
# Detect React Flow
grep -r "@xyflow/react\|ReactFlow\|useNodesState" --include="*.tsx" -l | head -3
# Detect Zustand
grep -r "from 'zustand'\|create\(\(" --include="*.ts" --include="*.tsx" -l | head -3
# Detect Tailwind v4
grep -r "@theme\|@layer theme" --include="*.css" -l | head -3
# Check for test files
git diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '\.test\.tsx?$'
Load beagle-react:review-verification-protocol before any substantive judgment on code.
Pass before Step 5: The skill is loaded (or its checklist is open in context). Do not classify severity or write findings until this gate clears.
Use the Skill tool to load each applicable skill (e.g., Skill(skill: "beagle-react:react-router-code-review")).
Remix v2 branch (Step 2 detected @remix-run/* in package.json):
beagle-remix-v2:review-remix-v2 — umbrella orchestrator that loads all six Remix v2 area review skills (routing, data-flow, forms, error-boundaries, perf/SSR, meta+sessions) with its own detection telemetry. Run it for the Remix-specific surface and consolidate its findings into this review's output.beagle-react:react-router-code-review — Remix v2 sits on React Router v6 but routes through Remix's route module conventions, which beagle-remix-v2:remix-v2-routing-review (loaded via the umbrella) covers in that context.beagle-react:shadcn-code-review and the conditional skills below — they're orthogonal to the Remix layer and apply to component/styling/state code regardless of router.Non-Remix branch (default):
beagle-react:react-router-code-reviewbeagle-react:shadcn-code-reviewConditionally load based on detection (both branches):
| Condition | Skill |
|---|---|
| @xyflow/react detected | beagle-react:react-flow-code-review |
| Zustand detected | beagle-react:zustand-state |
| Tailwind v4 detected | beagle-react:tailwind-v4 |
| Test files changed | beagle-react:vitest-testing |
Sequential (default):
Parallel (--parallel flag):
Task toolBefore reporting any issue:
Pass before promoting to Critical/Major: For that item, (2)–(4) are satisfied with a concrete artifact when applicable — e.g. opened file at FILE:LINE, grep/search output for references, or cited parent/framework code — not only diff context.
You MUST report ALL issues across ALL categories (style, logic, types, tests, security, performance) in a single review pass. Do not hold back issues for later rounds.
Before submitting findings, ask yourself:
If yes to either: include those anticipated downstream issues NOW, in this review, so the author can address everything at once.
Fixes to existing code should be flagged at their real severity regardless of size.
However, requests for net-new code that didn't exist before the diff must be classified as Informational:
These are improvement suggestions for the author to consider in future work, not review blockers.
If this is a re-review after fixes were applied:
## Review Summary
[1-2 sentence overview of findings]
## Issues
### Critical (Blocking)
1. [FILE:LINE] ISSUE_TITLE
- Issue: Description of what's wrong
- Why: Why this matters (bug, a11y, perf, security)
- Fix: Specific recommended fix
### Major (Should Fix)
2. [FILE:LINE] ISSUE_TITLE
- Issue: ...
- Why: ...
- Fix: ...
### Minor (Nice to Have)
N. [FILE:LINE] ISSUE_TITLE
- Issue: ...
- Why: ...
- Fix: ...
### Informational (For Awareness)
N. [FILE:LINE] SUGGESTION_TITLE
- Suggestion: ...
- Rationale: ...
## Good Patterns
- [FILE:LINE] Pattern description (preserve this)
## Verdict
Ready: Yes | No | With fixes 1-N (Critical/Major only; Minor items are acceptable)
Rationale: [1-2 sentences]
After fixes are applied, run:
npm run lint
npm run typecheck
npm run test
All checks must pass before approval.
Advance in order; do not skip a pass condition by restating it informally.
beagle-react:review-verification-protocol and beagle-react:shadcn-code-review are loaded, and either (a) Step 2 found Remix v2 and beagle-remix-v2:review-remix-v2 is loaded (without beagle-react:react-router-code-review), or (b) Step 2 found no Remix v2 and beagle-react:react-router-code-review is loaded — before first severity judgment.FILE:LINE that exists in the tree and meets the Step 6 pass rule for that finding type.npx claudepluginhub existential-birds/beagle --plugin beagle-reactReviews frontend files (JSX, TS, JS) for code quality, performance, and business logic violations using a structured checklist. Supports pending-change and file-targeted reviews.
Reviews React components for architecture, hooks usage, React 19 patterns, state management, performance optimization, accessibility, and TypeScript. Use before merging PRs, after new features, or for validation.
Reviews frontend code across 8 dimensions: architecture, type safety, accessibility, style, performance, testability, state management, and security. Outputs a graded report with blocking issues and recommendations.