doc-maintenance
Skill này làm gì
Công cụ này giúp tài liệu dự án bám sát các thay đổi code gần đây. Nó phát hiện khi tài liệu không còn phản ánh đúng hành vi thực tế của chương trình và gợi ý hoặc thực hiện các sửa đổi cần thiết.
Khi nào nên dùng
- ✓Khi code của dự án được cập nhật và tài liệu có thể đã lỗi thời.
- ✓Khi bạn chuẩn bị phát hành phiên bản mới và cần đảm bảo tài liệu chính xác.
- ✓Khi một lỗi do thông tin sai trong tài liệu gây ra.
Liên kết skill
https://github.com/paperclipai/paperclip/blob/master/packages/skills-catalog/catalog/bundled/docs/doc-maintenance/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
“Giữ tài liệu của dự án X phù hợp với các thay đổi code mới nhất.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ so sánh code gần đây với tài liệu hiện có để tìm điểm không khớp. Sau đó, nó cập nhật các trang bị ảnh hưởng để khớp với hành vi code hiện tại, mà không viết lại phần đã đúng.
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.
Doc Maintenance
Keep the documentation honest with minimum churn. The goal is alignment between docs and behavior, not stylistic rewrites or cosmetic re-organization. Reviewers should be able to read a diff and see "this updates docs to match recent behavior changes".
When to use
- A PR or recent set of merges changed user-visible behavior: CLI flags, API shapes, default values, configuration keys, endpoints, environment variables, supported versions.
- A user-reported bug traced back to outdated documentation.
- A release is being cut and the docs need a pass against the merged commits.
- A new feature shipped but only the engineer's PR description describes how to use it.
When not to use
- The change is internal-only (private helper rename, refactor) with no user-visible impact.
- You want to "improve the docs" without a behavior anchor. That is a separate scoped project, not maintenance — make a plan first.
The pass
- Establish the baseline. Get the commit range you are documenting against (since last release tag, since last merged-doc commit, or since a specific PR).
- Enumerate user-visible changes. Read commits and PR descriptions. List, for each change, what a user can now do differently.
- Map changes to docs. For each change, find every page that mentions the affected concept. Common targets: README, CLI reference, API reference, configuration reference, migration guide, FAQ, examples.
- Update precisely. Edit only the lines that need to change. Do not rewrap paragraphs you did not modify — it pollutes the diff.
- Add new entries where needed. New CLI flag → CLI reference entry. New env var → configuration reference entry. New endpoint → API reference entry. Don't only add it to the changelog.
- Update examples and snippets. Code blocks in docs are wrong faster than prose. Re-run any example that touches new behavior.
- Write the release note. One sentence per user-visible change. Group by Added / Changed / Fixed / Deprecated / Removed. Link to the relevant PRs and docs section.
- Cross-check. Search the docs for the old behavior wording and remove or update stragglers.
Style baseline
- Voice: second person ("you can pass
--jsonto ..."). Avoid "we" except in narrative pages. - Tense: present, not future. The behavior exists once shipped.
- Headings: imperative ("Configure the cache") or noun-phrase ("Cache configuration"), match the surrounding page.
- Code blocks: include the language tag so syntax highlighting works.
- Cross-links: link the first mention of a concept on each page; do not link every occurrence.
- Avoid promising future behavior. If something is unreleased, mark it
experimentalor omit it.
Drift detection
A doc page is drifting if any of these are true:
- It documents a flag, key, or endpoint that no longer exists.
- An example does not run as written.
- A default value in the docs does not match the code.
- A supported-versions list excludes a version the project actually supports, or includes one it dropped.
- A "Coming soon" section references a feature that shipped or was cancelled.
When you find drift, fix it in the same pass and note it in the release note's Fixed group.
Release-note rules
- One sentence per item. If two sentences are needed, the item is likely two items.
- User impact first, internal cause second.
Faster cold start (avoid full bundle download on first run)beatsRefactor bootstrap loader. - Link the PR for engineering readers and the docs page for users.
- Mark breaking changes explicitly:
**Breaking:**prefix. Include migration steps inline or via link.
Anti-patterns
- Massive doc PRs that bundle stylistic rewrites with real updates. Reviewers cannot tell which lines reflect actual behavior changes.
- "Updated docs" commit messages with no detail. Make the commit say what changed and why.
- Adding to the changelog without updating the reference docs the changelog points to.
- Marking a feature as available before its code lands. Documentation must follow behavior, not promise it.
Câu hỏi thường gặp
“Drift” trong tài liệu là gì?
“Drift” xảy ra khi tài liệu không còn phản ánh đúng hành vi thực tế của code, ví dụ như ghi lại một hàm đã bị xóa hoặc một giá trị mặc định đã thay đổi.
Tôi có phải viết lại toàn bộ tài liệu không?
Không, mục tiêu chỉ là cập nhật những phần sai hoặc lỗi thời do thay đổi code. Các phần không bị ảnh hưởng không cần thay đổi.
Công cụ có viết ghi chú phát hành không?
Có, nó có thể giúp tạo ghi chú phát hành ngắn gọn bằng cách tóm tắt các thay đổi người dùng nhìn thấy và ghi lại các cập nhật tài liệu đã làm.
Chi tiết
Mô tả gốc của tác giả
Keep project docs aligned with recent code and feature changes — detect drift, update affected pages, and add release-relevant notes without rewriting unchanged sections.
repo: paperclipai/paperclip
Độ phổ biến
- Sao GitHub
- 103k
- Vị trí xếp hạng
- #796
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
delegate-work
103kGiúp agent giao việc cho agent khác. Hữu ích để chia nhỏ các tác vụ phức tạp và theo dõi tiến độ có tổ chức.
follow-up-results
103kGiúp agent kiểm tra kết quả từ các công việc trước. Hữu ích để theo dõi tiến độ tác vụ và thêm phản hồi từ con người.
review-my-team
103kGiúp agent rà soát nhóm đã kết nối. Hữu ích để có bản tóm tắt về nhóm, tác vụ, điểm nghẽn và các phê duyệt đang chờ.
paperclip-task-bridge
103kGiúp agent tạo và quản lý tác vụ trên nền tảng khác. Hữu ích để làm việc trực tiếp với các hệ thống quản lý dự án.
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.