Skillpedia
الاختبار41k · #6785

shellcheck-configuration

ما الذي تفعله

يعلّمك هذا الدليل كيف تستخدم ShellCheck لإيجاد الأخطاء وتحسين جودة كود السكربتات الخاصة بك. يساعدك على التأكد من أن سكربتاتك تعمل جيداً في بيئات مختلفة.

متى تستخدمها

  • ✓عندما تُعدّ أدوات تفحص سكربتاتك تلقائياً.
  • ✓عندما تريد إصلاح مشكلات في سكربت موجود.
  • ✓لفهم التحذيرات والأخطاء التي يعرضها ShellCheck.

رابط المهارة

https://github.com/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“كيف أُعدّ ShellCheck لفحص سكربتاتي قبل أن أرفعها إلى المستودع؟”

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

كيف تعمل

يحلل ShellCheck كود السكربت دون تشغيله، ويبحث عن أنماط تسبب المشكلات عادةً. ثم ينبهك إليها حتى تتمكن من إصلاحها.

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

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

ShellCheck Configuration and Static Analysis

Comprehensive guidance for configuring and using ShellCheck to improve shell script quality, catch common pitfalls, and enforce best practices through static code analysis.

When to Use This Skill

  • Setting up linting for shell scripts in CI/CD pipelines
  • Analyzing existing shell scripts for issues
  • Understanding ShellCheck error codes and warnings
  • Configuring ShellCheck for specific project requirements
  • Integrating ShellCheck into development workflows
  • Suppressing false positives and configuring rule sets
  • Enforcing consistent code quality standards
  • Migrating scripts to meet quality gates

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Run ShellCheck in CI/CD - Catch issues before merging
  2. Configure for your target shell - Don't analyze bash as sh
  3. Document exclusions - Explain why violations are suppressed
  4. Address violations - Don't just disable warnings
  5. Enable strict mode - Use --enable=all with careful exclusions
  6. Update regularly - Keep ShellCheck current for new checks
  7. Use pre-commit hooks - Catch issues locally before pushing
  8. Integrate with editors - Get real-time feedback during development
الأسئلة الشائعة

ما هو «linting»؟

هو تحليل الكود للعثور على أخطاء الأسلوب والأخطاء المحتملة وغيرها من المشكلات قبل تشغيل البرنامج.

لماذا من المهم ضبط ShellCheck على الشل الذي تستخدمه؟

تختلف الشلات (مثل bash أو sh) في بعض القواعد. والضبط الصحيح يضمن أن يفحص ShellCheck سكربتك وفق قواعد الشل الذي تنوي استخدامه.

ماذا تعني «كبح الإنذارات الكاذبة»؟

أحياناً يحذرك ShellCheck من أمر ليس مشكلة فعلية في حالتك. و«الكبح» يعني أن تطلب منه تجاهل ذلك التحذير المحدد، ومن الأفضل أن تشرح سبب ذلك.

التفاصيل

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

Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.

repo: wshobson/agents

الشعبية

نجوم GitHub
41k
الترتيب
#6785
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

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

0

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

التعليقات

  • …

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

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