Skillpedia
الاختبار48k · #5100

logic-locate

ما الذي تفعله

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

متى تستخدمها

  • ✓عندما ينهار برنامج ولديك سجل الأخطاء (stack trace).
  • ✓عندما يفشل اختبار محدد ولا تعرف السبب.
  • ✓عندما تلاحظ نتيجة خاطئة وتريد تتبع مصدرها.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-locate/SKILL.md

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

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

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

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

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

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

“ساعدني في إيجاد سبب هذا الخطأ: [paste stack trace here]”

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

كيف تعمل

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

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

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

Logic-Lens — Fault Locate

When to Use

Use this skill when you need locate the root cause of a CONFIRMED failure via backward-then-forward semi-formal tracing. Trigger when the user provides a stack trace, failing assertion, error message, or specific wrong-value observation — "find the bug", "this test is failing", "track down this crash", "why is...

Setup

Use lazy loading per ../_shared/common.md §13:

  1. Read ../_shared/common.md only for language, Iron Law, Fault Confidence, scope routing, Remedy discipline, config fields, and loading budget.
  2. Read only the relevant step in logic-locate-guide.md as you reach it.
  3. Load ../_shared/logic-risks.md, ../_shared/semiformal-guide.md, ../_shared/semiformal-checklist.md, and ../_shared/report-template.md on demand when the current step needs them.

Process

Step 0. Language + scope routing. Detect language per common.md §1. Confirm a concrete failure exists (stack trace, failing assertion, specific wrong value). If only a suspicion, switch to logic-review.

Step 1. Understand the failure (guide Step 1) — observed behavior, expected behavior, reproduction path.

Step 2. Identify the entry point (guide Step 2) — failing test, outermost application frame, or request handler — whichever is closest to the failure. Stay inside the failure cone first: stack frames, failing test fixture, directly called local functions, and config/env values read on that path. Do not scan unrelated modules unless the trace crosses into them.

Step 3. Trace backward from the failure point (guide Step 3) — walk each value and state back to its origin, building premises at every hop.

Step 4. Trace forward to confirm (guide Step 4) — from the suspected root, verify the trace reaches the observed symptom.

Step 5. Interprocedural tracing if a callee is implicated (guide Step 5) — trace into the callee; check return values under observed conditions, unhandled exceptions, shared-state mutation. Apply the depth limit and Call-Chain Context Label format defined in semiformal-guide.md §Call-Chain Context Labels; at the limit, state the remaining callee path as a premise assumption and downgrade to Medium confidence (per common.md §7).

Step 6. Identify the root divergence and classify (guide Step 6) — state the exact line/expression, the violated premise, the actual behavior, the propagation chain to the symptom; pick the L-code.

Step 7. Output the focused report (guide Step 7) — Fault Confidence (High/Medium/Low, per common.md §7); Primary Fault (single five-field finding); optionally Contributing Factors; a minimal Remedy per common.md §10. Format is mandatory even for simple one-function bugs: always emit the labeled Premises / Trace / Divergence / Trigger / Remedy fields and the Fault Confidence line. Never answer with a plain fix suggestion.

Mode line in report: Fault Locate (Chinese: 故障定位).

Output format: the Findings section has ONE Primary Fault, not a full Critical/Warning/Suggestion split. The Logic Score line is replaced by Fault Confidence: High / Medium / Low.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
الأسئلة الشائعة

ما هو «سجل الاستدعاءات» (stack trace)؟

هو سجل مفصل لاستدعاءات الدوال التي كانت تعمل عند وقوع الخطأ، ويُظهر تسلسل الأحداث.

ماذا يعني «السبب الجذري» (root cause)؟

هو السبب الأساسي الأصلي للمشكلة، أي منشأ كل الأعراض.

هل سيصلح الذكاء الاصطناعي الخطأ؟

ليس مباشرة. يركز على إيجاد السبب وشرحه، ويقدم تقريرًا مفصلًا ليصلحه شخص.

التفاصيل

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

Locate the root cause of a CONFIRMED failure via backward-then-forward semi-formal tracing.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#5100
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

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

0

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

التعليقات

  • …

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

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