From antigravity-awesome-skills
Guides phased workflow to create production-ready bash scripts with defensive patterns, error handling, logging, and Bats/ShellCheck testing. For automation, sysadmin, deployment, and CI/CD scripts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/antigravity-awesome-skills:bash-scriptingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing.
Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing.
Use this workflow when:
bash-pro - Professional scriptingbash-defensive-patterns - Defensive patternsUse @bash-pro to design production-ready bash script
bash-pro - Script structurebash-defensive-patterns - Safety patternsUse @bash-defensive-patterns to implement strict mode and error handling
bash-linux - Linux commandslinux-shell-scripting - Shell scriptingUse @bash-linux to implement system commands
bash-defensive-patterns - Error handlingerror-handling-patterns - Error patternsUse @bash-defensive-patterns to add comprehensive error handling
bash-pro - Logging patternsUse @bash-pro to implement structured logging
bats-testing-patterns - Bats testingshellcheck-configuration - ShellCheckUse @bats-testing-patterns to write script tests
Use @shellcheck-configuration to lint bash script
documentation-templates - DocumentationUse @documentation-templates to document bash script
#!/usr/bin/env bash
set -euo pipefail
readonly SCRIPT_NAME=$(basename "$0")
readonly SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
error() { log "ERROR: $*" >&2; exit 1; }
usage() { cat <<EOF
Usage: $SCRIPT_NAME [OPTIONS]
Options:
-h, --help Show help
-v, --verbose Verbose output
EOF
}
main() {
log "Script started"
# Implementation
log "Script completed"
}
main "$@"
os-scripting - OS scriptinglinux-troubleshooting - Linux troubleshootingcloud-devops - DevOps automationnpx claudepluginhub sickn33/antigravity-awesome-skills --plugin antigravity-awesome-skills5plugins reuse this skill
First indexed May 5, 2026
Guides creation of robust bash scripts with defensive patterns, error handling, structured logging, and automated testing via Bats and ShellCheck.
Generates defensive Bash scripts for production automation, CI/CD pipelines, and system utilities with POSIX compliance, error handling, testing, and modern features.
Teaches defensive Bash programming for production-grade scripts: strict mode, error trapping, input validation, idempotency, and structured logging. Use when writing robust shell scripts, CI/CD pipelines, or system utilities.