diagnostic-reasoning
ما الذي تفعله
هذه المهارة منهج خطوة بخطوة لفهم خلل مُبلَّغ عنه قبل أن يحاول أحد إصلاحه. وهي موجهة للأشخاص الذين يريدون إصلاحات موثوقة للأخطاء بدل التخمين.
متى تستخدمها
- ✓عندما يبلغ أحد عن خلل ولا يستطيع أحد أن يقول بدقة ما الذي يشغّله.
- ✓عندما يقترح تقرير تشخيص سببًا تريد فحصه قبل التصرف.
- ✓عندما يظهر الخلل أحيانًا فقط وتريد أن تعرف السبب.
رابط المهارة
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“يقول المستخدمون إن صفحة الدفع تتعطل أحيانًا. ساعدني في معرفة ما الذي يشغّلها فعلًا قبل أن نغيّر أي شيء.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يعيد الوكيل أولًا إنتاج المشكلة كما يفعل المستخدم الحقيقي، ثم يفصل بين ثلاثة أمور: ما الذي يبدؤها، وما الذي يخفيها أو يكشفها، وما الذي يراه المستخدم فعلًا.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
diagnostic-reasoning
Use this procedure before scoping a reported bug and before acting on a diagnostic report. This skill is the single owner of Firstmate's bug-diagnosis reasoning procedure. Firstmate applies it when briefing delegated investigation and evaluating the resulting evidence, without taking over project-specific investigation itself.
Establish the observed behavior
Start from the end user's experience rather than an internal error string or an implementation hypothesis. Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe. If a faithful reproduction is not feasible, record the exact limitation and use the closest representative path without presenting it as equivalent evidence. Capture the expected behavior, observed behavior, setup, inputs, and repeatability before assigning a cause.
Separate these three facts explicitly:
- The initiating trigger is the event, input, or transition that starts the faulty behavior.
- The masking condition is the independent state, environment, timing, cache, configuration, or path difference that hides or exposes the fault.
- The visible symptom is what the end user or operator can actually observe.
Do not collapse those facts into one label. A masking condition may explain why a fault appears only sometimes without being the initiating cause, and the visible symptom may be several layers downstream from both.
Test the causal explanation
Inspect the failing path and a proven path where the intended behavior is known to work. Compare their inputs, state transitions, dependencies, timing, and control flow to find the earliest meaningful divergence. Inspect relevant history, including blame, commits, migrations, and prior implementations, when it can explain why the paths diverged or which invariant was intended. Do not treat the most recent nearby change as causal without evidence.
Identify the smallest counterfactual that should change the outcome if the leading explanation is true. Change one condition at a time where practical, and record whether the symptom appears, disappears, or remains unchanged. Seek disconfirming evidence deliberately: name what observation would falsify the leading explanation, run that check when feasible, and retain contradictory results instead of explaining them away. Compare the final explanation against the proven path and show why the proposed causal boundary accounts for both the failure and the success.
Scope and act on the result
A diagnosis brief should ask for the reproduction, trigger/mask/symptom separation, divergent and proven path comparison, relevant history, smallest counterfactual, and disconfirming evidence in the report. A diagnostic report should distinguish observed facts from hypotheses and state any unresolved uncertainty that could change the recommended scope. Before acting on the report, verify that its claimed cause explains the end-user reproduction and the proven path without relying on an untested masking condition. If a load-bearing element is missing, route a focused follow-up investigation instead of treating confidence or implementation detail as proof. A diagnosis or implementation-ready recommendation is evidence, not authorization to change code. Implementation still requires the captain's request or another existing lifecycle authority, and the reproduction should become the regression test when a fix is authorized.
الأسئلة الشائعة
لماذا لا نصلح أول رسالة خطأ؟
قد لا تكون رسالة الخطأ هي السبب الحقيقي، لذلك تبدأ المهارة مما يعيشه المستخدم.
ماذا لو لم أستطع إعادة إنتاج الخلل؟
يسجل الوكيل حدود ذلك، ويستخدم أقرب اختبار آمن، دون أن يدّعي أنه مطابق للحالة الحقيقية.
هل تنفع لكل أنواع الأخطاء؟
هي مكتوبة كمنهج عام، فيمكن استخدامها لكثير من أنواع المشكلات المُبلَّغ عنها.
التفاصيل
الوصف الأصلي من المؤلف
Load before scoping a reported bug and before acting on a diagnostic report.
repo: kunchenguid/firstmate
الشعبية
- نجوم GitHub
- 8.5k
- الترتيب
- #12433
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
afk
8.5kيتيح لوكيلك مواصلة العمل وأنت بعيد، مع حفظ القرارات لعودتك وإرسال موجز واضح حين تعود.
ahoy
8.5kيتيح لوكيلك أن يعطيك ملخصًا قصيرًا لما جرى في الجلسة، ويشرح لك أي قرارات ما زالت تنتظرك.
ask-user-authority
8.5kيساعد وكيلك على البت بنفسه في أسئلة المراجعة حين تتوافق بوضوح مع الخطة المتفق عليها، ولا يسألك إلا عندما يكون السؤال غامضًا أو محفوفًا بالمخاطر.
away-quiet-supervision
8.5kيضع قواعد أمان للإشراف على العمل في وضع الغياب أو الهدوء، حتى يبقى الوكيل واضحًا في رسائله ويحجز القرارات التي تحتاج إليك.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.