New advertisers: 50% off your first month with code FIRSTMONTHSee slots
vercel avatar

Update Docs

Guided workflow that maps code changes to Next.js doc updates, scaffolds new feature docs, and validates formatting.

skills.sh installs
2.4K
GitHub stars
143.6K
last updated
May 16, 2026
View on GitHub

What it does

  • Covers three workflows: analyzing branch diffs against canary, updating existing docs with per-change confirmation, and scaffolding docs for new features
  • Includes a source-to-docs mapping table and templates for API reference and guide pages, plus frontmatter and code-block conventions
  • Enforces a validation checklist covering frontmatter fields, filename attributes, TypeScript switcher variants, and passing pnpm lint
  • Designed for maintainers reviewing pull requests for documentation completeness in the Next.js repository

Install

$ npx -y skills add vercel/next.js --skill update-docs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

Details

Repository
github.com/vercel/next.js
Categories
Technical Documentation, Git & Releases

More from vercel/next.js

All 14

Similar to Update Docs

More Technical Documentation