bash-defensive-patterns
Defensive programming patterns and best practices for writing reliable, production-ready Bash scripts.
Install
npx skills add https://github.com/wshobson/agents --skill bash-defensive-patternsStats
| Total installs | 3,788 |
| Weekly installs | 3.8K |
| GitHub stars | 32.4K |
| First seen | Jan 20, 2026 |
| Source | @wshobson/agents |
Summary
- Covers 10 fundamental patterns including strict mode (set -Eeuo pipefail), error trapping, variable quoting, array handling, and safe temporary file management
- Includes advanced techniques for argument parsing, structured logging, process orchestration with signals, and idempotent script design
- Provides templates for function definitions, file operations, command substitution, and dry-run support to prevent common pitfalls
- Emphasizes input validation, dependency checking, and cleanup mechanisms to ensure reliability across different platforms and edge cases
Tags
Related skills
| Skill | Installs | vs bash-defensive-patterns |
|---|---|---|
| react-modernization | 3,898 | +110 |
| deployment-pipeline-design | 4,348 | +560 |
| mcp integration | 4,257 | +469 |
| elevenlabs-stt | 3,683 | -105 |
| kubernetes-specialist | 5,050 | +1,262 |
FAQ
- How many installs does bash-defensive-patterns have?
- bash-defensive-patterns has 3,788 total installs and 3.8K installs this week.
- Where is bash-defensive-patterns hosted?
- bash-defensive-patterns is published by @wshobson/agents at https://github.com/wshobson/agents.
- How many GitHub stars does bash-defensive-patterns have?
- bash-defensive-patterns has 32.4K GitHub stars.
- When was bash-defensive-patterns first indexed?
- OrangeBot.AI first indexed bash-defensive-patterns on Jan 20, 2026.
- How do I install bash-defensive-patterns?
- Run: npx skills add https://github.com/wshobson/agents --skill bash-defensive-patterns