vercel-react-best-practices

vercel-react-best-practices is a skill for Claude Code, Codex from kok-o/contextos-agents. It costs 28 tokens per session (588 once invoked), scanned A, original, Apache-2.0.

A set of guidelines for improving and reviewing the speed of React and Next.js web applications. It covers data loading, downloaded code, rendering, and which code runs in the browser.

In plain words
What is it for?
Use it when building or reviewing React or Next.js components, data fetching, or server and browser boundaries. It helps investigate a demonstrated performance problem.
Why use it?
It helps find slow user actions and avoid optimising the wrong thing. It also reduces unnecessary network delays, large browser downloads, and accidental exposure of server-only code or secrets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing React or Next.js components, data fetching, or server and browser boundaries. It helps investigate a demonstrated performance problem.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kok-o/contextos-agents/vercel-react-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kok-o/contextos-agents --skill vercel-react-best-practices
Clone the repo
git clone --depth 1 https://github.com/kok-o/contextos-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vercel-react-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/kok-o/contextos-agents/vercel-react-best-practices/github.svg)](https://agentmods.dev/skills/kok-o/contextos-agents/vercel-react-best-practices)
Your own site
<a href="https://agentmods.dev/skills/kok-o/contextos-agents/vercel-react-best-practices"><img src="https://agentmods.dev/badge/skills/kok-o/contextos-agents/vercel-react-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vercel-react-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/kok-o/contextos-agents/vercel-react-best-practices"><img src="https://agentmods.dev/badge/skills/kok-o/contextos-agents/vercel-react-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00588
Opus 5.5 $0.00011 $0.00235
Sonnet 5.5 $0.00006 $0.00118
Haiku 4.5 $0.00003 $0.00059

Measured 1mo ago against content hash 426009277395, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vercel-react-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

catalog/skills/vercel-react-best-practices/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React and Next.js performance

Overview

Apply Vercel's performance priorities to the actual React/Next.js version and execution model. This is a focused ContextOS adaptation; source provenance records the upstream guide and license. Detailed examples live in references/performance.md; read the relevant section.

When to Use

Author or review React/Next.js components, data loading, server/client boundaries, or a demonstrated performance problem. Pure visual composition belongs to frontend-design. Do not introduce Next.js conventions into a different framework.

Rules & Patterns

Inspect package versions, routing mode, React Compiler configuration and existing fetch/cache utilities. Identify the slow user action and evidence before a broad optimization. Prioritize unnecessary network waterfalls and large client bundles before small JavaScript rewrites.

Start independent requests together when their authorization and inputs are ready. Preserve ordering where an operation depends on an earlier result. Keep server-only code and secrets out of client imports; move the interactive boundary to the smallest useful component. Stream independent slow sections when the framework and UX support it.

Reduce unused or eagerly loaded client code. Use dynamic loading for genuinely deferred work and the framework's supported import optimizations. Do not replace all imports mechanically or defer content needed for the first useful screen.

Keep derived values out of unnecessary effects. Fix unstable subscriptions, render-time component definitions and expensive repeated work before adding memoization. Measure memoization or compiler behavior rather than prescribing useMemo/useCallback on every component.

Cache with explicit identity, lifetime and invalidation. Request deduplication does not authorize sharing personalized data across users or tenants. Framework defaults change: verify the installed version before changing caching behavior.

Read the full file on GitHub · 71 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 71 lines · 28 tokens per session scan A 426009277395

Subscribe to this mod's changes

vercel-react-best-practices is a skill published in the GitHub repository kok-o/contextos-agents (10 stars, last pushed 19d ago), licensed Apache-2.0. It adds 28 tokens to every session and 588 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

vercel-react-best-practices compared with skills from other repositories

vercel-react-best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vercel-react-best-practiceskok-o/contextos-agentsSkill1019d agoApache-2.0A28Claude Code, Codex
remotion-to-hyperframescalesthio/OpenMontageSkill84k14d agoAGPL-3.0A215Claude Code, Codex
gsap-reactcalesthio/OpenMontageSkill84k14d agoAGPL-3.0A68Claude Code, Codex
remotioncalesthio/OpenMontageSkill84k14d agoAGPL-3.0A44Claude Code, Codex
vercel-react-best-practicescalesthio/OpenMontageSkill84k14d agoAGPL-3.0A67Claude Code, Codex
framer-motioncalesthio/OpenMontageSkill84k14d agoAGPL-3.0A20Claude Code, Codex
vercel-composition-patternscalesthio/OpenMontageSkill84k14d agoAGPL-3.0A58Claude Code, Codex