मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग41k · #6785

shellcheck-configuration

यह क्या करती है

यह गाइड बताती है कि ShellCheck का इस्तेमाल करके अपनी स्क्रिप्ट के कोड में errors कैसे ढूँढें और उसकी quality कैसे सुधारें। यह पक्का करने में मदद करती है कि आपकी स्क्रिप्ट अलग-अलग environment में ठीक चले।

कब इस्तेमाल करें

  • ✓अपनी स्क्रिप्ट को अपने-आप जाँचने वाले टूल सेट करते समय।
  • ✓जब आप किसी मौजूदा स्क्रिप्ट की समस्याएँ ठीक करना चाहते हैं।
  • ✓ShellCheck जो warnings और errors दिखाता है, उन्हें समझने के लिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“commit करने से पहले मेरी स्क्रिप्ट जाँचने के लिए ShellCheck कैसे सेट करूँ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

ShellCheck आपकी स्क्रिप्ट के कोड को बिना चलाए जाँचता है और ऐसे patterns ढूँढता है जिनसे आम तौर पर समस्याएँ होती हैं। यह आपको इन समस्याओं के बारे में बताता है ताकि आप उन्हें ठीक कर सकें।

तकनीकी सामग्री (मूल 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' क्या है?

Linting कोड का विश्लेषण करने की प्रक्रिया है, जिससे प्रोग्राम चलाने से पहले style errors, संभावित bugs और दूसरी समस्याएँ मिल जाती हैं।

ShellCheck को मेरे खास shell के लिए configure करना क्यों ज़रूरी है?

अलग-अलग shells (जैसे bash या sh) के नियम थोड़े अलग होते हैं। सही configure करने से ShellCheck आपकी स्क्रिप्ट को उसी shell के नियमों के हिसाब से जाँचता है जिसे आप इस्तेमाल करना चाहते हैं।

'suppress false positives' का क्या मतलब है?

कभी-कभी ShellCheck किसी ऐसी चीज़ पर warning देता है जो आपके मामले में असल में समस्या नहीं है। 'Suppress' करने का मतलब है उस खास warning को ignore करने के लिए 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills