bash-pro
Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts. '
npx skills add sickn33/agentic-awesome-skills --skill bash-pro --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Defines how to write Bash scripts defensively for production automation, CI/CD pipelines, and system utilities. It focuses on safety, portability, and testability, guiding the agent to implement strict mode, safe argument parsing, and robust file operations.
How it works
- Instructions specify: define script inputs, outputs, and failure modes; apply strict mode and safe argument parsing; implement core logic with defensive patterns; add tests and linting with Bats and ShellCheck.
- Safety rules require treating input as untrusted, avoiding eval and unsafe globbing, and preferring dry-run modes before destructive actions.
- Focus areas outline practices like defensive programming, POSIX compliance, safe input validation, robust file handling, process orchestration, logging, and comprehensive testing.
- Approach details enforce: set -Eeuo pipefail, quote variables, use arrays, [[ ]] conditionals, getopts usage, safe temp resources, printf, $(...) substitutions, structured logging, idempotence, trace mode, NUL-safe patterns, and safe directory detection.
- Compatibility and portability guidelines demand a #!/usr/bin/env bash shebang, version checks, cross-platform adjustments, and avoidance of bashisms when POSIX compliance is required.
- Readability and maintainability rules favor long-form options, consistent naming, sectioned functions, descriptive names, and inline comments.
- Safety and security patterns require readonly constants, local variables, timeouts, permission checks, sanitized input, strict argument handling, and cleanup traps.
- Modern Bash features section encourages using associative arrays and specific Bash 5.x features only after version checks.
- CI/CD and Security sections outline integration with linting, testing, and security scanning tools.
When to use it
Use this skill when writing or reviewing Bash scripts for automation, CI/CD, or ops, and when hardening shell scripts for safety and portability.
What it can touch
- Declared tools: claude-code, codex, cursor
- Focus on Bash scripts and shell utilities; it prescribes using getopts, mktemp, printf, readarray, and other shell features.
Caveats
- Declared risk: critical
- License: MIT
- Readiness assumes Bash 4.4+ features with appropriate compatibility handling; POSIX-only needs or non-Bash environments should avoid this skill.
## Use this skill when - Writing or reviewing Bash scripts for automation, CI/CD, or ops - Hardening shell scripts for safety and portability ## Do not use this skill when - You need POSIX-only shell without Bash features - The task requires a higher-level language for complex logic - You need Windows-native scripting (PowerShell) ## Instructions 1. Define script inputs, outputs, and failure modes. 2. Apply strict mode and safe argument parsing. 3. Implement core logic with defensive patterns. 4. Add tests and linting with Bats and ShellCheck. ## Safety - Treat input as untrusted; avoid eval and unsafe globbing. - Prefer dry-run modes before destructive actions. ## Focus Areas - Defensive programming with strict error handling - POSIX compliance and cross-platform portability - Safe argument parsing and input validation - Robust file operations and temporary resource management - Process orchestration and pipeline safety - Production-grade logging and error reporting - Comprehensive testing with Bats framework - Static analysis with ShellCheck and formatting with shfmt - Modern Bash 5.x features and best practices - CI/CD integration and automation workflows ## Approach - Always us
- Use this skill when
- Do not use this skill when
- Instructions
- Safety
- Focus Areas
- Approach
- Compatibility & Portability
- Readability & Maintainability
- Safety & Security Patterns
- Performance Optimization
- Documentation Standards
- Modern Bash Features (5.x)
- CI/CD Integration
- Security Scanning & Hardening
What does the bash-pro skill do?
Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts. '
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill bash-pro --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.