मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #4014

bash-defensive-patterns

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

यह टूल आपको ज़्यादा सुरक्षित और भरोसेमंद कमांड-लाइन स्क्रिप्ट (Bash) लिखने में मदद करता है। यह सिखाता है कि आम गलतियों से कैसे बचें, ताकि अनपेक्षित हालात में भी आपकी स्क्रिप्ट सही तरह चले।

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

  • ✓कंप्यूटर पर काम अपने-आप करवाने के लिए स्क्रिप्ट बनाते समय।
  • ✓सर्वर या क्लाउड पर चलने वाले टूल बनाते समय।
  • ✓जब आपकी स्क्रिप्ट मज़बूत हो और आसानी से फ़ेल न हो, यह ज़रूरी हो।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bash-defensive-patterns/SKILL.md

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

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

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

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

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

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

“Bash स्क्रिप्ट कैसे लिखूँ जो किसी फ़ाइल को मिटाने से पहले जाँच ले कि वह मौजूद है या नहीं?”

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

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

टूल ऐसे तरीके सुझाता है जैसे, जो काम आप करने जा रहे हैं उसे पहले जाँचना, यह सुनिश्चित करना कि स्क्रिप्ट को मिलने वाली जानकारी सही है, और स्क्रिप्ट को एरर रिपोर्ट करने के लिए सेट करना।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Bash Defensive Patterns

Comprehensive guidance for writing production-ready Bash scripts using defensive programming techniques, error handling, and safety best practices to prevent common pitfalls and ensure reliability.

Use this skill when

  • Writing production automation scripts
  • Building CI/CD pipeline scripts
  • Creating system administration utilities
  • Developing error-resilient deployment automation
  • Writing scripts that must handle edge cases safely
  • Building maintainable shell script libraries
  • Implementing comprehensive logging and monitoring
  • Creating scripts that must work across different platforms

Do not use this skill when

  • You need a single ad-hoc shell command, not a script
  • The target environment requires strict POSIX sh only
  • The task is unrelated to shell scripting or automation

Instructions

  1. Confirm the target shell, OS, and execution environment.
  2. Enable strict mode and safe defaults from the start.
  3. Validate inputs, quote variables, and handle files safely.
  4. Add logging, error traps, and basic tests.

Safety

  • Avoid destructive commands without confirmation or dry-run flags.
  • Do not run scripts as root unless strictly required.

Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.

Resources

  • resources/implementation-playbook.md for detailed patterns, checklists, and templates.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
अक्सर पूछे जाने वाले सवाल

'Bash स्क्रिप्ट' क्या होती हैं?

ये कमांड की छोटी श्रृंखलाएँ हैं जो आप कंप्यूटर के लिए लिखते हैं, ताकि वह कोई काम अपने-आप कर सके।

'डिफ़ेंसिव स्क्रिप्ट' की ज़रूरत क्यों है?

ताकि आपकी स्क्रिप्ट गलती से कोई दिक्कत न करे, जैसे ज़रूरी फ़ाइलों का मिट जाना या अचानक रुक जाना।

क्या यह टूल मेरे लिए स्क्रिप्ट लिख देगा?

नहीं, यह आपको सबसे अच्छे तरीके सिखाता है, ताकि आप खुद बेहतर और सुरक्षित स्क्रिप्ट लिख सकें।

जानकारी

लेखक का मूल विवरण

Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#4014
लाइसेंस
MIT
अपडेट की गई
15/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

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