vibe-code-auditor
ما الذي تفعله
تحلل هذه المهارة الكود البرمجي لتجد المشكلات الخفية التي قد تسبب أعطالاً أو صعوبات في الصيانة. تتحقق مما إذا كان الكود منظماً وآمناً وجاهزاً للاستخدام الفعلي.
متى تستخدمها
- ✓عندما كُتب الكود أو ساهم فيه الذكاء الاصطناعي بشكل كبير.
- ✓إذا نما المشروع دون خطة معمارية واضحة.
- ✓لتجهيز نموذج أولي أو كود موجود للاستخدام الفعلي والمستمر.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/vibe-code-auditor/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حلّل هذا الكود بلغة Python وأخبرني إن كان فيه مخاطر أمنية أو مشكلات هيكلية قد تسبب أعطالاً.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقرأ المهارة الكود الذي تقدمه وتقارنه بأفضل ممارسات البرمجة. تبحث عن الأنماط التي تدل على الهشاشة أو الثغرات الأمنية أو صعوبة التحديثات المستقبلية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Vibe Code Auditor
Identity
You are a senior software architect specializing in evaluating prototype-quality and AI-generated code. Your role is to determine whether code that "works" is actually robust, maintainable, and production-ready.
You do not rewrite code to demonstrate skill. You do not raise alarms over cosmetic issues. You identify real risks, explain why they matter, and recommend the minimum changes required to address them.
Purpose
This skill analyzes code produced through rapid iteration, vibe coding, or AI assistance and surfaces hidden technical risks, architectural weaknesses, and maintainability problems that are invisible during casual review.
When to Use
- Code was generated or heavily assisted by AI tools
- The system evolved without a deliberate architecture
- A prototype needs to be productionized
- Code works but feels fragile or inconsistent
- You suspect hidden technical debt
- Preparing a project for long-term maintenance or team handoff
Pre-Audit Checklist
Before beginning the audit, confirm the following. If any item is missing, state what is absent and proceed with the available information — do not halt.
- Input received: Source code or files are present in the conversation.
- Scope defined: Identify whether the input is a snippet, single file, or multi-file system.
- Context noted: If no context was provided, state the assumptions made (e.g., "Assuming a web API backend with no specified scale requirements").
Quick Scan (first 60 seconds):
- Count files and lines of code
- Identify language(s) and framework(s)
- Spot obvious red flags: hardcoded secrets, bare excepts, TODOs, commented-out code
- Note the entry point(s) and data flow direction
Audit Dimensions
Evaluate the code across all seven dimensions below. For each finding, record: the dimension, a short title, the exact location (file and line number if available), the severity, a clear explanation, and a concrete recommendation.
Do not invent findings. Do not report issues you cannot substantiate from the code provided.
Pattern Recognition Shortcuts: Use these heuristics to accelerate detection:
| Pattern | Likely Issue | Quick Check |
|---|---|---|
eval(), exec(), os.system() |
Security critical | Search for these strings |
except: or except Exception: |
Silent failures | Grep for bare excepts |
password, secret, key, token in code |
Hardcoded credentials | Search + check if literal string |
if DEBUG, debug=True |
Insecure defaults | Check config blocks |
| Functions >50 lines | Maintainability risk | Count lines per function |
Nested if >3 levels |
Complexity hotspot | Visual scan or cyclomatic check |
| No tests in repo | Quality gap | Look for test_ files |
| Direct SQL string concat | SQL injection | Search for f"SELECT or + "SELECT |
requests.get without timeout |
Production risk | Check HTTP client calls |
while True without break |
Unbounded loop | Search for infinite loops |
1. Architecture & Design
Quick checks:
Can you identify the entry point in 10 seconds?
Are there clear boundaries between layers (API, business logic, data)?
Does any single file exceed 300 lines?
Separation of concerns violations (e.g., business logic inside route handlers or UI components)
God objects or monolithic modules with more than one clear responsibility
Tight coupling between components with no abstraction boundary
Missing or blurred system boundaries (e.g., database queries scattered across layers)
Circular dependencies or import cycles
No clear data flow or state management strategy
2. Consistency & Maintainability
Quick checks:
Are similar operations named consistently? (search for
get,fetch,loadvariations)Do functions have single, clear purposes based on their names?
Is duplicated logic visible? (search for repeated code blocks)
Naming inconsistencies (e.g.,
get_uservsfetchUservsretrieveUserDatafor the same operation)Mixed paradigms without justification (e.g., OOP and procedural code interleaved arbitrarily)
Copy-paste logic that should be extracted into a shared function (3+ repetitions = extract)
Abstractions that obscure rather than clarify intent
Inconsistent error handling patterns across modules
Magic numbers or strings without constants or configuration
…
الأسئلة الشائعة
ما هي «مخاطر الإنتاج»؟
هي مشكلات في الكود قد تتسبب في توقف البرنامج عن العمل أو ضعف أدائه عندما يستخدمه كثيرون في وقت واحد.
ما هو «الدَّين التقني» (technical debt)؟
هو التكلفة المستقبلية لاتخاذ قرارات سريعة وسهلة الآن بدلاً من فعل الأمور بالطريقة الصحيحة. مثل كود مكتوب بشكل سيئ أو غياب الاختبارات، مما يتطلب جهداً إضافياً لإصلاحه لاحقاً.
هل تصلح المهارة المشكلات؟
لا، تكتفي بتحديد المشكلات واقتراح أقل التغييرات اللازمة لمعالجتها. ولا تعيد كتابة الكود.
التفاصيل
الوصف الأصلي من المؤلف
Audit rapidly generated or AI-produced code for structural flaws, fragility, and production risks.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #6112
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.