شعار Systematic Debugging

Systematic Debugging

المجتمع
AlexAI-MCP
systematic-debugging

اتبع دورة تصحيح أخطاء منضبطة ومتعددة المراحل لمهام Claude Code. استخدمها عندما يكون سبب الإخفاق غير واضح، أو يصعب تحديد موضع التراجعات، أو تكون السجلات كثيرة الضوضاء، أو يجب إثبات نجاح إصلاح الخطأ بدلًا من التخمين.

نظرة عامة

الناشرAlexAI-MCP
المستودعhermes-CCC
اسم المهارةsystematic-debugging
النجوم
134
التفريعات
22
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها AlexAI-MCP على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Systematic Debugging في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/systematic-debugging
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/skills/systematic-debugging .claude/skills/systematic-debugging
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Systematic Debugging في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Systematic Debugging تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Systematic Debugging بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Systematic Debugging

Purpose

  • Prevent guess-driven bug fixing.
  • Turn a vague failure into a proved root cause.
  • Separate symptom collection from patching.
  • Minimize regressions while repairing defects.
  • Leave behind a reproducible explanation of the failure.

Activation Signals

  • Use this skill when the root cause is unknown.
  • Use this skill when a previous fix attempt failed.
  • Use this skill when the bug spans multiple files or layers.
  • Use this skill when logs, stack traces, or user reports disagree.
  • Use this skill when the fix must be defensible in review.

Debugging Phases

  1. Stabilize the report.
  2. Reproduce the failure.
  3. Narrow the surface area.
  4. Instrument the system.
  5. Generate hypotheses.
  6. Prove or kill hypotheses.
  7. Patch the true cause.
  8. Verify the fix.
  9. Add regression protection.
  10. Save the lesson if durable.

Phase 1: Stabilize The Report

  • Write the exact symptom in one sentence.
  • Record expected behavior.
  • Record actual behavior.
  • Capture environment assumptions.
  • Capture whether the issue is deterministic or flaky.
  • Capture whether it is new, old, or recently regressed.
  • Avoid editing code during this phase.

Phase 2: Reproduce The Failure

  • Find the smallest reproducible path.
  • Prefer automated reproduction over manual UI clicking.
  • Save the failing command when possible.
  • If no test exists, create a reproduction harness.
  • Record exact inputs, flags, and fixtures.
  • If the bug is flaky, measure frequency instead of pretending it is stable.

Phase 3: Narrow The Surface Area

  • Identify likely subsystem boundaries.
  • Diff recent changes when history is relevant.
  • Check whether the failure begins before or after I/O boundaries.
  • Compare passing and failing code paths.
  • Use binary search over scope when the change window is large.
  • Reduce the problem before adding more instrumentation.

Phase 4: Instrument The System

  • Add temporary logging only where uncertainty exists.
  • Prefer cheap inspection over permanent noisy logging.
  • Log invariant checkpoints, not everything.
  • Print or inspect the variables that decide branching behavior.
  • If async behavior is involved, log timestamps and ordering.
  • Remove temporary instrumentation after the fix unless it becomes useful observability.

Phase 5: Generate Hypotheses

  • Generate multiple plausible causes, not one favorite theory.
  • Rank hypotheses by explanatory power and test cost.
  • Prefer hypotheses that explain all observed symptoms.
  • Write down what evidence would falsify each one.
  • Do not patch based on intuition alone.

Phase 6: Prove Or Kill Hypotheses

  • Design the smallest experiment that differentiates the top hypotheses.
  • Run one high-signal experiment at a time.
  • Keep notes on what each result means.
  • Kill hypotheses aggressively when evidence contradicts them.
  • Escalate instrumentation only when the current evidence is insufficient.

Phase 7: Patch The True Cause

  • Change only the code implicated by evidence.
  • Prefer the smallest change that restores the invariant.
  • Avoid bundling unrelated cleanup in the debug patch.
  • If the bug exposed a missing boundary, add the boundary explicitly.
  • Preserve readability even for emergency fixes.

Phase 8: Verify The Fix

  • Re-run the original reproduction.
  • Re-run nearby tests.
  • Check negative cases, not just the positive happy path.
  • Validate that logs or state transitions now match expectation.
  • If the bug was flaky, run enough repetitions to earn confidence.

Phase 9: Add Regression Protection

  • Add or strengthen a test that would have caught the bug.
  • Place the test at the lowest layer that reliably expresses the defect.
  • If a test is impossible, document the missing seam.
  • Prefer deterministic tests over timing-sensitive ones.

Phase 10: Save The Lesson

  • Save a durable memory entry if the issue reflects a reusable pattern.
  • Save a trajectory if the investigation is valuable for QA or training data.
  • Update docs only if the bug revealed a workflow or contract gap.

Evidence Sources

  • failing tests
  • stack traces
  • logs
  • diffs
  • recent commits
  • config files
  • environment variables
  • production reports
  • screenshots or traces

Useful Commands

bash
pytest -k "failing_case" -vv
rg "relevant_symbol|error_text" .
git diff --stat
git log --oneline -- path/to/file

Decision Rules

  • If you cannot reproduce the issue, stop calling it fixed.
  • If two symptoms disagree, debug the disagreement first.
  • If a bug appears after a refactor, compare invariants, not just syntax.
  • If instrumentation grows large, your narrowing step failed.
  • If the patch is broad, your hypothesis is still weak.

Anti-Patterns

  • editing first, explaining later
  • assuming the first stack trace frame is the root cause
  • mixing refactor work into a debug patch
  • adding logs everywhere
  • declaring victory after one pass on a flaky issue

Output Contract

Return a compact debug summary with:

  • symptom
  • reproduction
  • root cause
  • patch
  • verification
  • regression protection
  • residual risk

Example Output

markdown
Symptom: login succeeds but redirect loops back to /signin
Reproduction: pytest tests/test_auth.py::test_redirect_loop -vv
Root cause: middleware treated a partially hydrated session as unauthenticated
Patch: guard now waits for the session token before redirecting
Verification: targeted auth test passed; manual flow rechecked
Regression protection: added test for partially hydrated session state
Residual risk: none observed outside auth middleware

Failure Modes

  • no reliable reproduction
  • incomplete instrumentation
  • hypothesis chosen before evidence
  • patch fixes symptom but not cause
  • missing regression test

Recovery Moves

  • Build a reproduction harness if one does not exist.
  • Re-scope the failing boundary if evidence stays noisy.
  • Revert speculative changes and return to a known failing baseline.
  • Reduce the diff until each change has a reason.

Checklist

  1. Stabilize the report.
  2. Reproduce the failure.
  3. Narrow the surface area.
  4. Instrument selectively.
  5. Rank hypotheses.
  6. Prove or kill them.
  7. Patch the true cause.
  8. Verify with evidence.
  9. Add regression protection.
  10. Save durable lessons.

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

ماذا تفعل مهارة الذكاء الاصطناعي Systematic Debugging؟

اتبع دورة تصحيح أخطاء منضبطة ومتعددة المراحل لمهام Claude Code. استخدمها عندما يكون سبب الإخفاق غير واضح، أو يصعب تحديد موضع التراجعات، أو تكون السجلات كثيرة الضوضاء، أو يجب إثبات نجاح إصلاح الخطأ بدلًا من التخمين.

لماذا تستخدم Systematic Debugging على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Systematic Debugging عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Systematic Debugging في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/systematic-debugging. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Systematic Debugging؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Systematic Debugging؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Systematic Debugging معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Systematic Debugging مجانية؟

نعم. نشرها AlexAI-MCP على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار affaan-m

E2e Testing

affaan-m
المجتمعشائع

أنماط اختبارات E2E باستخدام Playwright، ونموذج Page Object Model، والإعداد، والتكامل مع CI/CD، وإدارة المُخرَجات، واستراتيجيات التعامل مع الاختبارات غير المستقرة.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Eval Harness

affaan-m
المجتمعشائع

إطار رسمي لتقييم جلسات Claude Code، يطبّق مبادئ التطوير القائم على التقييمات (EDD).

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Tdd Workflow

affaan-m
المجتمعشائع

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

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Angular Developer

affaan-m
المجتمعشائع

إنشاء شيفرة Angular وتقديم إرشادات معمارية. يُستخدم عند إنشاء مشروع أو مكوّن أو خدمة، أو عند العمل على أفضل الممارسات في التفاعلية (signals وlinkedSignal والموارد)، والنماذج، وحقن الاعتماديات، والتوجيه، وSSR، وإمكانية الوصول (ARIA)، والرسوم المتحركة، والتنسيق (أنماط المكوّنات وTailwind CSS)، والاختبارات، أو إنشاء أدوات CLI…

39.1K
261.1K
التعليمات
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇