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.
npx skills add t-code4change/nextjs-claude-skills --skill nextjs-react-best-practicesgit clone --depth 1 https://github.com/t-code4change/nextjs-claude-skillsWrote 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.
[](https://agentmods.dev/skills/t-code4change/nextjs-claude-skills/nextjs-react-best-practices)<a href="https://agentmods.dev/skills/t-code4change/nextjs-claude-skills/nextjs-react-best-practices"><img src="https://agentmods.dev/badge/skills/t-code4change/nextjs-claude-skills/nextjs-react-best-practices.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.01835 |
| Opus 5 | $0.00037 | $0.00918 |
| Sonnet 5 | $0.00015 | $0.00367 |
| Haiku 4.5 | $0.00007 | $0.00184 |
Grade A, and why
nextjs-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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React & Next.js Performance Best Practices
Source: laguagu/claude-code-nextjs-skills — Vercel Engineering, 70 rules.
Priority Order
| Priority | Category | Impact |
|---|---|---|
| 1 | Eliminating Waterfalls | CRITICAL |
| 2 | Bundle Size | CRITICAL |
| 3 | Server-side | HIGH |
| 4 | Client-side Data | MEDIUM-HIGH |
| 5 | Re-renders | MEDIUM |
| 6 | Rendering | MEDIUM |
| 7 | JavaScript | LOW-MEDIUM |
| 8 | Advanced | LOW |
1. Eliminating Waterfalls (CRITICAL)
// ❌ Sequential (300ms)
const user = await getUser(id);
const posts = await getPosts(id);
// ✅ Parallel (100ms)
const [user, posts] = await Promise.all([getUser(id), getPosts(id)]);
// ✅ Start early, await late
const userPromise = getUser(id);
const postsPromise = getPosts(id);
const [user, posts] = await Promise.all([userPromise, postsPromise]);
// ✅ Check cheap sync conditions before awaiting
async function processOrder(orderId: string) {
if (!orderId || !isValidUUID(orderId)) return null; // cheap first
return await fetchOrder(orderId); // expensive only if needed
}
// ✅ Suspense for streaming independent content
export default function Dashboard() {
return (
<>
<Header />
<Suspense fallback={<StatsSkeleton />}><Stats /></Suspense>
<Suspense fallback={<ActivitySkeleton />}><RecentActivity /></Suspense>
</>
);
}
2. Bundle Size (CRITICAL)
// ❌ Barrel import — pulls entire tree
import { Button, Input, Modal } from '@/components';
// ✅ Direct import — tree-shaken
import { Button } from '@/components/ui/button';
// ✅ Dynamic import for heavy components
const Chart = dynamic(() => import('@/components/chart'), {
loading: () => <Skeleton className="h-64" />,
ssr: false,
});
// ✅ Defer third-party analytics after hydration
useEffect(() => {
import('mixpanel-browser').then(({ default: mp }) => mp.init('TOKEN'));
}, []);
// ✅ Preload on hover for perceived performance
const handleMouseEnter = () => {
router.prefetch(`/products/${slug}`);
};
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.
- 7d ago First seen · 247 lines · 75 tokens per session scan A 5319bf5de9cf
nextjs-react-best-practices is a skill published in the GitHub repository t-code4change/nextjs-claude-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 1,835 once invoked, about $0.0004 per session on Opus 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-08-31.
Other skills, from other repositories
chakra-ui-builder
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…
ui-checkstyle
Run the exact ESLint + Prettier + organize-imports sequence that CI's UI Checkstyle workflow runs — on just the files the PR changed — and fail the task if any file ends up with a diff. Invoke after authoring or modifying any .ts, .tsx, .js, .jsx, or .json file under openmetadata-ui/src/main/resources/ui/src/…
frontend-ui-dark-ts
Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.
21st-ui
Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.
moai-design-tools
Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.
byted-util-vite-react-tailwind
A setup guide for building frontend projects with Vite, React, Tailwind CSS, TypeScript, and Lucide icons.