error-recovery
معالجة فشل الوكلاء باستخدام استراتيجيات إعادة المحاولة الذكية
غالبًا ما يفشل الوكلاء الفرعيون بسبب انتهاء المهلة الزمنية أو عدم وضوح المتطلبات أو مشكلات النطاق. توفر هذه المهارة أنماط إعادة محاولة مثبتة للتعافي من الفشل تلقائيًا.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "error-recovery". My subagent keeps failing to implement the API endpoint. It says the requirements are unclear.
النتيجة المتوقعة:
- Apply Strategy 2: Context Enhancement
- Add these files to provide context: src/types/api.ts, examples/auth-endpoint.ts
- Include clarification: 'Use JWT tokens, bcrypt for passwords, 15min expiry'
- Retry with enhanced prompt containing original task + new context
استخدام "error-recovery". The implementer agent timed out while processing a large file. What should I do?
النتيجة المتوقعة:
- Apply Strategy 1: Simple Retry
- Set max_attempts to 3
- Track attempts in state file
- If all attempts fail, escalate with timeout details
استخدام "error-recovery". My task is blocked with a boundary violation error. How do I recover?
النتيجة المتوقعة:
- Apply Strategy 4: Escalation to contract-resolver
- Gather blocked reason and current contracts
- Route to specialized resolver agent
- Wait for boundary expansion before retrying
التدقيق الأمني
آمنThis is a documentation-only skill containing 224 lines of markdown explaining error recovery patterns for multi-agent AI systems. The static scanner incorrectly flagged documentation examples describing authentication concepts (bcrypt, JWT, password hashing) as 'weak cryptographic algorithms'. These are purely instructional examples, not actual cryptographic implementations. No executable code, network calls, file system access, or command execution exists in this skill.
عوامل الخطر
🌐 الوصول إلى الشبكة (1)
📁 الوصول إلى نظام الملفات (1)
⚙️ الأوامر الخارجية (19)
درجة الجودة
ماذا يمكنك بناءه
بناء أنظمة متعددة الوكلاء مرنة
تنفيذ معالجة أخطاء قوية في منصات تنسيق الوكلاء للتعامل مع الفشل العابر وسيناريوهات الأخطاء المعقدة.
معالجة مهام الوكلاء الفرعيين الفاشلة
تطبيق استراتيجيات إعادة المحاولة عندما يفشل الوكلاء الفرعيون في Claude Code بسبب انتهاء المهلة الزمنية أو عدم وضوح المتطلبات أو مشكلات النطاق.
تصميم سير عمل متسامح مع الأخطاء
إنشاء سير عمل يمكنه التعافي من فشل الوكلاء دون تدخل يدوي باستخدام أنماط إعادة محاولة مثبتة.
جرّب هذه الموجهات
My subagent failed with a timeout. Apply Strategy 1 (Simple Retry) with max 3 attempts. Track attempts in state file.
The implementer said 'I don't have enough context about the database schema'. Use Strategy 2 to add relevant schema files and examples.
The agent completed partial authentication work then failed. Apply Strategy 3 to split 'Implement full auth system' into smaller subtasks.
Task is blocked with status 'boundary_violation'. Escalate to contract-resolver agent with current contracts and blocked reason.
أفضل الممارسات
- صنف دائمًا نوع الفشل قبل اختيار استراتيجية إعادة المحاولة
- تتبع جميع محاولات إعادة المحاولة في ملفات الحالة للتأمل وتصحيح الأخطاء
- احتفظ بالعمل الجزئي من المحاولات الفاشلة عندما يكون ذلك ممكنًا
تجنب
- لا تعيد المحاولة بشكل أعمى دون تحليل سبب الفشل أولاً
- تجنب حلقات إعادة المحاولة اللانهائية - قم بالإيقاف بعد 3 استراتيجيات فاشلة
- لا تتخلص من العمل الجزئي عندما يكمل الوكلاء بعض المتطلبات