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 sutchan/Agent-Skills-Hub --skill next-best-practicesgit clone --depth 1 https://github.com/sutchan/Agent-Skills-HubWrote 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/sutchan/agent-skills-hub/next-best-practices)<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/next-best-practices"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/next-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.
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/next-best-practices"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/next-best-practices.svg" alt="Reviewed on agentmods" width="80" 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.00047 | $0.01087 |
| Opus 5.5 | $0.00019 | $0.00435 |
| Sonnet 5.5 | $0.00009 | $0.00217 |
| Haiku 4.5 | $0.00005 | $0.00109 |
Grade A, and why
next-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.
This is a copy
95% identical to next-best-practices — 28 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next.js Best Practices
Apply these rules when writing or reviewing Next.js code.
File Conventions
See file-conventions.md for:
- Project structure and special files
- Route segments (dynamic, catch-all, groups)
- Parallel and intercepting routes
- Middleware rename in v16 (middleware → proxy)
RSC Boundaries
Detect invalid React Server Component patterns.
See rsc-boundaries.md for:
- Async client component detection (invalid)
- Non-serializable props detection
- Server Action exceptions
Async Patterns
Next.js 15+ async API changes.
See async-patterns.md for:
- Async
paramsandsearchParams - Async
cookies()andheaders() - Migration codemod
Runtime Selection
See runtime-selection.md for:
- Default to Node.js runtime
- When Edge runtime is appropriate
Directives
See directives.md for:
'use client','use server'(React)'use cache'(Next.js)
Functions
See functions.md for:
- Navigation hooks:
useRouter,usePathname,useSearchParams,useParams - Server functions:
cookies,headers,draftMode,after - Generate functions:
generateStaticParams,generateMetadata
Error Handling
See error-handling.md for:
error.tsx,global-error.tsx,not-found.tsxredirect,permanentRedirect,notFoundforbidden,unauthorized(auth errors)unstable_rethrowfor catch blocks
Data Patterns
See data-patterns.md for:
- Server Components vs Server Actions vs Route Handlers
- Avoiding data waterfalls (
Promise.all, Suspense, preload) - Client component data fetching
Route Handlers
See route-handlers.md for:
route.tsbasics- GET handler conflicts with
page.tsx - Environment behavior (no React DOM)
- When to use vs Server Actions
Metadata & OG Images
See metadata.md for:
- Static and dynamic metadata
generateMetadatafunction- OG image generation with
next/og - File-based metadata conventions
What ships with it
19 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.
- references/async-patterns.md 1.6 KB
- references/bundling.md 4.4 KB
- references/data-patterns.md 6.5 KB
- references/debug-tricks.md 2.9 KB
- references/directives.md 1.4 KB
- references/error-handling.md 4.6 KB
- references/file-conventions.md 3.4 KB
- references/font.md 5.1 KB
- references/functions.md 4.3 KB
- references/hydration-error.md 1.8 KB
- references/image.md 3.8 KB
- references/metadata.md 7.0 KB
- references/parallel-routes.md 7.0 KB
- references/route-handlers.md 3.2 KB
- references/rsc-boundaries.md 4.2 KB
- references/runtime-selection.md 985 B
- references/scripts.md 3.2 KB
- references/self-hosting.md 8.1 KB
- references/suspense-boundaries.md 1.3 KB
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.
- 1mo ago Changed 43103f109860
- 2mo ago First seen · 158 lines · 47 tokens per session scan A 4d3477ead423
next-best-practices is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (3 stars, last pushed 6d ago), licensed MIT. It adds 47 tokens to every session and 1,087 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to next-best-practices, differing in 28 lines, and is treated as a copy.
next-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| next-best-practicessutchan/Agent-Skills-Hub | Skill | 3 | 6d ago | MIT | A | 47 | Claude Code |
| frontend-best-practicesWade-DevCode/awesome-coding-skills-cn | Skill | 7 | 5mo ago | MIT | A | 29 | Claude Code, Codex |
| slide-authoringshennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 146 | Claude Code |
| afrexai-react-productionLeoYeAI/openclaw-master-skills | Skill | 2.2k | 9d ago | MIT | A | 32 | Claude Code, Codex |
| remotion-best-practicesguanyang/open-agent-hub | Skill | 1.0k | yesterday | MIT | A | 116 | Claude Code |
| skill-index-updaterluongnv89/asm | Skill | 976 | yesterday | MIT | B | 59 | Claude Code |
| react-native-expoWrongStack/WrongStack | Skill | 444 | yesterday | MIT | A | 95 | Claude Code |