옵션
집집 Skill API 개발 update-docs

update-docs

vercel/next.js vercel/next.js

이 스킬은 사용자가 “내 변경 사항에 따라 문서를 업데이트해 주세요”, “이 PR에 대한 문서를 확인해 주세요”, “어떤 문서를 업데이트해야 하나요?”, “문서를 코드와 동기화해 주세요”, “이 기능에 대한 문서 템플릿을 생성해 주세요”, “이 기능에 대한 문서 작성”, “문서 완성도 검토”, “이 변경 사항에 대한 문서 추가”, “어떤 문서가 영향을 받는지”, “문서의 영향”을 요청하거나 “docs/”, “docs/01-app”, “docs/02-pages”, “MDX”, “문서 업데이트”, “API 참조”, “.mdx 파일”을 언급한 경우. 코드 변경 사항을 기반으로 Next.js 문서를 업데이트하기 위한 단계별 워크플로를 제공합니다.

...모든 것을 확장하십시오
32
업데이트 된 시간 2026년 8월 3일

Next.js 문서 업데이트 도구

활성 브랜치의 코드 변경 사항을 기반으로 Next.js 문서를 업데이트하는 과정을 안내합니다. 문서의 완성도를 확인하기 위해 PR을 검토하는 유지보수 담당자를 위해 설계되었습니다.

빠른 시작

  1. 변경 사항 분석: git diff canary...HEAD --stat 명령어를 실행하여 변경된 파일을 확인하세요
  2. 영향을 받는 문서 식별: 변경된 소스 파일을 문서 경로와 매핑합니다
  3. 각 문서 검토: 사용자의 확인을 거쳐 업데이트 내용을 검토합니다
  4. 검증: pnpm lint 서식 확인
  5. 커밋: 문서 변경 사항 스테이징

워크플로: 코드 변경 사항 분석

1단계: 차이점 확인

# See all changed files on this branch
git diff canary...HEAD --stat# See changes in specific areas
git diff canary...HEAD -- packages/next/src/

2단계: 문서와 관련된 변경 사항 확인

다음 영역에서 변경 사항을 확인하세요:

3단계: 문서 파일에 매핑

해당 문서에서 제공하는 ‘코드-문서 매핑’ 기능을 사용하여 references/CODE-TO-DOCS-MAPPING.md 해당 문서 파일을 찾으십시오.

매핑 예시:

  • 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/

워크플로: 기존 문서 업데이트

1단계: 현재 문서 읽기

변경 사항을 적용하기 전에 기존 문서를 읽어 다음 사항을 파악하십시오:

  • 현재 구조 및 섹션
  • 사용 중인 프론트매터 필드
  • 다음 중 어느 것을 사용하는지 / 를 사용하는지 여부

2단계: 업데이트가 필요한 부분을 파악하세요

일반적인 업데이트 항목은 다음과 같습니다:

  • 새로운 props/옵션: props 테이블에 추가하고 사용법을 설명하는 섹션을 작성
  • 동작 변경: 설명과 예제를 업데이트합니다
  • 사용 중단된 기능: 사용 중단 알림 및 마이그레이션 지침을 추가합니다
  • 새로운 예제: 규약에 따라 코드 블록을 추가합니다

3단계: 확인 후 업데이트 적용

각 변경 사항에 대해:

  1. 사용자에게 변경 예정인 내용을 표시
  2. 수정하기 전에 사용자의 확인을 기다립니다
  3. 수정 내용을 적용합니다
  4. 다음 변경 사항으로 이동

4단계: 공유 콘텐츠 확인

문서가 source 필드 패턴(Pages Router 문서에서 흔히 사용됨)을 사용하는 경우, 소스 파일을 편집해야 합니다. 예시:

# docs/02-pages/... file with shared content
---
source: app/building-your-application/optimizing/images
---

Pages Router 파일이 아닌 App Router 소스 파일을 편집하십시오.

5단계: 변경 내용 검증

pnpm lint          # Check formatting
pnpm prettier-fix  # Auto-fix formatting issues

워크플로: 새로운 기능 문서 초안 작성

완전히 새로운 기능에 대한 문서를 추가할 때 이 방법을 사용하십시오.

1단계: 문서 유형 결정

2단계: 적절한 이름 규칙을 적용하여 파일 생성

  • kebab-case 형식을 사용하십시오: my-new-feature.mdx
  • 순서가 중요한 경우 숫자 접두사를 추가하세요: 05-my-new-feature.mdx
  • 기능 유형에 따라 올바른 디렉터리에 배치하십시오

3단계: 적절한 템플릿 사용

API 참조 템플릿:

---
title: Feature Name
description: Brief description of what this feature does.
---{/* The content of this doc is shared between the app and pages router. You can use the `Content` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}Brief introduction to the feature.## Reference### Props
| Prop | Example | Type | Status | | ----------------------- | ------------------ | ------ | -------- | | [`propName`](#propname) | `propName="value"` | String | Required |
#### `propName`Description of the prop.\`\`\`tsx filename="app/example.tsx" switcher // TypeScript example \`\`\`\`\`\`jsx filename="app/example.js" switcher // JavaScript example \`\`\`

가이드 템플릿:

---
title: How to do X in Next.js
nav_title: X
description: Learn how to implement X in your Next.js application.
---Introduction explaining why this guide is useful.## PrerequisitesWhat the reader needs to know before starting.## Step 1: First StepExplanation and code example.\`\`\`tsx filename="app/example.tsx" switcher
// Code example
\`\`\`## Step 2: Second StepContinue with more steps...## Next StepsRelated topics to explore.

4단계: 관련 링크 추가

관련 문서를 포함하여 프론트매터를 업데이트하세요:

related:
  title: Next Steps
  description: Learn more about related features.
  links:
    - app/api-reference/functions/related-function
    - app/guides/related-guide

문서 작성 규칙

자세한 references/DOC-CONVENTIONS.md 에서 전체 서식 규칙을 확인하십시오.

간편 참조

프론트매터 (필수):

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

코드 블록:

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

라우터별 콘텐츠:

Content only for App Router docs.Content only for Pages Router docs.

참고 사항:

> **Good to know**: Single line note.> **Good to know**:
>
> - Multi-line note point 1
> - Multi-line note point 2

검증 체크리스트

문서 변경 사항을 커밋하기 전에:

  • 프론트매터에는 title 와 description
  • 코드 블록에는 filename 속성이 있어야 합니다
  • TypeScript 예제에서는 switcher JS 변형과 함께
  • Props 테이블은 올바르게 서식이 지정되어 있습니다
  • 관련 링크는 유효한 경로로 연결됩니다
  • pnpm lint 통과
  • 변경 사항이 올바르게 렌더링됩니다(미리 보기가 가능한 경우).

참고 문헌

  • references/DOC-CONVENTIONS.md - 프론트매터 및 서식 규칙을 모두 준수
  • references/CODE-TO-DOCS-MAPPING.md - 소스 코드와 문서 간의 매핑
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:

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

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:

# docs/02-pages/... file with shared content
---
source: app/building-your-application/optimizing/images
---

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

Step 5: Validate changes

pnpm lint          # Check formatting
pnpm 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

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:

---
title: Feature Name
description: Brief description of what this feature does.
---{/* 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. */}Brief introduction to the feature.## Reference### Props<div style={{ overflowX: 'auto', width: '100%' }}>| Prop                    | Example            | Type   | Status   |
| ----------------------- | ------------------ | ------ | -------- |
| [`propName`](#propname) | `propName="value"` | String | Required |</div>#### `propName`Description of the prop.\`\`\`tsx filename="app/example.tsx" switcher
// TypeScript example
\`\`\`\`\`\`jsx filename="app/example.js" switcher
// JavaScript example
\`\`\`

Guide Template:

---
title: How to do X in Next.js
nav_title: X
description: Learn how to implement X in your Next.js application.
---Introduction explaining why this guide is useful.## PrerequisitesWhat the reader needs to know before starting.## Step 1: First StepExplanation and code example.\`\`\`tsx filename="app/example.tsx" switcher
// Code example
\`\`\`## Step 2: Second StepContinue with more steps...## Next StepsRelated topics to explore.

Step 4: Add related links

Update frontmatter with related documentation:

related:
  title: Next Steps
  description: Learn more about related features.
  links:
    - app/api-reference/functions/related-function
    - app/guides/related-guide

Documentation Conventions

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

Quick Reference

Frontmatter (required):

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

Code blocks:

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

Router-specific content:

<AppOnly>Content only for App Router docs.</AppOnly><PagesOnly>Content only for Pages Router docs.</PagesOnly>

Notes:

> **Good to know**: Single line note.> **Good to know**:
>
> - Multi-line note point 1
> - 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

update-docs 설치

스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어주세요.

ZIP 다운로드

저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.

git clone https://github.com/vercel/next.js/tree/canary/.agents/skills/update-docs # Copy the skill folder to .claude/skills/ or .codex/skills/

복사 복사
빠른 설정: skill 폴더를 .claude/skills/로 복사하면 Claude가 해당 스킬을 자동으로 감지하여 사용합니다.
저장소 vercel/next.js

관련 스킬

agentwallet
업데이트 된 시간 2026년 7월 7일
brightdata-cli
업데이트 된 시간 2026년 6월 29일
humanize
업데이트 된 시간 2026년 7월 7일
trello
업데이트 된 시간 2026년 7월 1일
OR