by vercel-labs
React 应用程序经常面临性能问题,如不必要的重新渲染、大型打包体积和串行数据获取瀑布流。本技能提供来自 Vercel 工程团队的 45 条优先级规则,帮助消除这些瓶颈,构建高性能的 Web 应用程序。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 vercel-react-best-practices 技能" 开始使用
=== vercel-react-best-practices 技能 === 作者: vercel-labs 描述: React 应用程序经常面临性能问题,如不必要的重新渲染、大型打包体积和串行数据获取瀑布流。本技能提供来自 Vercel 工程团队的 45 条优先级规则,帮助消除这些瓶颈,构建高性能的 Web 应用程序。 使用方法: 1. 调用技能: "使用 vercel-react-best-practices 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 vercel-react-best-practices 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
A structured repository for creating and maintaining React Best Practices optimized for agents and LLMs.
rules/ - Individual rule files (one per rule)
_sections.md - Section metadata (titles, impacts, descriptions)_template.md - Template for creating new rulesarea-description.md - Individual rule filessrc/ - Build scripts and utilitiesmetadata.json - Document metadata (version, organization, abstract)AGENTS.md - Compiled output (generated)test-cases.json - Test cases for LLM evaluation (generated)Install dependencies:
pnpm install
Build AGENTS.md from rules:
pnpm build
Validate rule files:
pnpm validate
Extract test cases:
pnpm extract-tests
rules/_template.md to rules/area-description.mdasync- for Eliminating Waterfalls (Section 1)bundle- for Bundle Size Optimization (Section 2)server- for Server-Side Performance (Section 3)client- for Client-Side Data Fetching (Section 4)rerender- for Re-render Optimization (Section 5)rendering- for Rendering Performance (Section 6)js- for JavaScript Performance (Section 7)advanced- for Advanced Patterns (Section 8)pnpm build to regenerate AGENTS.md and test-cases.jsonEach rule file should follow this structure:
---
title: Rule Title Here
impact: MEDIUM
impactDescription: Optional description
tags: tag1, tag2, tag3
---
## Rule Title Here
Brief explanation of the rule and why it matters.
**Incorrect (description of what's wrong):**
```typescript
// Bad code example
Correct (description of what's right):
// Good code example
Optional explanatory text after examples.
Reference: Link
_ are special (excluded from build)area-description.md (e.g., async-parallel.md)CRITICAL - Highest priority, major performance gainsHIGH - Significant performance improvementsMEDIUM-HIGH - Moderate-high gainsMEDIUM - Moderate performance improvementsLOW-MEDIUM - Low-medium gainsLOW - Incremental improvementspnpm build - Compile rules into AGENTS.mdpnpm validate - Validate all rule filespnpm extract-tests - Extract test cases for LLM evaluationpnpm dev - Build and validateWhen adding or modifying rules:
_template.md structurepnpm build to regenerate AGENTS.md and test-cases.jsonView Count
0
Download Count
0
Favorite Count
0
Quality Score
62