Skillpedia
برمجة عامة81k · #1554

adr-review

ما الذي تفعله

تُرشد هذه المهارة الوكيل إلى مقارنة تغييرات الشيفرة بسجلات القرارات المعمارية المقبولة، والإشارة إلى المخالفات أو الانحراف. وهي موجهة للفرق التي تريد أن تحترم شيفرتها القرارات التي اتفقت عليها.

متى تستخدمها

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

رابط المهارة

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-review/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-adr/skills/adr-review/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“قارن فرعي بقرارات المعمارية المقبولة لدينا، وأخبرني إن كان أي تغيير يخرق قراراً.”

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

كيف تعمل

يقرأ وكيلك الفروقات، ويجد سجلات القرارات المتعلقة بالملفات المعدّلة، ويتحقق مما إذا كانت التغييرات تناقض قراراً مقبولاً.

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

النص الأصلي من المؤلف، مباشرة من GitHub.

ADR Review

Review code changes against accepted Architecture Decision Records to detect violations, drift, and non-compliance.

When to use

Before merging a PR, after significant code changes, or as part of a periodic compliance check. Use this to ensure code changes respect the architectural decisions the team has agreed upon.

Steps

  1. Get diff -- Run git diff main...HEAD --name-only (or the specified branch) to list changed files. Then run git diff main...HEAD to get the full diff content.

  2. Find relevant ADRs -- For each changed file:

    • Grep the file for ADR references (ADR-\d+)
    • Grep docs/adr/ for ADRs that mention the changed file paths or modules
    • Call mcp__plugin_ruflo-core_ruflo__memory_search with the file path and change summary to find semantically related ADRs
  3. Load ADR content -- Read each relevant ADR file. Focus on:

    • The Decision section (what was decided)
    • The Status (only enforce "accepted" ADRs)
    • The Consequences (expected constraints)
  4. Check for violations -- Analyze each changed file against its relevant ADRs:

    • Does the code change contradict an accepted decision?
    • Does it use a technology/pattern that an ADR explicitly rejected?
    • Does it modify a module in a way the ADR's consequences warned against?
    • Is the code referencing a deprecated or superseded ADR?
  5. Query relationship graph -- Call mcp__plugin_ruflo-core_ruflo__memory_list with namespace adr-edges (rows are keyed <relation>:<from>__<to> with relation supersedes, amends or depends-on) to check if any referenced ADR has been superseded. If the namespace is empty, run adr-index first. If a referenced ADR is superseded, flag that the code references an outdated decision.

  6. Report -- Present findings as a compliance report:

    ## ADR Compliance Report
    
    ### Violations
    - [ ] <file>:<line> — violates ADR-NNN: <reason>
    
    ### Warnings
    - [!] <file> references superseded ADR-NNN (replaced by ADR-MMM)
    
    ### Compliant
    - [x] <file> — consistent with ADR-NNN
    
    ### Unlinked Changes
    - [?] <file> — no ADR coverage (consider creating one)
    
  7. Suggest actions -- For each violation, suggest whether to update the code or propose a new ADR to supersede the violated one.

الأسئلة الشائعة

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

نعم. تقول المهارة إنها تطبّق القرارات ذات الحالة المقبولة فقط.

أي فرع تقارن به؟

تقارن بالفرع main افتراضياً، لكن يمكنك تسمية فرع آخر.

هل تغيّر الشيفرة؟

المهارة للمراجعة، لذلك تبلغ عن المشكلات وتترك التعديلات لك.

التفاصيل

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

Review code changes against accepted ADRs for compliance violations

repo: ruvnet/ruflo

الشعبية

نجوم GitHub
81k
الترتيب
#1554
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

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

0

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

التعليقات

  • …

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

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