bash-defensive-patterns
掌握生产级脚本的防御性Bash编程技巧。适用于编写稳健的shell脚本、CI/CD流水线或需要容错与安全性的系统工具。
name:bash-defensive-patternsdescription: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.
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
Do not use this skill when
Instructions
Safety
Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.
Resources
resources/implementation-playbook.md for detailed patterns, checklists, and templates.