ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/asimons81/agentic-atlas-react-best-practices
Or

React Best Practices Skill

Audits React applications for performance, bundle size, and React 18+ best practices.

Instructions

When reviewing or auditing React code:

  1. Run the audit against the specified code or repository
  2. Check against the 40+ auditable rules (see below)
  3. Report findings with severity (error, warning, info)
  4. Provide actionable fix suggestions with before/after code examples
  5. For performance issues, identify the root cause and recommended optimization
  6. For bundle issues, suggest code splitting or lazy loading strategies

Auditable Rules (Sample)

Performance

  • no-missing-deps: Hook dependencies must be complete
  • avoid-inline-objects-in-jsx: Inline objects cause unnecessary re-renders
  • prefer-useMemo: Expensive computations should use useMemo
  • prefer-useCallback: Callbacks passed to children should use useCallback

React 18+

  • prefer-use client directive: Server Components compliance
  • no-unnecessary-fragments: Avoid unnecessary fragment wrappers
  • require-useTransition: Long renders should use useTransition

Bundle Size

  • no-bare-imports: Use named imports over namespace imports
  • avoid-default-imports: Default imports prevent tree shaking
  • check-duplicate-packages: Duplicate package versions inflate bundle

Accessibility

  • require-aria-labels: Interactive elements need ARIA labels
  • require-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

Author@asimons81
Stars4473
Views3
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-asimons81-agentic-atlas-react-best-practices": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#react#performance#audit#bundle-size#frontend#code-quality
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

brand-butler-local-authority-engine

Brand Butler: Local Authority Engine — the white-glove SEO and AEO system for local service businesses. Use this skill immediately when the user asks about SEO rankings, backlinks, citations, site audits, Google Search Console indexing problems, competitor backlink analysis, directory submissions, schema markup, content placement articles, local map pack visibility, or AI answer engine optimization (Perplexity, ChatGPT, Google AI Overviews). Also triggers for any local business growth, online visibility, or 'why isn't my site ranking?' conversation. Works for agencies managing clients and business owners doing their own SEO. Covers HVAC, plumbing, electrical, law, dental, roofing, and any local service business. Built by Adrian Boysel.

adrianboysel 4473

undertow

Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.

8co 4473

securityvitals

Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.

bk-cm 4473

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.

ahessami123 4473

cron-job-guardian

检查 cron 或 timer 配置中的频率、幂等、重试、日志与并发风险。;use for cron, timer, ops workflows;do not use for 直接启停生产任务, 替代真正监控.

52yuanchangxing 4473