egm-drift-report
Fungsinya
Skill ini membandingkan dokumen desain dengan kode yang sebenarnya dan mendaftar perbedaannya. Skill ini ditujukan bagi tim yang dokumentasinya mungkin sudah tertinggal dari perangkat lunak.
Kapan dipakai
- ✓Saat Anda menduga kode tidak lagi sesuai dengan dokumen desainnya.
- ✓Ketika Anda ingin pemeriksaan konsistensi untuk semua dokumen desain atau README dalam sebuah folder.
- ✓Ketika Anda membutuhkan daftar fitur yang dijelaskan dalam dokumen tetapi tidak ada di kode.
Link skill
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Periksa semua dokumen desain di folder dokumentasi kami terhadap kode, dan beri tahu saya bagian mana yang sudah tidak sesuai.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI mendaftar setiap dokumen desain, mencari file sumber yang sesuai, membaca kode terkini, dan membandingkan keduanya. Fitur yang hilang, perilaku yang berubah, dan perbedaan lain dicatat dalam laporan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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.
Pertanyaan umum
Apa yang dihitung sebagai drift?
Drift adalah setiap kesenjangan antara apa yang dijelaskan dokumen dan apa yang benar-benar dilakukan kode.
Bagaimana jika dokumen tidak menyebut kodenya?
AI mencari kelas atau fungsi yang disebut dokumen dan mungkin meminta Anda menambahkan tautan.
Apakah skill ini memperbaiki perbedaannya?
Tugasnya adalah membuat laporan tentang perbedaan tersebut.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 10k
- Peringkat
- #11880
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
egm-bootstrap
10kMembantu agent Anda menambahkan atau memperbaiki file README di seluruh folder proyek, dengan deskripsi yang jelas tentang tugas setiap bagian.
egm-brainstorm
10kMembantu agent Anda mengubah ide kasar menjadi ringkasan konsep yang jelas dan sudah ditinjau, melalui pertanyaan dan kritik.
egm-draft
10kMembantu agent Anda menulis dokumen desain satu bagian demi satu bagian, mulai dari ringkasan konsep yang disepakati atau catatan Anda.
egm-resolve
10kMembantu agent Anda mengerjakan temuan tinjauan pada dokumen desain, menerapkan perbaikan yang jelas dan menanyakan Anda tentang sisanya.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.