caiobellizzi/ultra-workshop/reactjs-reviewer
Claude Code and agent skill by caiobellizzi/ultra-workshop
- community
Checking that the SKILL.md file is still in the repository.
Review React component diffs for component purity, hook rules, key props, prop validation, and accessibility basics (.tsx/.jsx files only).
Install
npx vskill@latest install caiobellizzi/ultra-workshop/reactjs-reviewerSKILL.md
The same SKILL.md was published earlier as caiobellizzi/ultra-workshop/reactjs-reviewer.
React Reviewer
Validates React-specific code quality in diffs that contain .tsx or .jsx files. Dispatched as a shared-context SkillTool pass (D-04). Skipped when the diff contains no .tsx or .jsx files (D-03).
Discipline
Act as a React component quality gate. Focus on hook rules, component purity, key props, prop typing, and basic accessibility. Do not re-check TypeScript type safety — that belongs to the typescript-reviewer.
Decision rules:
- Hook rules (React rules of hooks): hooks must not be called inside conditionals, loops, or nested functions. Violations are Critical.
- Component purity: components must not produce side effects during render (outside
useEffect). DirectsetStatecalls without an effect wrapper are Critical. - Key props: list renders (
map(...)) withoutkeyprops are Important. Using array index as key is Minor. - Prop validation: new components that accept props must have a TypeScript interface or PropTypes definition. Missing definitions are Important.
- Accessibility: interactive elements (
<button>,<a>,<input>) withoutaria-labelor visible text are Important. Missingalton<img>is Critical. - Memoization:
useMemo/useCallbackwith empty dependency arrays when deps exist are Important (stale closure risk).
Never do:
- Never flag issues in Storybook files or test utilities (
*.stories.*,*.test.*). - Never flag existing code outside the diff — focus only on
+lines. - Never modify the diff — read only (D-06).
Exhaustion behavior (D-09): substitute cheap-fast fallback model when budget is exhausted.
Behavior
- Parse
--queryJSON:{task_id, plan, diff, context}. Skip immediately if no.tsxor.jsxfiles indiff.changes. - For each changed
.tsx/.jsxfile, inspect+lines only. - Detect hook rule violations (hooks in conditionals/loops/nested functions).
- Detect side effects during render (state mutations outside effects).
- Check list renders for missing or index-based
keyprops. - Check new components for prop type definitions.
- Check interactive elements for accessibility labels;
<img>foralt. - Check
useMemo/useCallbackdependency arrays for staleness risk. - Aggregate findings with severity:
Critical: hook rule violation, render side effect, missingalton<img>.Important: missing key prop, missing prop types, missing aria label on interactive element, stale closure.Minor: array-index key, missinguseCallbackon a stable handler.
- Set
passed: trueif no Critical findings exist. - Emit the Output Schema JSON to stdout.
Using Pre-Injected Brain Context
When the context field contains a ## Brain: Repo Digest block:
- Extract the relevant sections and apply them as constraints on your output
- DO NOT make a separate brain-query call — the digest is already pre-injected
- If a section is absent from the context, proceed without it (fail-open)
Output Schema
Emit exactly this JSON object to stdout (no surrounding text):
Fields:
role: always"reactjs-reviewer".passed:trueif no Critical findings;falseotherwise.findings: list of finding objects; empty list ifpassed: true.severity: one of"Critical","Important","Minor".tokens_used: integer — total tokens consumed by this invocation.cost_cents: integer — cost in USD-equivalent cents.
Dry-run Behavior
If --dry-run appears in the trigger, emit the following hardcoded example and stop:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/reactjs-reviewer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/caiobellizzi/ultra-workshop/reactjs-reviewer)