
from awesome-skills-cn78
Defensive, production-grade Bash scripting patterns and CI/CD best practices: strict mode, safe argument parsing, testing with Bats, and tooling (ShellCheck/shf
Bash Pro provides a compact, practical guide to writing and maintaining defensive, production-ready Bash scripts. It codifies best practices for safety (set -Eeuo pipefail, traps, mktemp), portability (GNU vs BSD tool handling), testability (Bats), and observability (structured logging, verbosity levels). The skill walks through argument parsing, secure temporary file handling, NUL-safe file iteration, and patterns to avoid (eval, unquoted expansions).
Use this skill when authoring or reviewing shell scripts for automation, CI/CD workflows, system utilities, or ops tooling that must be safe and maintainable in production. Avoid it for strictly POSIX-only targets where Bash features cannot be used, or for Windows/PowerShell-native automation.
This skill is focused on developers and automation agents that can produce or validate shell code (e.g., Copilot/Codex-style coding assistants, CLI-focused agents, or CI automation bots). It is primarily procedural and tooling-oriented, so any agent that can edit or review code benefits from it.
Comprehensive Bash scripting reference skill with strong security patterns and defensive programming guidance. No bundled scripts to test — purely instructional content. Well-written but monolithic; all content is in one large SKILL.md without separation into scripts/ or references/ directories. Covers strict mode, argument parsing, testing, CI/CD integration, and advanced techniques thoroughly.
Risk level in frontmatter is 'critical' which seems like a mislabel — the skill promotes safe Bash practices, not critical-risk operations. Likely intended as 'critical' importance for production scripts. No security concerns whatsoever; skill actively teaches defensive patterns.