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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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
- Run ShellCheck in CI/CD - Catch issues before merging
- Configure for your target shell - Don't analyze bash as sh
- Document exclusions - Explain why violations are suppressed
- Address violations - Don't just disable warnings
- Enable strict mode - Use
--enable=allwith careful exclusions - Update regularly - Keep ShellCheck current for new checks
- Use pre-commit hooks - Catch issues locally before pushing
- 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
कमेंट
- …
इस repository की और skills
screen-reader-testing
41kआपके एजेंट को screen readers का इस्तेमाल करके वेबसाइटों की जांच करने देता है, ताकि यह पक्का हो सके कि वे accessible हैं।
wcag-audit-patterns
41kआपके एजेंट को वेबसाइटों का accessibility audit करने और WCAG guidelines के हिसाब से समस्याएं ठीक करने में मदद करता है।
multi-reviewer-patterns
41kआपके एजेंट को कई code reviews को एक साथ चलाने देता है। यह एक जैसे findings हटाता है और सारी रिपोर्ट को एक जगह जोड़ता है।
parallel-debugging
41kआपके एजेंट को parallel जांच के साथ जटिल समस्याओं को debug करने और root cause analysis में मदद करता है।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।