react-best-practices
Audits React code for performance, bundle size, and best practices. Use when reviewing React code, auditing bundle size, finding performance issues, checking React 18+ patterns, or evaluating a React codebase. NOT for: non-React projects, backend Node.js code, or CSS-only reviews.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/asimons81/agentic-atlas-react-best-practicesReact Best Practices Skill
Audits React applications for performance, bundle size, and React 18+ best practices.
Instructions
When reviewing or auditing React code:
- Run the audit against the specified code or repository
- Check against the 40+ auditable rules (see below)
- Report findings with severity (error, warning, info)
- Provide actionable fix suggestions with before/after code examples
- For performance issues, identify the root cause and recommended optimization
- For bundle issues, suggest code splitting or lazy loading strategies
Auditable Rules (Sample)
Performance
no-missing-deps: Hook dependencies must be completeavoid-inline-objects-in-jsx: Inline objects cause unnecessary re-rendersprefer-useMemo: Expensive computations should use useMemoprefer-useCallback: Callbacks passed to children should use useCallback
React 18+
prefer-use client directive: Server Components complianceno-unnecessary-fragments: Avoid unnecessary fragment wrappersrequire-useTransition: Long renders should use useTransition
Bundle Size
no-bare-imports: Use named imports over namespace importsavoid-default-imports: Default imports prevent tree shakingcheck-duplicate-packages: Duplicate package versions inflate bundle
Accessibility
require-aria-labels: Interactive elements need ARIA labelsrequire-keyboard-handlers: Click handlers need keyboard equivalents
Output Format
{
"file": "src/components/UserProfile.tsx",
"rules": [
{
"rule": "no-missing-deps",
"severity": "error",
"line": 42,
"message": "Missing dependency 'userId' in useEffect",
"fix": "Add userId to dependency array"
}
],
"summary": { "errors": 2, "warnings": 5, "info": 1 }
}
Example
User: "Audit our React codebase for performance issues"
→ Run audit → Report: 3 errors (missing deps, inline objects), 7 warnings → Provide fixes for each
Dependencies
Requires: Node.js, project with React 16+ (for React 18+ rules, requires React 18+)
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-asimons81-agentic-atlas-react-best-practices": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
frontend-design
Generates production-ready UI components from natural language. Use when the user asks to design a component, create a button, build a form, prototype a layout, or generate React/Tailwind CSS code. NOT for: backend logic, API design, database schema, or non-UI tasks.
securityvitals
Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.
sealvera
Tamper-evident audit trail for AI agent decisions. Use when logging LLM decisions, setting up AI compliance, auditing agents for EU AI Act, HIPAA, GDPR or SOC 2, or when a user asks about AI decision audit trails, explainability, or SealVera.
doc-gap-finder
扫描文档目录、标题结构与文件分布,找缺失章节、重复内容和过时区域。;use for docs, audit, knowledge workflows;do not use for 读取无权限目录, 直接修改原文档.
cron-job-guardian
检查 cron 或 timer 配置中的频率、幂等、重试、日志与并发风险。;use for cron, timer, ops workflows;do not use for 直接启停生产任务, 替代真正监控.