fix
Skill4 starsChanged 24 days agoMITView on GitHub
أصلح خطأ — تصحيح منهجي هادئ لأي خطأ أو سلوك غير متوقع: إعادة إنتاج، ثم سبب جذري، ثم اختبار يمنع عودته، ثم إصلاح وتوثيق (debug, bug fix, error, root cause).
- Reads credentials
- Deletes or force-pushes
97 other projects use a version of this.
Adopted by
Most recently taken up by
- sammollaei/law-firm-skillstheir own version, first seen Nov 29, 2026
- BipBop-Labs/bipbop-skillstheir own version, first seen Nov 29, 2026
- Vulnetix/pix-ai-coding-assistanttheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- holland-built/no-yolotheir own version, first seen Nov 29, 2026
- hacagahasanli/agents-knowtheir own version, first seen Nov 29, 2026
Used with
Projects with it also use genie-hacks, workfly and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
automagik-devSkillgenie-hacks
Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.
Also in 3 projects that use this
automagik-devSkillworkfly
Discover a procedure and build its saved workflow — dynamic discovery, drafted script, adversarial verification, landed in the catalog.
Also in 3 projects that use this
VulnesisSkillcontainer-scan
Dockerfile / Containerfile / compose analysis plus optional Trivy / Grype / Syft composition when those binaries are present. Use when reviewing a Dockerfile PR, gating `docker build`, building an image SBOM, evaluating base-image risk, or auditing a registry image for CVEs.
Also in 3 projects that use this
VulnesisSkilldep-resolve
Dependency-conflict resolution when a `fix` version bump fails — diagnose the peer-dep tree, find a compatible safe version set, propose package-manager overrides (`overrides`/`resolutions`/`replace`/`[patch]`), fall back to safe-harbour inline patching. Use when an upgrade is blocked by transitive constraints, a peer-dep conflict surfaces, or you need to override a vulnerable transitive without bumping the parent.
Also in 3 projects that use this
bamlabSkilleol-check
Compare the versions of the platform dependencies this repo runs on (Node, React, React Native, Expo, Next.js, Docusaurus, TypeScript, Firebase Functions runtime) against endoflife.date and npm, and say what to upgrade. Use for an EOL / maintenance / "are we up to date" check, or from the factory's weekly run.
Also in 3 projects that use this
- +7 more from Vulnesis
Other versions97 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 97
- react/react★ 253ksame name
- facebook/react★ 253ksame name
- motiondivision/motion★ 36ksame name
- cloudflare/vinext★ 9.4ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- crbnos/carbon★ 2.9ksame name
- Akylas/OSS-DocumentScanner★ 2.7ksame name
- kdlbs/kandev★ 1.2ksame name
87 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- blueprintSkill
- checkpointSkill
- consensus-gateSkill
- db-changeSkill
- documentSkill
- env-auditSkill
- explainSkill
- grill-meSkill
- health-checkSkill
- import-skillSkill
- kickoffSkill
- launch-checkSkill
- nextSkill
- project-statusSkill
- quality-setupSkill
- supabase-securitySkill
The file
Files
<div dir="rtl">/fix — مُصلح الأخطاء الموجّه
القاعدة الذهبية: لا تعدّل سطراً قبل أن تعيد إنتاج الخطأ وتكتب فرضية لسببه الجذري. ولا تُضعف الأمان أو تحذف اختباراً لإخفاء الخطأ (البند 11 —
rules_code_quality.md). المراجع: البند 22 (السبب الجذري)، البند 8 (حد المحاولات)، البند 15 (الفرع والترجيع)، البندان 13 و16 (الاختبارات).
1. اجمع العَرَض
- إذا كان
$ARGUMENTSيحتوي نص الخطأ الحرفي فاعتمده. وإلا فاسأل بأداة AskUserQuestion (header:المشكلة) سؤالين كحد أقصى:- "متى تظهر المشكلة؟" —
عند فتح التطبيق،عند ضغط زر أو إرسال نموذج،عند التشغيل أو البناء (npm run / flutter run)،بعد آخر تعديل مباشرة. - "ماذا ترى؟" —
رسالة خطأ،صفحة بيضاء أو تطبيق متوقف،نتيجة خاطئة،بطء شديد.
- "متى تظهر المشكلة؟" —
- اطلب نص الخطأ الكامل إن لم يصلك: "انسخ رسالة الخطأ كما هي من الطرفية أو من وحدة تحكم المتصفح (F12 ← Console)". المبتدئ لا يعرف مكانها — اشرح له بسطر واحد.
- إذا كان
وضع التعلّممفعّلاً واحتاج المستخدم فهم الرسالة أولاً فاقترح/explain <نص الخطأ>.
2. أعد إنتاج الخطأ
- شغّل أقصر مسار يُظهر الخطأ: الأمر الذي فشل، أو الاختبار المرتبط، أو خطوات يدوية تطلب من المستخدم تنفيذها ووصف النتيجة.
- سجّل الرسالة الحرفية والملف والسطر. إذا تعذّرت إعادة الإنتاج فلا تخمّن إصلاحاً: اطلب معلومة واحدة ناقصة ثم أعد المحاولة.
3. حلّل السبب الجذري (البند 22)
- تتبّع مسار البيانات من المدخل إلى موضع الخطأ (Read و Grep). راجع آخر تعديلات:
git log --oneline -5وgit diff. - اكتب حتى 3 فرضيات مرتبة حسب الاحتمال، واختبر كل واحدة بدليل (تشغيل، طباعة مؤقتة، قراءة الكود)، واحذف أي طباعة مؤقتة بعد الانتهاء.
- اشرح السبب الجذري للمستخدم في سطرين أو ثلاثة بلغة بسيطة: ماذا حدث ولماذا. مثال: "الصفحة بيضاء لأن مفتاح قاعدة البيانات غير موجود في ملف
.env، فيفشل الاتصال قبل عرض أي شيء". - إذا كان السبب قيمة بيئية أو إعداداً عند المستخدم (مثل مفتاح مفقود في
.env) فاطلب منه إصلاحها بنفسه مع تعليمات دقيقة — لا تقرأ.env(البند 5).
4. أصلح بأمان
- أنشئ فرعاً
fix/<وصف-مختصر>إذا كان المشروع مستودع Git (البند 15). - اختبار انحدار أولاً حين يكون ممكناً: اختبار يفشل الآن بسبب الخطأ نفسه (البند 13). شغّل
node .claude/scripts/verify.mjs --quickلتراه يفشل قبل الإصلاح؛ هذا دليل أنه يمسك الخطأ فعلاً. - طبّق أصغر إصلاح صحيح معمارياً يعالج السبب لا العَرَض (Edit لا Write).
- شغّل الفحص الكامل
node .claude/scripts/verify.mjs(البند 16)، لا اختبار الميزة وحده. السطر🔴→🟢في مخرجاته يثبت أن الاختبار فشل ثم نجح؛ انقله في ردك. - صنّف حجم الإصلاح حسب البند 7، وشغّل
/consensus-gateإذا كان متوسطاً أو كبيراً في وضعproduction.
5. حد المحاولات (البند 8)
| الوضع | الحد |
production | 3 محاولات |
prototype | 5 محاولات |
عند بلوغ الحد: توقف فوراً، واعرض على المستخدم الترجيع للفرع المستقر (أوامر مثل git reset --hard تطلب موافقته — البند 15)، وسجّل تقريراً كاملاً في bugs_log.md بكل حقول القالب (رقم المحاولة 3/3، الجذر التقني، الميزات المتأثرة، مرجع Git)، ثم اختم بخيارات مرقّمة لا بنافذة الأسئلة، حتى يبقى التقرير ظاهراً (CLAUDE.md §3): 1. **ترجيع للنسخة المستقرة**، 2. **تجربة نهج مختلف بعد نقاشه**، 3. **عرض التفاصيل التقنية**. تذكير: /rewind تراجع سريع داخل الجلسة فقط، و Git هو شبكة الأمان الحقيقية.
6. وثّق واختم
-
bugs_log.md: صف في جدول الملخص بحالة✅ محلول+ قسم تفاصيل كامل (رسالة الخطأ، الموقع، خطوات إعادة الإنتاج، الجذر التقني، الميزات المتأثرة، طريقة الإصلاح، رقم المحاولة، مرجع Git، حالة الأمان). - درس يمنع التكرار: إن كان الخطأ قد يتكرر في موضع آخر (لا خطأً مطبعياً عابراً)، فأضف صفاً إلى جدول «دروس المشروع» (القسم 14 في
project_map.md): جملة أمر واحدة، مثل «تحقق من وجود المستخدم قبل قراءة بياناته لأن الصفحة تنهار للزائر»، والمصدرخطأ #<رقمه>. يقرؤه الوكيل في بداية كل جلسة. - نفّذ
/document(نوعfix)، مع كتلة🎓 تعلّم:إذا كان وضع التعلّم مفعّلاً: ما الدرس الذي يمنع تكرار هذا الخطأ؟ - بعد الختم: "بروتوكول الاقتراحات" من
.claude/skills/next/SKILL.md— ويُفضَّل أن يكون الاقتراح 🛡️ مرتبطاً بمنع هذا النوع من الأخطاء (اختبار إضافي، تحقق من المدخلات، رسالة خطأ أوضح للمستخدم).
</div>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

