React performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring React code to ensure optimal performance patterns. Triggers on tasks involving React components, data fetching, bundle optimization, or performance improvements.
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)client- for Client-Side Data Fetching (Section 3)rerender- for Re-render Optimization (Section 4)rendering- for Rendering Performance (Section 5)js- for JavaScript Performance (Section 6)advanced- for Advanced Patterns (Section 7)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.jsonOriginally created by @shuding.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer