← Back to Skills Marketplace
asimons81

React Best Practices

by Tony Simons · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
116
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install agentic-atlas-react-best-practices
Description
Audits React code for performance, bundle size, and best practices. Use when reviewing React code, auditing bundle size, finding performance issues, checking...
README (SKILL.md)

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+)

Usage Guidance
This skill appears to do what it says (audit React code) and asks for nothing sensitive, but its instructions are intentionally high-level — they tell the agent to "run the audit" without specifying which tools, commands, or safe installation steps to use. Before installing or enabling it for autonomous use: (1) decide and pin the tooling the agent is allowed to run (e.g., a vetted CLI or npm package), (2) restrict the agent's ability to install arbitrary packages or execute unreviewed scripts, (3) run audits in an isolated environment or CI runner with read-only access to the repo, and (4) require manual approval for any network downloads or dependency installations. If you want stronger guarantees, ask the skill author to include explicit commands, an approved toolchain, or an install spec referencing well-known release artifacts.
Capability Analysis
Type: OpenClaw Skill Name: agentic-atlas-react-best-practices Version: 1.0.0 The skill bundle contains standard instructions for an AI agent to audit React codebases for performance, accessibility, and best practices. The instructions in SKILL.md are purely functional, aligning with the stated purpose of code review, and do not contain any evidence of malicious intent, data exfiltration, or harmful prompt injection.
Capability Assessment
Purpose & Capability
Name, description, and declared dependencies (Node.js, React project) align: auditing React code for performance and bundle size reasonably requires reading project files and running Node-based analysis.
Instruction Scope
SKILL.md correctly focuses on auditing source code and lists concrete rules to check, but it uses high-level directives like "Run the audit" without specifying tools, commands, or safe defaults. That vagueness lets an agent choose arbitrary tooling or perform installs/executables against the repository, which increases risk if the agent is allowed to act autonomously.
Install Mechanism
No install spec and no code files are present (instruction-only). This minimizes disk writes or bundled code, but also means the agent will need external tools (e.g., npm packages) at runtime; the skill doesn't mandate any particular third-party downloads.
Credentials
The skill requests no environment variables, credentials, or config paths. The declared requirements (Node.js, a React project) are proportionate to the stated purpose.
Persistence & Privilege
always is false and the skill does not request persistent system changes. Autonomous invocation is allowed (platform default) but the skill itself does not request elevated privileges or to modify other skills/config.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agentic-atlas-react-best-practices
  3. After installation, invoke the skill by name or use /agentic-atlas-react-best-practices
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the React Best Practices skill. - Audits React codebases for performance, bundle size, and compliance with React 18+ patterns. - Evaluates code against 40+ best practice rules, including accessibility and modern React features. - Provides actionable fixes with before/after code examples and severity ratings. - Outputs results in structured JSON format with summary counts. - Not suitable for backend or non-React projects.
Metadata
Slug agentic-atlas-react-best-practices
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 116 downloads so far.

How do I install React Best Practices?

Run "/install agentic-atlas-react-best-practices" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is React Best Practices free?

Yes, React Best Practices is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does React Best Practices support?

React Best Practices is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created React Best Practices?

It is built and maintained by Tony Simons (@asimons81); the current version is v1.0.0.

💬 Comments