update-docs
하는 일
이 스킬은 브랜치를 main과 비교하고, 변경된 코드와 관련된 문서 페이지를 찾아 업데이트합니다. 소프트웨어와 문서를 맞춰 두려는 팀을 위한 스킬입니다.
사용하는 경우
- ✓소스 코드를 바꿨고 그에 맞는 문서 페이지가 오래된 것처럼 보일 때.
- ✓문서 전체를 다시 쓰기보다 필요한 부분만 고치고 싶을 때.
- ✓게시하기 전에 문서 변경을 한 번 더 검토하고 싶은 경우.
스킬 링크
https://github.com/pipecat-ai/pipecat/blob/main/.claude/skills/update-docs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 브랜치에서 제가 한 코드 변경에 맞게 우리 문서 페이지를 업데이트해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 브랜치와 main의 차이를 읽고, 변경된 각 파일을 영향을 받는 문서 페이지에 대응시킨 뒤, 그 페이지만 편집합니다. 문서화 기준은 프로젝트 자체 규칙을 따릅니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Update documentation pages to reflect source code changes on the current branch. Analyzes the diff against main, maps changed source files to their corresponding doc pages, and makes targeted edits.
This skill is repo-agnostic and shared. It is published by the
pipecat-dev-skills marketplace and used by every repository whose changes feed
pipecat-ai/docs, so it must stay free of anything specific to one of them.
Everything repo-specific — what is in scope, how files map to pages, what a new
page looks like, where it gets registered — comes from that repo's profile,
.claude/skills/update-docs/SOURCE_DOC_MAPPING.md, which lives in the repo
being documented. The skill never hardcodes a source path, a page template, or a
navigation group. See PROFILE_CONTRACT.md for what a profile must provide.
How pages read — what to document, what to leave out, page templates, prose —
comes from the docs repo's style guide, DOCS_PATH/STYLE.md. This skill covers
the process: finding what changed, deciding what the docs need, and checking
the result.
REVIEW.md is a second pass over a finished update, run in a fresh session
that did not write it. The automation runs it after this skill; run it by hand
the same way after a local update.
Arguments
/update-docs [DOCS_PATH]
DOCS_PATH(optional): Path to the docs repository root. If not provided, ask the user.
Examples:
/update-docs /Users/me/src/docs/update-docs
Instructions
Step 1: Resolve docs path, profile, and style guide
If DOCS_PATH was provided as an argument, use it. Otherwise, ask the user for the path to their docs repository.
Verify the path exists and contains docs.json.
Read the profile at .claude/skills/update-docs/SOURCE_DOC_MAPPING.md in the
source repository. It defines this repo's scope, mapping tables, page
template, and registration steps. If it is missing, stop and say so — without it
there is no way to resolve a file to a page, and guessing produces edits to
pages that don't exist.
Read DOCS_PATH/STYLE.md in full. Every edit follows it. Where it and this
skill disagree about how a page reads, the style guide wins. If it is missing,
follow the Guidelines at the end of this skill.
Step 2: Create docs branch
Get the current source branch name:
git rev-parse --abbrev-ref HEAD
In the docs repo, create a new branch off main with a matching name:
cd DOCS_PATH && git checkout main && git pull && git checkout -b {branch-name}-docs
For example, if the source branch is feat/new-service, the docs branch becomes feat/new-service-docs.
All doc edits in subsequent steps are made on this branch.
Step 3: Detect changed source files
Run:
git diff main..HEAD --name-only
Every source file under the roots the profile's Scope section names is in scope. Repos ship public API well beyond their most obvious entry points, so scope is defined as exclusions rather than an allowlist: a new directory is covered the day it appears rather than when someone remembers to list it.
Exclude what the profile's Scope section excludes, plus build and cache
artifacts (__pycache__/, *.pyc, node_modules/, dist/) and re-export-only
index files that define nothing themselves.
Changes outside those roots — examples, CI config, the docs directory — don't trigger doc updates on their own.
Then apply the profile's Skip list (Step 4), which names the small set of genuinely internal files. Don't invent further reasons to drop a file here: being a base class, a shared module, or "core architecture" is not one. Public constructor parameters and observable behavior get documented wherever they live, and a file whose page isn't obvious should reach Step 8 as a reported gap rather than disappear.
Step 4: Map source files to doc pages
For each changed source file, resolve the doc page to edit using the profile's
tables, in this order. Confirm every candidate path exists in DOCS_PATH
before using it.
- Skip list — if the file matches the skip list, stop. It triggers no doc update.
- Base classes — if the file is in the base-classes table, use every page it lists. A change here affects everything that inherits it, so check each page rather than stopping at the first.
- Non-standard locations — if the file is in the non-standard table, use that entry as the candidate path and confirm it exists.
- Pattern match — apply the pattern table to get a candid
자주 묻는 질문
어떤 문서를 업데이트하나요?
브랜치에서 바꾼 코드와 연결된 페이지만 업데이트합니다. 관련 없는 페이지는 다시 쓰지 않습니다.
특별한 설정이 필요한가요?
네. 프로젝트가 자체 매핑 파일을 제공해야 하고, 문서 저장소 경로를 알려 주어야 합니다.
작업을 확인할 수 있나요?
네. 스킬에는 새 세션에서 실행할 수 있는 검토 단계가 있어서 완성된 업데이트를 점검할 수 있습니다.
상세 정보
작성자의 원본 설명
Update documentation pages to match source code changes on the current branch
repo: pipecat-ai/pipecat
인기도
- GitHub 스타
- 17k
- 순위
- #10794
- 라이선스
- BSD-2-Clause
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.