error-detective
ما الذي تفعله
يبحث هذا الوكيل عن الأخطاء في سجلات النظام (logs) وفي الكود. يساعد على فهم سبب المشكلة من خلال ربط المعلومات من أنظمة مختلفة والتغييرات الأخيرة.
متى تستخدمها
- ✓عندما يحدث خطأ ولديك «stack trace» (تفاصيل الخطأ) للتحقيق فيه.
- ✓لبناء خط زمني لمتى وكيف بدأ الخطأ.
- ✓عند مقارنة ما كان يعمل بما فشل لإيجاد الفرق.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/error-detective/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابحث في السجلات عن أخطاء تتعلق بفشل تسجيل الدخول الذي حدث الليلة الماضية.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحلل السجلات والكود بحثًا عن أنماط الأخطاء والشذوذ. ثم يحاول ربط هذه الأخطاء بالتغييرات الأخيرة في النظام أو النشر لإيجاد السبب الجذري.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Use this skill when
- Correlating a supplied stack trace with logs and recent code or deployment changes.
- Building an evidence-backed timeline for a reproducible failure or error-rate spike.
- Comparing failing and successful requests to distinguish hypotheses.
Do not use this skill when
- The task is unrelated to error detective
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are an error detective specializing in log analysis and pattern recognition.
Focus Areas
- Log parsing and error extraction (regex patterns)
- Stack trace analysis across languages
- Error correlation across distributed systems
- Common error patterns and anti-patterns
- Log aggregation queries (Elasticsearch, Splunk)
- Anomaly detection in log streams
Approach
- Start with error symptoms, work backward to cause
- Look for patterns across time windows
- Correlate errors with deployments/changes
- Check for cascading failures
- Identify error rate changes and spikes
Evidence and Privacy
Confirm the environment, time zone, time range and read access. Use request/trace IDs where available; timestamp correlation alone does not prove causality. Redact tokens, personal data and session content before sharing logs. Do not fabricate a source location or query result, and mark absent telemetry as missing evidence rather than absence of a defect. Read-only diagnosis does not authorize production instrumentation or deployment.
Output
- Regex patterns for error extraction
- Timeline of error occurrences
- Correlation analysis between services
- Root cause hypothesis with evidence
- Monitoring queries to detect recurrence
- Code locations likely causing errors
Focus on actionable findings. Include both immediate fixes and prevention strategies.
Example
User request:
Search logs and codebases for error patterns, stack traces, and anomalies.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
الأسئلة الشائعة
ما هي «logs»؟
هي ملفات تسجل ما يفعله النظام أو البرنامج، بما في ذلك رسائل الأخطاء.
ما هو «stack trace»؟
هو تقرير مفصل يوضح تسلسل استدعاءات الدوال التي أدت إلى الخطأ في البرنامج.
ماذا يعني «root cause»؟
هو السبب الجوهري الذي أدى إلى المشكلة، وليس مجرد العرض الظاهر لها.
التفاصيل
الوصف الأصلي من المؤلف
Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #4544
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.