next.js: Skill for Claude Code

.agents/skills/update-docs/SKILL.md

update-docs is a skill for Claude Code, Codex from vercel/next.js. It costs 122 tokens per session (1,772 once invoked), scanned A, original, MIT.

A workflow for updating Next.js documentation to match code changes. Next.js is a framework for building web applications with JavaScript or TypeScript.

In plain words
What is it for?
Use it to find documentation affected by a Next.js change, plan or add updates, review completeness, and validate formatting.
Why use it?
It helps identify which documentation may be out of date after a change, review the affected pages, and check the result with the project’s lint command.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is vercel/next.js's own configuration. It tells Claude Code and Codex how to work on next.js itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything next.js configures →

About the project

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.

vercel/next.js · 143,965 stars · on GitHub · nextjs.org

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/vercel/next.js/canary/.agents/skills/update-docs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vercel/next.js

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for update-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/next.js/update-docs/github.svg)](https://agentmods.dev/skills/vercel/next.js/update-docs)
Your own site
<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.

agentmods 80×15 button for update-docs

Your own site · 80×15
<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>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 6 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3mo ago against content hash ed9fe301cb2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/update-docs/SKILL.md · 267 lines

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

  1. Analyze changes: Run git diff canary...HEAD --stat to see what files changed
  2. Identify affected docs: Map changed source files to documentation paths
  3. Review each doc: Walk through updates with user confirmation
  4. Validate: Run pnpm lint to check formatting
  5. 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.mdx
  • src/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

Read the full file on GitHub · 267 lines

Files

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.

Changes

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.

  1. 3mo ago First seen · 267 lines · 122 tokens per session scan A ed9fe301cb2e

Subscribe to this mod's changes

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.

Related

update-docs compared with skills from other repositories

update-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
update-docsvercel/next.jsSkill144ktodayMITA122Claude Code, Codex
shadcnshadcn-ui/uiSkill130kyesterdayMITA123Claude Code, Codex, Cursor
migrate-radix-to-baseshadcn-ui/uiSkill130kyesterdayMITA61Cursor
examplerecharts/rechartsSkill28ktodayMITA11Claude Code, Codex
notion-to-blogwasp-lang/waspSkill19kyesterdayMITA37Claude Code
magic-uimagicuidesign/magicuiSkill24k4d agoMITA56Claude Code, Codex
crosspostingwasp-lang/waspSkill19kyesterdayMITA19Claude Code