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 agentmods add skills/ndisisnd/cook/nextjsnpx skills add ndisisnd/cook --skill nextjsgit clone --depth 1 https://github.com/ndisisnd/cookWhat 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 | $0.00040 | $0.02525 |
| Opus 5 | $0.00020 | $0.01262 |
| Sonnet 5 | $0.00008 | $0.00505 |
| Haiku 4.5 | $0.00004 | $0.00252 |
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 2d 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 — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next.js
Invocation Protocol
When invoked directly as /nextjs, read this file first and apply the critical rules below before editing. Then read standards/nextjs/_INDEX.md and load only the additional refs/*.md entries whose file patterns or keywords match the task.
If both App Router and Pages Router signals appear, apply the Router Decision below before loading App Router-specific refs. For a Pages Router-only project, load refs/pages-router.md and treat App Router refs as informational unless the migration explicitly touches app/.
Router Decision
App Router is the default for new work. If the project uses pages/, treat App Router rules as informational and load refs/pages-router.md; do not apply app/ conventions, Server Components, or Server Actions to a Pages Router-only project.
P0 - Server & Client Components
- App Router uses React Server Components by default. Keep pages and layouts as Server Components unless they need hooks, browser APIs, or event handlers.
- Push
'use client'to interactive leaves such as buttons, forms, charts, and wrappers. Do not mark the tree root client-side. - Compose Server Components through Client Component
children; never import a Server Component into a Client Component. - Server-to-Client props must be serializable: strings, numbers, booleans, plain objects, and arrays. Convert
Dateto strings and avoid functions, classes,Map,Set, andSymbolvalues except Server Actions marked'use server'. - Never pass secrets, raw ORM models, or full DB objects to the client. Use DTOs and
server-onlyfor sensitive modules. - Avoid browser-only values (
window,Date.now(), layout reads) in initial render; defer with a mounted state when needed.
Detail -> refs/server-components.md
P0 - Data Fetching & Access
- Fetch directly in async Server Components or call DB/service/DAL functions directly. Never fetch your own
/apiroute from RSCs or server-side hooks. - Pick cache behavior deliberately:
cache: 'force-cache'for static data,next: { revalidate: N }for ISR, andcache: 'no-store'for request-time data. - Parallelize independent work with
Promise.all()and push slow fetches down behind<Suspense>instead of blocking the page root. - Centralize secure data access in
services/,lib/data.ts, ordal/modules withimport 'server-only'. - Verify auth inside every DAL function, transform raw DB/API data into DTOs, and wrap shared reads with React
cache()where render-cycle deduplication is needed. - Use Server Actions or Route Handlers as bridges for Client Components; Client Components must not import DAL modules.
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 3.3 KB
- refs/app-router.md 4.0 KB
- refs/architecture.md 6.0 KB
- refs/data-fetching.md 5.4 KB
- refs/i18n.md 3.1 KB
- refs/pages-router.md 3.2 KB
- refs/rendering-and-caching.md 8.3 KB
- refs/security.md 5.9 KB
- refs/server-actions.md 3.1 KB
- refs/server-components.md 4.2 KB
- refs/state-management.md 9.6 KB
- refs/styling-and-optimization.md 5.0 KB
- refs/testing.md 2.6 KB
- refs/tooling.md 3.8 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.
- 2d 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 22d ago), licensed MIT. It adds 40 tokens to every session and 2,525 once invoked, about $0.0002 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
moai-ref-react-patterns
React/Next.js component design patterns, state management strategies, and project structure reference for frontend development. Agent-extending skill that amplifies frontend domain work (spawned via Agent(general-purpose) with frontend instructions) with production-grade React patterns. NOT for: backend API design…
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…
moai-domain-frontend
Frontend development specialist covering React 19, Next.js 16, Vue 3.5, and modern UI/UX patterns with component architecture. Use when building web UIs, implementing components, optimizing frontend performance, or integrating state management.
frontend-patterns
React/TypeScript/xterm.js patterns for ClaudeTerminal frontend.
presentation
インタラクティブな React プレゼンテーションアーティファクトを作成する。キーボード操作によるスライド送り、サムネイル一覧、全画面表示、16:9 自動フィット対応。.
wireframe
インタラクティブな React ワイヤーフレームアーティファクトを作成する。エンティティバインディング表示(W コンポーネント)、画面遷移図(OverviewScreen)、デスクトップ全画面レイアウト対応。.