react-best-practices
React and Next.js performance optimization guidelines.
Skill by 5DLabsInc
Chalk Labs
Need help deploying react-best-practices?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/5dlabsinc-react-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/react-best-practices
What's inside
- Skill name
react-best-practices- Description
- React and Next.js performance optimization guidelines. Use when writing, reviewing, or refactoring React/Next.js code. Applies to Blaze (web), Spark (desktop), and Tap (mobile) agents.
- License
- AGPL-3.0
- Instructions
- 608 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 608 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# React Best Practices
Comprehensive performance optimization guide for React and Next.js applications. Contains 45+ rules across 8 categories, prioritized by impact.
## When to Use
Reference these guidelines when:
- Writing new React components or Next.js pages
- Implementing data fetching (client or server-side)
- Reviewing code for performance issues
- Refactoring existing React/Next.js code
- Optimizing bundle size or load times
**Relevant Agents:** Blaze (React/Next.js), Spark (Electron), Tap (Expo/React Native)
---
## Rule Categories by Priority
| Priority | Category | Impact |
|----------|----------|--------|
| 1 | Eliminating Waterfalls | CRITICAL |
| 2 | Bundle Size Optimization | CRITICAL |
| 3 | Server-Side Performance | HIGH |
| 4 | Client-Side Data Fetching | MEDIUM-HIGH |
| 5 | Re-render Optimization | MEDIUM |
| 6 | Rendering Performance | MEDIUM |
| 7 | JavaScript Performance | LOW-MEDIUM |
---
## 1. Eliminating Waterfalls (CRITICAL)
Waterfalls are the #1 performance killer. Fix these first.
### Move await into branches
**Bad:**
```typescript
async function handleRequest(userId: string, skipProcessing: boolean) {
const userData = await fetchUserData(userId); // Always waits
if (skipProcessing) {
return { skipped: true }; // Waited for nothing
}
return processUserData(userData);
}
```
**Good:**
```typescript
async function handleRequest(userId: string, skipProcessing: boolean) {
if (skipProcessing) {
return { skipped: true }; // Returns immediately
}
const userData = await fetchUserData(userId);
return processUserData(userData);
}
```
### Parallelize independent operations
**Bad:**
```typescript
const user = await fetchUser(id);
const posts = await fetchPosts(id);
const comments = await fetchComments(id);
// Total time: user + posts + comments
```
**Good:**
```typescript
const [user, posts, comments] = await Promise.all([
fetchUser(id),
fetchPosts(id),
fetchComments(id),
]);
// Total time: max(user, posts, comments)
```
### Start promises early, await late
**Bad:**
```typescript
export async function GET() {
const data = await fetchData(); // Blocks immediately
const transformed = transform(data);
return Response.json(transformed);
}
```
**Good:**
```typescript
export async function GET() {
const dataPromise = fetchData(); // Start immediately
// ... do other setup work ...
const data = await dataPromise; // Await when needed
return Response.json(transform(data));
}
```
### Use Suspense boundaries for streaming
```tsx
<Suspense fallback={<Loading />}>
<SlowComponent />
</Suspense>
```
---From 5DLabsInc/cto, AGPL-3.0.
More from 5DLabsInc/cto
- 0.474score
linear-agent-api
5DLabsInc
Linear Agent API expertise - sessions, activities, signals, and best practices.
SkillCFreshness: CClaude Code +9 - 0.474score
telemetry
5DLabsInc
CTO observability stack expertise - Prometheus metrics, Loki logs, Grafana dashboards.
SkillCFreshness: CClaude Code +9 - 0.474score
systematic-debugging
5DLabsInc
Systematic debugging expertise - 4-phase root cause process, evidence gathering, and hypothesis testing.
SkillCFreshness: CClaude Code +9 - 0.474score
ci-remediation
5DLabsInc
CI remediation and PR health monitoring.
SkillCFreshness: CClaude Code +9 - 0.474score
cto-platform
5DLabsInc
CTO Platform lifecycle expertise - Play workflow orchestration, intake processing, MCP tools, and agent sequencing.
SkillCFreshness: CClaude Code +9 - 0.474score
healer
5DLabsInc
Healer monitoring expertise - detection patterns, API endpoints, dual-model architecture, and remediation workflows.
SkillCFreshness: CClaude Code +9 - 0.471score
colosseum-copilot
colosseum
Research Solana/crypto startup opportunities using builder project history, crypto archives, investor theses, and market signals.
SkillCFreshness: CClaude Code +9 - 0.471score
verification-before-completion
5DLabsInc
Verification discipline - evidence-based completion claims, running verification commands before asserting success.
SkillCFreshness: CClaude Code +9 - 0.469score
better-auth-electron
5DLabsInc
Better Auth integration for Electron desktop apps with secure IPC, context isolation, and encrypted session storage
SkillCFreshness: CClaude Code +9 - 0.469score
anime-js
5DLabsInc
Anime.js animation patterns for web interfaces including timelines, staggering, and motion design.
SkillCFreshness: CClaude Code +9 - 0.445score
test-driven-development
5DLabsInc
Test-driven development discipline - RED-GREEN-REFACTOR cycle with strict enforcement.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 26, 2026 (6 months ago)
- Last release
- May 31, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/5DLabsInc/cto
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from 5DLabsInc
- 0.474score
telemetry
5DLabsInc
CTO observability stack expertise - Prometheus metrics, Loki logs, Grafana dashboards.
SkillCFreshness: CClaude Code +9 - 0.474score
cto-platform
5DLabsInc
CTO Platform lifecycle expertise - Play workflow orchestration, intake processing, MCP tools, and agent sequencing.
SkillCFreshness: CClaude Code +9 - 0.474score
healer
5DLabsInc
Healer monitoring expertise - detection patterns, API endpoints, dual-model architecture, and remediation workflows.
SkillCFreshness: CClaude Code +9 - 0.474score
linear-agent-api
5DLabsInc
Linear Agent API expertise - sessions, activities, signals, and best practices.
SkillCFreshness: CClaude Code +9 - 0.474score
systematic-debugging
5DLabsInc
Systematic debugging expertise - 4-phase root cause process, evidence gathering, and hypothesis testing.
SkillCFreshness: CClaude Code +9 - 0.474score
ci-remediation
5DLabsInc
CI remediation and PR health monitoring.
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get react-best-practices running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
react-best-practices skill. Agent Mart. https://agentmart.dev/skills/5dlabsinc-react-best-practices (last updated 2026-10-24)