update-docs
Skill này làm gì
Skill này so sánh nhánh của bạn với main, tìm các trang tài liệu liên quan đến mã đã thay đổi và cập nhật chúng. Skill dành cho các đội nhóm giữ tài liệu luôn đồng bộ với phần mềm.
Khi nào nên dùng
- ✓Khi bạn đã thay đổi mã nguồn và các trang tài liệu tương ứng đã lỗi thời.
- ✓Khi bạn muốn cập nhật có mục tiêu cho tài liệu thay vì viết lại toàn bộ.
- ✓Khi bạn muốn một lượt rà soát thứ hai cho các thay đổi tài liệu trước khi xuất bản.
Liên kết skill
https://github.com/pipecat-ai/pipecat/blob/main/.claude/skills/update-docs/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy cập nhật các trang tài liệu của chúng tôi để khớp với thay đổi mã tôi đã làm trên nhánh này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc các khác biệt giữa nhánh của bạn và main, ánh xạ từng file đã thay đổi với trang tài liệu bị ảnh hưởng, rồi chỉ sửa các trang đó. Nó tuân theo quy tắc của dự án về những gì cần ghi tài liệu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó cập nhật những tài liệu nào?
Chỉ các trang liên kết với mã bạn đã thay đổi trên nhánh. Nó không viết lại các trang không liên quan.
Có cần thiết lập đặc biệt không?
Có. Dự án phải cung cấp file ánh xạ riêng, và đường dẫn repo tài liệu phải được cung cấp.
Tôi có thể kiểm tra công việc của nó không?
Có. Skill có một bước rà soát có thể chạy trong một phiên mới để kiểm tra bản cập nhật đã hoàn thành.
Chi tiết
Mô tả gốc của tác giả
Update documentation pages to match source code changes on the current branch
repo: pipecat-ai/pipecat
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10794
- Giấy phép
- BSD-2-Clause
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
Skill tương tự
technical-documentation
394kGiúp agent của bạn viết và rà soát tài liệu kỹ thuật cùng file hướng dẫn cho agent, rõ ràng để mọi người và công cụ AI đều dễ làm theo.
architecture-decision-records
280kGiúp agent của bạn ghi lại các quyết định quan trọng về cấu trúc dự án, giúp hiểu lý do đằng sau các lựa chọn và giữ lịch sử thay đổi rõ ràng.
code-tour
280kGiúp agent của bạn tạo các hướng dẫn đọc code từng bước, có tham chiếu chính xác đến file và dòng, hữu ích cho phần giới thiệu, giải thích và rà soát.