react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. 57 rules across 8 categories for writing, reviewing, and refactoring React code.
Why use this skill?
Optimize React and Next.js apps with 57 expert rules from Vercel Engineering. Fix waterfalls, reduce bundle size, and improve performance automatically.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/react-best-practicesWhat This Skill Does
The react-best-practices skill provides a standardized framework for optimizing React and Next.js applications based on Vercel Engineering's rigorous performance standards. It enforces 57 distinct rules organized across eight critical categories, focusing on architectural efficiency and runtime performance. By integrating this skill, your OpenClaw agent gains the capability to automatically audit code, detect performance bottlenecks such as request waterfalls, suggest code-splitting strategies, and provide architectural guidance for Server Components (RSC). It acts as a continuous quality gate for your codebase, ensuring that your application maintains low bundle sizes and optimal Core Web Vitals.
Installation
To integrate the skill into your development environment, run the following command in your terminal:
npx clawhub@latest install react-best-practices
Use Cases
This skill is ideal for developers and teams working on complex Next.js projects. Use it when:
- Conducting code reviews to ensure new features follow performance best practices.
- Refactoring legacy components that cause excessive re-renders or layout shifts.
- Optimizing server-side data fetching to eliminate sequential request waterfalls.
- Analyzing bundle analysis reports to identify bloated dependencies.
- Implementing advanced patterns such as Suspense boundaries for streaming SSR.
- Troubleshooting production performance issues related to hydration or client-side JavaScript execution.
Example Prompts
- "Analyze my current profile page component and suggest optimizations to eliminate the request waterfall between the user data fetch and the user settings fetch using
async-parallelrules." - "Review the current import structure in my layout file and identify which modules should be converted to
next/dynamicimports to improve initial bundle size." - "Refactor this component to minimize re-renders by applying
rerender-rules and implementing proper memoization strategies for the expensive child calculations."
Tips & Limitations
- Prioritize CRITICAL: Always start with the 'Eliminating Waterfalls' and 'Bundle Size Optimization' categories, as they provide the highest impact on perceived load speed.
- Automation Caution: While the skill can suggest code changes, it is best practice to run your own integration tests after applying significant refactors to ensure no side effects are introduced.
- Contextual Awareness: Ensure the agent has full access to the file path or repository structure to provide the most accurate rule suggestions, as some patterns are highly dependent on file location and export structures.
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-wpank-react-best-practices": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
website-audit
Website Audit mit 230+ Rules für SEO, Performance, Security, Technical und Content Issues. LLM-optimierte Reports mit Health Scores und Handlungsempfehlungen.
skill-pack-composer
把多个 Skill 组合成套装,检查 slug、依赖、资源和定位冲突。;use for skills, bundle, packaging workflows;do not use for 混入重复职责的 skill, 忽略依赖冲突.
aethercore
AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.
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.
arch-optimization
OpenClaw通信协议架构优化技能包 - 提供高性能、可靠的agent间通信框架。实现大消息59%性能提升,MessagePack 35%体积减少,统一传输层架构,智能路由算法,完整错误恢复和监控体系。