← 返回 Skills 市场
React Best Practices
作者
Tony Simons
· GitHub ↗
· v1.0.0
· MIT-0
116
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agentic-atlas-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...
使用说明 (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:
- 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+)
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentic-atlas-react-best-practices - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentic-atlas-react-best-practices触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 116 次。
如何安装 React Best Practices?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentic-atlas-react-best-practices」即可一键安装,无需额外配置。
React Best Practices 是免费的吗?
是的,React Best Practices 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
React Best Practices 支持哪些平台?
React Best Practices 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 React Best Practices?
由 Tony Simons(@asimons81)开发并维护,当前版本 v1.0.0。
推荐 Skills