agentleFS
jgamaraalvjgamaraalv/delivery-loop/.claude/skills/react-best-practices/SKILL.md

react-best-practices

Skill4 starsChanged 5 months agoMITView on GitHub

React/Next.js best-practices reviewer for TSX/JSX. Triggers when writing or reviewing React components to check structure, hooks, accessibility, performance, and TypeScript patterns.

38 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use parallel-agents, python-best-practices and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • parcadeiSkill

    parallel-agents

    Parallel Agent Orchestration

    Also in 3 projects that use this

  • jefflesterSkill

    python-best-practices

    Python development best practices including PEP 8 style guidelines, type hints, docstring conventions, and common patterns. Use when writing or modifying Python code.

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 7 projects that use this

  • xfstudioSkill

    clean-code

    Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

    Also in 3 projects that use this

  • ttmouseSkill

    notebooklm

    Automate Google NotebookLM - create notebooks, add sources, generate podcasts/videos/quizzes, download artifacts. Supports browser-based content extraction for anti-crawler platforms (Twitter/X, LinkedIn, etc.). Activates on explicit /notebooklm or intent like "create a podcast about X

    Also in 3 projects that use this

  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 6 projects that use this

The file

Files
SKILL.md

Vercel React Best Practices

Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 64 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

Rule Categories by Priority

PriorityCategoryImpactPrefixReference
1Eliminating WaterfallsCRITICALasync-references/eliminating-waterfalls.md
2Bundle Size OptimizationCRITICALbundle-references/bundle-size.md
3Server-Side PerformanceHIGHserver-references/server-performance.md
4Client-Side Data FetchingMEDIUM-HIGHclient-references/client-data-fetching.md
5Re-render OptimizationMEDIUMrerender-references/rerender-optimization.md
6Rendering PerformanceMEDIUMrendering-references/rendering-performance.md
7JavaScript PerformanceLOW-MEDIUMjs-references/javascript-performance.md
8Advanced PatternsLOWadvanced-references/advanced-patterns.md

References

Each file is loaded on demand — read one only when the task needs that depth (progressive disclosure).

  • references/eliminating-waterfalls.md — parallelize independent async work (Promise.all, better-all), defer await into the branch that needs it, stream with Suspense, and start promises early in API routes/Server Actions · read when touching async data flow, await chains, API routes, or Server Actions.
  • references/bundle-size.md — import directly (no barrel files), next/dynamic for heavy components, defer third-party scripts past hydration, load modules conditionally, and preload on user intent · read when reducing bundle size, code-splitting, or adding third-party/analytics scripts.
  • references/server-performance.md — authenticate server actions, dedupe with React.cache()/LRU, hoist static I/O, parallelize fetches, minimize RSC prop serialization, and use after() for non-blocking work · read when writing Server Components, Server Actions, or RSC data fetching.
  • references/client-data-fetching.md — SWR request deduplication, shared/passive global event listeners, and versioned, minimal localStorage · read when fetching on the client, attaching window/document listeners, or persisting to storage.
  • references/rerender-optimization.md — subscribe narrowly (defer reads, derived booleans), derive state during render not effects, functional/lazy useState, React.memo correctly, split hooks, transitions/useDeferredValue, and refs for transient values · read when diagnosing or preventing unnecessary re-renders and effect churn.
  • references/rendering-performance.md — hoist static JSX, content-visibility/Activity for offscreen work, animate wrappers not SVGs, SVG precision, explicit conditional rendering, hydration without flicker, and resource/script hints · read when optimizing render cost, hydration flicker, SVG/animation, or <script>/preload tags.
  • references/javascript-performance.md — index maps and Set/Map O(1) lookups, cached property/function/storage reads, single-pass iteration (flatMap, combined loops), early exits, hoisted RegExp, loop-based min/max, and toSorted · read when optimizing hot loops or data-structure-heavy JS.
  • references/advanced-patterns.md — store event handlers in refs, initialize once per app load, and useLatest/useEffectEvent for stable callback refs · read when stabilizing callback identity or guarding one-time initialization.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.