Skillpedia
برمجة عامة95k · #1307

terminal-recovery

ما الذي تفعله

توجّه هذه المهارة الذكاء الاصطناعي في إصلاح أمر فشل أو تجاوز مهلته أو أعطى مخرجا غير متوقع. وهي موجهة لكل من يشغّلون أوامر ويريدون تشخيصا واضحا بدل إعادة المحاولة مرارا.

متى تستخدمها

  • ✓عندما يفشل أمر ولا تكون رسالة الخطأ واضحة.
  • ✓عندما يتجاوز أمر طويل المدى مهلته أو يتوقف عن إعطاء مخرجات مفيدة.
  • ✓عندما يبدو أن الأمر نجح لكن النتيجة لا تزال تبدو خاطئة.

رابط المهارة

https://github.com/odysseus-dev/odysseus/blob/dev/resources/skills/agent/terminal-recovery/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/odysseus-dev/odysseus/blob/dev/resources/skills/agent/terminal-recovery/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“أمر البناء يفشل باستمرار بخطأ لا أفهمه. اعثر على السبب وأصلحه.”

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

كيف تعمل

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

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

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

When to Use

Use when a command fails, times out, produces incomplete output, or behaves differently from what the task requires.

Procedure

  1. Read the command, exit status, standard output, and standard error before choosing a response.
  2. Confirm the working directory, relevant files, executable availability, permissions, and environment assumptions with minimal read-only probes.
  3. Classify the failure as syntax, missing dependency, wrong path, permissions, resource pressure, timeout, service state, or task logic.
  4. Change one relevant condition and retry the narrowest command that can test the diagnosis.
  5. For a long-running command, use the returned session identifier to poll or provide input instead of launching duplicates.
  6. After recovery, run the original acceptance check and inspect the resulting files or service state.

Pitfalls

  • Do not rerun an unchanged failing command repeatedly.
  • Do not install packages or change global configuration before confirming they are missing and necessary.
  • Do not launch a second server or training job before checking for an existing process and port or device conflicts.
  • Do not treat partial output or a zero exit status as proof that the requested state was produced.

Verification

  • The diagnosed cause is supported by command output or environment state.
  • The corrected command exits as expected.
  • The requested artifact, process, or state passes an independent acceptance check.
الأسئلة الشائعة

هل سيعيد تشغيل الأمر نفسه دون تغيير؟

لا. تقول المهارة إنه لا يجوز أن يعيد تشغيل أمر فاشل دون تغيير مرارا.

هل سيثبّت برامج من تلقاء نفسه؟

تقول المهارة إن عليه التأكد من أن الحزمة مفقودة وأنها مطلوبة قبل تثبيت أي شيء أو تغيير الإعدادات العامة.

كيف يتأكد من نجاح الإصلاح؟

يعيد تشغيل الفحص الأصلي ويفحص الملفات أو حالة الخدمة الناتجة.

التفاصيل

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

Recover from failed terminal commands using evidence-driven diagnosis and bounded retries

repo: odysseus-dev/odysseus

الشعبية

نجوم GitHub
95k
الترتيب
#1307
الترخيص
AGPL-3.0
آخر تحديث
2‏/11‏/2026

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

0

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

التعليقات

  • …

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

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