React Component Reviewer
Skill9 starsChanged 8 months agoMITView on GitHub
Analyzes React components for performance, accessibility, and modern hook usage.
In this repository61 other files it gives its agents.
- Accessibility Audit HelperSkill
- Agent Context File WriterSkill
- Agent Evaluation Framework BuilderSkill
- AI Feature Spec WriterSkill
- API Documentation GeneratorSkill
- REST API Endpoint DesignerSkill
- Architecture ExplainerSkill
- Article RepurposerSkill
- Auth Flow PlannerSkill
- Blog Outline GeneratorSkill
- Breaking Change DetectorSkill
- Bug Root Cause AnalyzerSkill
- Caching Strategy AdvisorSkill
- Changelog CuratorSkill
- Code Review ChecklistSkill
- Database Schema ReviewerSkill
- Docker Compose GeneratorSkill
- Documentation Gap FinderSkill
- Edge Case DiscoverySkill
- Error Log SummarizerSkill
- FAQ GeneratorSkill
- Flaky Test AnalyzerSkill
- Form UX OptimizerSkill
- Git Commit WriterSkill
- Hallucination Risk ReviewerSkill
- Hybrid Search ArchitectSkill
- Incident Postmortem WriterSkill
- Issue to PR PlannerSkill
- Landing Page Copy ImproverSkill
- LangGraph State Machine DesignerSkill
- LLM Cost OptimizerSkill
- LLM Tracing and Observability SetupSkill
- MCP Integration AssistantSkill
- MCP Server BuilderSkill
- Migration Guide WriterSkill
- Newsletter Summary WriterSkill
- Observability ChecklistSkill
- Playwright Test BuilderSkill
- PR Description WriterSkill
- Prompt Injection Defense AuditorSkill
- Prompt RefinerSkill
- Prompt Version Control WorkflowSkill
- RAG Chunking Strategy AdvisorSkill
- RAG Workflow PlannerSkill
- README WriterSkill
- Refactor PlannerSkill
- Release Notes GeneratorSkill
- Responsive Layout ReviewerSkill
- SDK Quickstart WriterSkill
- SEO Content OptimizerSkill
- SEO Metadata GeneratorSkill
- Social Post Thread WriterSkill
- Sprint Summary GeneratorSkill
- SQL Query OptimizerSkill
- Stack Trace AnalyzerSkill
- Technical Blog Post WriterSkill
- Tech Debt AuditorSkill
- Troubleshooting Guide BuilderSkill
- Unit Test ImproverSkill
- Unit Test WriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Add this prompt to your .cursorrules file or save it as a custom prompt in the Cursor AI pane.
- Distinctive: line 36
When asked to review a React component, follow these exact steps:
- Very specific: line 38
Analyze State & Renders: Look for state that could be derived.
- Very specific: line 39
Analyze Hooks: Ensure useEffect dependencies are complete and correct.
- Very specific: line 40
Analyze Accessibility: Verify that interactive elements use <button> or <a> with proper href.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React Component Reviewer
What this skill does
This skill directs the agent to review a specific React component or file against modern React best practices. It specifically checks for:
- Unnecessary re-renders (missing
useMemo/useCallback) - Accessibility violations (missing ARIA attributes, improper semantics)
- Stale closures in
useEffector event handlers - Prop drilling that could be solved with Context or component composition
- Proper TypeScript typing
How to use
Claude Code / Antigravity
Copy this file to .agents/skills/react-code-reviewer/SKILL.md in your project.
Then ask the agent: "Review components/MyComponent.tsx using the React Component Reviewer skill."
Cursor
Add this prompt to your .cursorrules file or save it as a custom prompt in the Cursor AI pane.
The Prompt / Instructions for the Agent
When asked to review a React component, follow these exact steps:
- Analyze State & Renders: Look for state that could be derived. Identify any expensive calculations not wrapped in
useMemo. Look for object/function definitions inside the render body that are passed as props to memoized children. - Analyze Hooks: Ensure
useEffectdependencies are complete and correct. Check for race conditions in asynchronous effects. - Analyze Accessibility: Verify that interactive elements use
<button>or<a>with properhref. Ensure images havealttext. Check for keyboard navigability. - Format Output: Present your review in the following markdown format:
### 🚀 Performance
- [List findings here]
### ♿ Accessibility
- [List findings here]
### 🏗️ Architecture & Best Practices
- [List findings here]
### 💡 Suggested Refactor
Provide the refactored code block here.Example
Input to Agent:
"Please review the UserProfile.tsx component."
Output from Agent:
🚀 Performance
- The
formatDatefunction is defined inside the component and passed to a child, causing unnecessary re-renders. It should be moved outside the component or wrapped inuseCallback.♿ Accessibility
- The "Save" div acts as a button but lacks
role="button"andtabIndex={0}. It should be a<button>element.(...continues with suggested refactor)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

