Skillpedia
التوثيق10k · #11880

egm-drift-report

ما الذي تفعله

تقارن هذه المهارة وثائق التصميم بالشيفرة الفعلية وتسرد الفروقات. وهي مناسبة للفرق التي قد تكون وثائقها تأخرت عن البرمجيات.

متى تستخدمها

  • ✓عندما تشك في أن الشيفرة لم تعد مطابقة لوثائق تصميمها.
  • ✓عندما تريد فحصًا للاتساق عبر كل وثائق التصميم أو ملفات README في مجلد.
  • ✓عندما تحتاج إلى قائمة بميزات موصوفة في الوثائق لكنها غير موجودة في الشيفرة.

رابط المهارة

https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-drift-report/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“افحص كل وثائق التصميم في مجلد الوثائق لدينا مقابل الشيفرة، وأخبرني أين لم تعد متطابقة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يسرد الذكاء الاصطناعي كل وثيقة تصميم، ويجد ملفات المصدر المطابقة، ويقرأ الشيفرة الحالية ويقارنها بالوثيقة. ويسجل الميزات الناقصة والسلوك المتغير والفروقات الأخرى في تقرير.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من 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.

  1. Check Input: Verify a directory containing design documents or READMEs is provided. If not provided, ask the user to specify the target directory.

  2. List Documents: List all files in the design directory.

  3. 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."
  4. Report: Produce a single report listing all discrepancies found.

    • Append the analysis for each file to {YYYY-MM-DD}_DRIFT_REPORT.md using your file-writing tool.

    • Strict Format:

      ## <DESIGN_DOC_NAME>
      
      <Bulleted list of specific divergences found>
      <Or "No drift detected">
      
  5. 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.
الأسئلة الشائعة

ما الذي يُعد انحرافًا؟

الانحراف أي فجوة بين ما تصفه الوثيقة وما تفعله الشيفرة فعلًا.

ماذا لو لم تذكر الوثيقة اسم شيفرتها؟

يبحث الذكاء الاصطناعي عن الفئات أو الدوال التي تذكرها الوثيقة، وقد يطلب منك إضافة روابط.

هل تصلح المهارة الفروقات؟

مهمتها إنتاج تقرير بالفروقات.

التفاصيل

الوصف الأصلي من المؤلف

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.

repo: google/elephant-goldfish-model

الشعبية

نجوم GitHub
10k
الترتيب
#11880
الترخيص
Apache-2.0
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة