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 ndisisnd/cook --skill nextjsgit clone --depth 1 https://github.com/ndisisnd/cookWrote 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/ndisisnd/cook/nextjs)<a href="https://agentmods.dev/skills/ndisisnd/cook/nextjs"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/nextjs/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/ndisisnd/cook/nextjs"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/nextjs.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.00040 | $0.01869 |
| Opus 5.5 | $0.00016 | $0.00748 |
| Sonnet 5.5 | $0.00008 | $0.00374 |
| Haiku 4.5 | $0.00004 | $0.00187 |
Grade A, and why
nextjs 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.
How it starts
The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next.js
Targets Next.js 16.x, React 19.x, Node.js 24 LTS (Next requires 20.9+, which is EOL). Generic React rules: react/SKILL.md.
Apply the rules below, then load only the refs/*.md that _INDEX.md matches. App Router is the default; for a pages/-only project load refs/pages-router.md and apply no app/ rules.
Cache Model Decision
Check next.config.* for cacheComponents: true before writing caching code. One model per project.
- On - data is dynamic by default. Cache with
'use cache'+cacheLife()+cacheTag(). Do not exportdynamic,revalidate,fetchCache,dynamicParams,runtime. Wrap request-time reads (cookies(),headers(),searchParams) in<Suspense>. - Off (legacy) - cache with
fetchoptions (force-cache,next: { revalidate, tags }) and segment config; no'use cache'.
Invalidation: revalidateTag(tag, 'max') (two arguments required in 16), updateTag(tag) and refresh() (Server Actions only), revalidatePath(path).
P0 - Server & Client Components
- Keep pages and layouts as Server Components unless they need hooks, browser APIs, or event handlers. Push
'use client'to interactive leaves. - Compose Server Components through Client Component
children; never import one into a Client Component. - Server-to-Client props must be React-serializable. Allowed: primitives,
bigint,Symbol.for()symbols, plain objects, arrays,Date,Map,Set, typed arrays, Promises, JSX, and Server Functions. Forbidden: class instances, non-Server functions, unregistered symbols, and null-prototype objects. - Never pass secrets or raw ORM/DB objects to the client. Use DTOs and
import 'server-only'. - Avoid browser-only or non-deterministic values (
window,Date.now(),Math.random()) in initial render.
P0 - Data Fetching & Access
- Fetch in async Server Components or call DAL/service functions directly. Never fetch your own
/apiroute from server code. - Use
server-onlyDAL modules that verify auth, return DTOs, and dedupe with Reactcache(). - Client Components reach the server only through Server Actions or Route Handlers.
What ships with it
14 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.
- _INDEX.md 2.8 KB
- refs/app-router.md 3.3 KB
- refs/architecture.md 4.0 KB
- refs/data-fetching.md 3.1 KB
- refs/i18n.md 3.3 KB
- refs/pages-router.md 1.8 KB
- refs/rendering-and-caching.md 4.6 KB
- refs/security.md 6.2 KB
- refs/server-actions.md 2.2 KB
- refs/server-components.md 2.4 KB
- refs/state-management.md 4.0 KB
- refs/styling-and-optimization.md 3.3 KB
- refs/testing.md 1.9 KB
- refs/tooling.md 4.1 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 · -26 lines d3310e94c44a
- 3mo ago First seen · 179 lines · 40 tokens per session scan A fafb07edba04
nextjs is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 1,869 once invoked, about $0.0002 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-08-31.
nextjs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nextjsndisisnd/cook | Skill | 2 | 1mo ago | MIT | A | 40 | Claude Code, Codex |
| frontend-architecture-plannerytvee-dev/webdev-agent-kit | Skill | 7 | 28d ago | Apache-2.0 | A | 47 | Claude Code, Codex |
| frontend-layout-implementerytvee-dev/webdev-agent-kit | Skill | 7 | 28d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| react-expertJeffallan/claude-skills | Skill | 13k | today | MIT | A | 79 | Claude Code |
| moai-design-toolsmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 45 | Claude Code |
| frontendcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 79 | Claude Code, Codex |
| moai-domain-uiuxmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 49 | Claude Code |