Next.js is a React framework for building applications that run across the browser and Node.js, including server-rendered applications. It is used by developers building web applications with React components.
Borrowing it
Nothing to install: this file belongs to vercel/next.js. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/vercel/next.js/canary/.agents/skills/update-docs/SKILL.mdgit clone --depth 1 https://github.com/vercel/next.jsWrote 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/vercel/next.js/update-docs)<a href="https://agentmods.dev/skills/vercel/next.js/update-docs"><img src="https://agentmods.dev/badge/skills/vercel/next.js/update-docs/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/vercel/next.js/update-docs"><img src="https://agentmods.dev/badge/skills/vercel/next.js/update-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk pass
- NVIDIA SkillSpector pass
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.00122 | $0.01772 |
| Opus 5.5 | $0.00049 | $0.00709 |
| Sonnet 5.5 | $0.00024 | $0.00354 |
| Haiku 4.5 | $0.00012 | $0.00177 |
Grade A, and why
update-docs 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 3mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- update-docs — 91% identical, 38 lines differ
How it starts
The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next.js Documentation Updater
Guides you through updating Next.js documentation based on code changes on the active branch. Designed for maintainers reviewing PRs for documentation completeness.
Quick Start
- Analyze changes: Run
git diff canary...HEAD --statto see what files changed - Identify affected docs: Map changed source files to documentation paths
- Review each doc: Walk through updates with user confirmation
- Validate: Run
pnpm lintto check formatting - Commit: Stage documentation changes
Workflow: Analyze Code Changes
Step 1: Get the diff
# See all changed files on this branch
git diff canary...HEAD --stat
# See changes in specific areas
git diff canary...HEAD -- packages/next/src/
Step 2: Identify documentation-relevant changes
Look for changes in these areas:
| Source Path | Likely Doc Impact |
|---|---|
packages/next/src/client/components/ |
Component API reference |
packages/next/src/server/ |
Function API reference |
packages/next/src/shared/lib/ |
Varies by export |
packages/next/src/build/ |
Configuration or build docs |
packages/next/src/lib/ |
Various features |
Step 3: Map to documentation files
Use the code-to-docs mapping in references/CODE-TO-DOCS-MAPPING.md to find corresponding documentation files.
Example mappings:
src/client/components/image.tsx→docs/01-app/03-api-reference/02-components/image.mdxsrc/server/config-shared.ts→docs/01-app/03-api-reference/05-config/
Workflow: Update Existing Documentation
Step 1: Read the current documentation
Before making changes, read the existing doc to understand:
- Current structure and sections
- Frontmatter fields in use
- Whether it uses
<AppOnly>/<PagesOnly>for router-specific content
Step 2: Identify what needs updating
What ships with it
2 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.
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.
- 3mo ago First seen · 267 lines · 122 tokens per session scan A ed9fe301cb2e
update-docs is a skill published in the GitHub repository vercel/next.js (143,965 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,772 once invoked, about $0.0005 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-30.
update-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| update-docsvercel/next.js | Skill | 144k | today | MIT | A | 122 | Claude Code, Codex |
| shadcnshadcn-ui/ui | Skill | 130k | yesterday | MIT | A | 123 | Claude Code, Codex, Cursor |
| migrate-radix-to-baseshadcn-ui/ui | Skill | 130k | yesterday | MIT | A | 61 | Cursor |
| examplerecharts/recharts | Skill | 28k | today | MIT | A | 11 | Claude Code, Codex |
| notion-to-blogwasp-lang/wasp | Skill | 19k | yesterday | MIT | A | 37 | Claude Code |
| magic-uimagicuidesign/magicui | Skill | 24k | 4d ago | MIT | A | 56 | Claude Code, Codex |
| crosspostingwasp-lang/wasp | Skill | 19k | yesterday | MIT | A | 19 | Claude Code |