update-docs — compiler update-docs, next.js, official, compiler, ide skills, components, hybrid, nextjs, server-rendering, static, Claude Code

v1.0.0

About this Skill

Ideal for Code Review Agents needing automated documentation update workflows for Next.js projects. This skill should be used when the user asks to update documentation for my changes, check docs for this PR, what docs need updating, sync docs with code, scaffold docs for this feature, document this

# Core Topics

vercel vercel
[138.3k]
[30602]
Updated: 3/11/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reviewed Landing Page Review Score: 9/11

Killer-Skills keeps this page indexable because it adds recommendation, limitations, and review signals beyond the upstream repository text.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review Locale and body language aligned
Review Score
9/11
Quality Score
68
Canonical Locale
en
Detected Body Locale
en

Ideal for Code Review Agents needing automated documentation update workflows for Next.js projects. This skill should be used when the user asks to update documentation for my changes, check docs for this PR, what docs need updating, sync docs with code, scaffold docs for this feature, document this

Core Value

Empowers agents to maintain accurate documentation by analyzing git diffs, mapping source code changes to documentation paths, and validating updates with pnpm lint, ensuring consistent and formatted documentation.

Ideal Agent Persona

Ideal for Code Review Agents needing automated documentation update workflows for Next.js projects.

Capabilities Granted for update-docs

Automating documentation updates for Next.js code changes
Validating documentation completeness for PR reviews
Generating guided workflows for maintainers

! Prerequisites & Limits

  • Requires git and pnpm access
  • Designed for Next.js documentation only
  • Needs active branch and code changes to analyze

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Curated Collection Review

Reviewed In Curated Collections

This section shows how Killer-Skills has already collected, reviewed, and maintained this skill inside first-party curated paths. For operators and crawlers alike, this is a stronger signal than treating the upstream README as the primary story.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is update-docs?

Ideal for Code Review Agents needing automated documentation update workflows for Next.js projects. This skill should be used when the user asks to update documentation for my changes, check docs for this PR, what docs need updating, sync docs with code, scaffold docs for this feature, document this

How do I install update-docs?

Run the command: npx killer-skills add vercel/next.js/update-docs. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for update-docs?

Key use cases include: Automating documentation updates for Next.js code changes, Validating documentation completeness for PR reviews, Generating guided workflows for maintainers.

Which IDEs are compatible with update-docs?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for update-docs?

Requires git and pnpm access. Designed for Next.js documentation only. Needs active branch and code changes to analyze.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add vercel/next.js/update-docs. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use update-docs immediately in the current project.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

update-docs

Install update-docs, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

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

bash
1# See all changed files on this branch 2git diff canary...HEAD --stat 3 4# See changes in specific areas 5git diff canary...HEAD -- packages/next/src/

Step 2: Identify documentation-relevant changes

Look for changes in these areas:

Source PathLikely 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.tsxdocs/01-app/03-api-reference/02-components/image.mdx
  • src/server/config-shared.tsdocs/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

Common updates include:

  • New props/options: Add to the props table and create a section explaining usage
  • Changed behavior: Update descriptions and examples
  • Deprecated features: Add deprecation notices and migration guidance
  • New examples: Add code blocks following conventions

Step 3: Apply updates with confirmation

For each change:

  1. Show the user what you plan to change
  2. Wait for confirmation before editing
  3. Apply the edit
  4. Move to the next change

Step 4: Check for shared content

If the doc uses the source field pattern (common for Pages Router docs), the source file is the one to edit. Example:

yaml
1# docs/02-pages/... file with shared content 2--- 3source: app/building-your-application/optimizing/images 4---

Edit the App Router source, not the Pages Router file.

Step 5: Validate changes

bash
1pnpm lint # Check formatting 2pnpm prettier-fix # Auto-fix formatting issues

Workflow: Scaffold New Feature Documentation

Use this when adding documentation for entirely new features.

Step 1: Determine the doc type

Feature TypeDoc LocationTemplate
New componentdocs/01-app/03-api-reference/02-components/API Reference
New functiondocs/01-app/03-api-reference/04-functions/API Reference
New config optiondocs/01-app/03-api-reference/05-config/Config Reference
New concept/guidedocs/01-app/02-guides/Guide
New file conventiondocs/01-app/03-api-reference/03-file-conventions/File Convention

Step 2: Create the file with proper naming

  • Use kebab-case: my-new-feature.mdx
  • Add numeric prefix if ordering matters: 05-my-new-feature.mdx
  • Place in the correct directory based on feature type

Step 3: Use the appropriate template

API Reference Template:

mdx
1--- 2title: Feature Name 3description: Brief description of what this feature does. 4--- 5 6{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} 7 8Brief introduction to the feature. 9 10## Reference 11 12### Props 13 14<div style={{ overflowX: 'auto', width: '100%' }}> 15 16| Prop | Example | Type | Status | 17| ----------------------- | ------------------ | ------ | -------- | 18| [`propName`](#propname) | `propName="value"` | String | Required | 19 20</div> 21 22#### `propName` 23 24Description of the prop. 25 26\`\`\`tsx filename="app/example.tsx" switcher 27// TypeScript example 28\`\`\` 29 30\`\`\`jsx filename="app/example.js" switcher 31// JavaScript example 32\`\`\`

Guide Template:

mdx
1--- 2title: How to do X in Next.js 3nav_title: X 4description: Learn how to implement X in your Next.js application. 5--- 6 7Introduction explaining why this guide is useful. 8 9## Prerequisites 10 11What the reader needs to know before starting. 12 13## Step 1: First Step 14 15Explanation and code example. 16 17\`\`\`tsx filename="app/example.tsx" switcher 18// Code example 19\`\`\` 20 21## Step 2: Second Step 22 23Continue with more steps... 24 25## Next Steps 26 27Related topics to explore.

Update frontmatter with related documentation:

yaml
1related: 2 title: Next Steps 3 description: Learn more about related features. 4 links: 5 - app/api-reference/functions/related-function 6 - app/guides/related-guide

Documentation Conventions

See references/DOC-CONVENTIONS.md for complete formatting rules.

Quick Reference

Frontmatter (required):

yaml
1--- 2title: Page Title (2-3 words) 3description: One or two sentences describing the page. 4---

Code blocks:

\`\`\`tsx filename="app/page.tsx" switcher
// TypeScript first
\`\`\`

\`\`\`jsx filename="app/page.js" switcher
// JavaScript second
\`\`\`

Router-specific content:

mdx
1<AppOnly>Content only for App Router docs.</AppOnly> 2 3<PagesOnly>Content only for Pages Router docs.</PagesOnly>

Notes:

mdx
1> **Good to know**: Single line note. 2 3> **Good to know**: 4> 5> - Multi-line note point 1 6> - Multi-line note point 2

Validation Checklist

Before committing documentation changes:

  • Frontmatter has title and description
  • Code blocks have filename attribute
  • TypeScript examples use switcher with JS variant
  • Props tables are properly formatted
  • Related links point to valid paths
  • pnpm lint passes
  • Changes render correctly (if preview available)

References

  • references/DOC-CONVENTIONS.md - Complete frontmatter and formatting rules
  • references/CODE-TO-DOCS-MAPPING.md - Source code to documentation mapping

Related Skills

Looking for an alternative to update-docs or another official skill for your workflow? Explore these related open-source skills.

View All

flags

Logo of facebook
facebook

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

244.2k
0
Developer

extract-errors

Logo of facebook
facebook

extract-errors is a React error handling skill that automates the process of extracting and assigning error codes, ensuring accurate and up-to-date error messages in React applications.

244.2k
0
Developer

fix

Logo of facebook
facebook

fix is a code optimization skill that automates formatting and linting using yarn prettier and linc.

244.2k
0
Developer

flow

Logo of facebook
facebook

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

244.2k
0
Developer