Vercel react best practices
Skill kimtth/agent-skill-100-lines-or-less/skills/vercel-react-best-practices
Use when: write or review React/Next.js code for performance — waterfalls, re-renders, bundle size.From its SKILL.md
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill vercel-react-best-practicesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 227 tokens by cl100k_base, as published. Nobody here has run it
Goal: production-quality React, not just code that renders.
Use for:
- slow pages, janky interactions, or large bundles
- reviewing components for performance regressions
- deciding when memoization actually helps
Workflow:
- Find data-fetching waterfalls; parallelize independent requests.
- Move work to the server; keep client components minimal.
- Measure before memoizing; add useMemo/useCallback/memo only with cause.
- Audit bundle: drop barrel imports and heavy client-only libraries.
- Stabilize props and keys to avoid needless re-renders.
- Verify with a profiler and bundle analysis, not intuition.
High-impact rules:
- fetch in parallel, not in nested awaits
- prefer server components; mark client boundaries narrowly
- lazy-load heavy, below-the-fold, or rarely-used code
- lift state only as high as it needs to go
Rules:
- measure before and after every optimization
- do not memoize cheap renders; it adds cost and noise
- keep client/server boundaries explicit and small
- correctness first; optimize the real bottleneck only
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.