
Bash Pro — Defensive Bash Scripting
from awesome-skills-cn38
Production-grade Bash best practices: strict mode, safe argument parsing, portability, testing, static analysis and CI integration for robust automation scripts
What it does
A comprehensive set of defensive Bash scripting patterns and guidelines for production automation, CI/CD pipelines, and system utilities. Documents strict mode, safe temp file handling, argument parsing, testing with Bats, linting with ShellCheck, and performance/security practices.
When to use it
Use when authoring or reviewing Bash scripts that will run in production, be included in CI workflows, or handle sensitive operations. Not suitable for POSIX-only targets or Windows-native PowerShell tasks.
What's included
- Scripts: none bundled in the SKILL body, but extensive examples and code patterns are provided (strict mode, mktemp usage, safe loops, logging).
- References: recommends tools like ShellCheck, shfmt, bats-core and CI patterns.
- Instructions: step-by-step guidance on inputs/outputs, failure modes, error trapping, portability checks, and observability.
Compatible agents
Inferred: general-purpose automation agents and CI-focused workflows that produce or review shell scripts.
Tags
Information
- Repository
- awesome-skills-cn
- Stars
- 38
- Installs
- 0







