egm-drift-report
Skill này làm gì
Skill này so sánh tài liệu thiết kế với code thực tế và liệt kê những khác biệt. Nó dành cho các nhóm có thể đã để tài liệu lạc hậu so với phần mềm.
Khi nào nên dùng
- ✓Khi bạn nghi ngờ code không còn khớp với tài liệu thiết kế của nó.
- ✓Khi bạn muốn kiểm tra tính nhất quán giữa tất cả tài liệu thiết kế hoặc README trong một thư mục.
- ✓Khi bạn cần danh sách các tính năng được mô tả trong tài liệu nhưng không có trong code.
Liên kết skill
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/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
“Kiểm tra tất cả tài liệu thiết kế trong thư mục docs của chúng tôi so với code, và cho tôi biết chỗ nào chúng không còn khớp.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI liệt kê từng tài liệu thiết kế, tìm các file nguồn tương ứng, đọc code hiện tại và so sánh hai bên. Nó ghi lại các tính năng còn thiếu, hành vi đã thay đổi và các khác biệt khác vào một báo cáo.
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.
Detect Drift In Designs and Code
When running in Codex or ChatGPT Work, first read Codex integration.
In Claude Code or Cowork, read ${CLAUDE_PLUGIN_ROOT}/docs/claude.md first.
When the user asks to detect drift across all designs or a set of READMEs, the goal is to identify all instances where the codebase has diverged or failed to implement the specifications described by those designs or READMEs.
Check Input: Verify a directory containing design documents or READMEs is provided. If not provided, ask the user to specify the target directory.
List Documents: List all files in the design directory.
Analyze: For EACH design document:
- Contextualize: Read the design document. Identify the intent, proposed changes, and specific filenames/symbols mentioned.
- Locate Source: Find the corresponding source code files in the source tree. If paths aren't explicit, use code search or grep to locate the relevant classes, functions, or API endpoints mentioned in the doc. Prompt the user to add missing links to the document to make future detection cheaper.
- Verify: Read the current state of those source files.
- Detect Drift: Compare the design vs. reality. Look specifically for:
- Missing Features: Logic described in the doc but absent in the code.
- Incomplete Models: Dataclasses/Classes/Structs/Protos missing fields specified in the design.
- Logic Shortcuts: Hardcoded values where dynamic logic was planned.
- Architectural Divergence: Implementation using different patterns/libraries than proposed.
- Filter: Report ONLY the differences. Do not describe what is working or what matches. If the code matches the design perfectly, output "No drift detected."
Report: Produce a single report listing all discrepancies found.
Append the analysis for each file to
{YYYY-MM-DD}_DRIFT_REPORT.mdusing your file-writing tool.Strict Format:
## <DESIGN_DOC_NAME> <Bulleted list of specific divergences found> <Or "No drift detected">
Guidance
- Be rigorous. If a design doc mentions a specific object, field or file name and the code doesn't have it, that is a reportable drift. Double check for coverage. If there is some part of the logic that is not referenced in a design or README, this is a reportable drift.
- Read files liberally to ensure you are looking at the current state of the code, not relying on memory.
- Process the files sequentially to ensure the tool output buffer doesn't overflow.
Câu hỏi thường gặp
Thế nào là drift?
Drift là bất kỳ khoảng cách nào giữa những gì tài liệu mô tả và những gì code thực sự làm.
Nếu tài liệu không nêu tên code thì sao?
AI tìm các lớp hoặc hàm mà tài liệu nhắc đến và có thể yêu cầu bạn thêm liên kết.
Skill có tự sửa các khác biệt không?
Nhiệm vụ của nó là tạo báo cáo về các khác biệt.
Chi tiết
Mô tả gốc của tác giả
Runs drift detection on all design documents to check for document and code consistency. Produces an actionable report with differences. Use when the user asks to detect drift or check for consistency across all design documents or READMEs in a directory.
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #11880
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
egm-bootstrap
10kDạy agent của bạn thêm hoặc sửa file README trong các thư mục của dự án, dựa trên mô tả rõ ràng về nhiệm vụ của từng phần.
egm-brainstorm
10kGiúp agent của bạn biến một ý tưởng còn thô thành bản tóm tắt khái niệm rõ ràng, đã được rà soát qua câu hỏi và phản biện.
egm-draft
10kGiúp agent của bạn viết tài liệu thiết kế từng phần một, bắt đầu từ bản tóm tắt khái niệm đã thống nhất hoặc từ ghi chú của bạn.
egm-resolve
10kGiúp agent của bạn xử lý các phát hiện rà soát trên tài liệu thiết kế, áp dụng những sửa đổi rõ ràng và hỏi bạn về phần còn lại.
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.