
Bash Scripting
- 1.6k installs
- 44.4k repo stars
- Updated August 4, 2026
- sickn33/antigravity-awesome-skills
bash-scripting is an agent skill for write production-ready bash scripts with defensive patterns, error handling, and tests.
About
The bash-scripting skill is designed for write production-ready Bash scripts with defensive patterns, error handling, and tests. Bash Scripting Workflow Overview Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing. Document requirements Copy-Paste Prompts Phase 2: Script Structure Skills to Invoke bash-pro - Script structure bash-defensive-patterns - Safety patterns Actions 1. Invoke when the user writes bash scripts, shell automation, or needs defensive shell patterns.
- Creating automation scripts.
- Writing system administration tools.
- Building deployment scripts.
- Developing backup solutions.
- Creating CI/CD scripts.
Bash Scripting by the numbers
- 1,581 all-time installs (skills.sh)
- +64 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #96 of 550 CLI & Terminal skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
bash-scripting capabilities & compatibility
- Capabilities
- creating automation scripts · writing system administration tools · building deployment scripts · developing backup solutions
What bash-scripting says it does
Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing.
Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing.
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill bash-scriptingAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.6k |
|---|---|
| repo stars | ★ 44.4k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 4, 2026 |
| Repository | sickn33/antigravity-awesome-skills ↗ |
How do I write production-ready bash scripts with defensive patterns, error handling, and tests?
Write production-ready Bash scripts with defensive patterns, error handling, and tests.
Who is it for?
Developers creating maintainable shell automation and CLI utilities.
Skip if: Skip for PowerShell-only or complex application logic better suited to Python.
When should I use this skill?
User writes bash scripts, shell automation, or needs defensive shell patterns.
What you get
Completed bash-scripting workflow with documented commands, files, and expected deliverables.
- production Bash scripts
- error-handling boilerplate
- shell test scaffolding
Files
Bash Scripting Workflow
Overview
Specialized workflow for creating robust, production-ready bash scripts with defensive programming patterns, comprehensive error handling, and automated testing.
When to Use This Workflow
Use this workflow when:
- Creating automation scripts
- Writing system administration tools
- Building deployment scripts
- Developing backup solutions
- Creating CI/CD scripts
Workflow Phases
Phase 1: Script Design
Skills to Invoke
bash-pro- Professional scriptingbash-defensive-patterns- Defensive patterns
Actions
1. Define script purpose 2. Identify inputs/outputs 3. Plan error handling 4. Design logging strategy 5. Document requirements
Copy-Paste Prompts
Use @bash-pro to design production-ready bash scriptPhase 2: Script Structure
Skills to Invoke
bash-pro- Script structurebash-defensive-patterns- Safety patterns
Actions
1. Add shebang and strict mode 2. Create usage function 3. Implement argument parsing 4. Set up logging 5. Add cleanup handlers
Copy-Paste Prompts
Use @bash-defensive-patterns to implement strict mode and error handlingPhase 3: Core Implementation
Skills to Invoke
bash-linux- Linux commandslinux-shell-scripting- Shell scripting
Actions
1. Implement main functions 2. Add input validation 3. Create helper functions 4. Handle edge cases 5. Add progress indicators
Copy-Paste Prompts
Use @bash-linux to implement system commandsPhase 4: Error Handling
Skills to Invoke
bash-defensive-patterns- Error handlingerror-handling-patterns- Error patterns
Actions
1. Add trap handlers 2. Implement retry logic 3. Create error messages 4. Set up exit codes 5. Add rollback capability
Copy-Paste Prompts
Use @bash-defensive-patterns to add comprehensive error handlingPhase 5: Logging
Skills to Invoke
bash-pro- Logging patterns
Actions
1. Create logging function 2. Add log levels 3. Implement timestamps 4. Configure log rotation 5. Add debug mode
Copy-Paste Prompts
Use @bash-pro to implement structured loggingPhase 6: Testing
Skills to Invoke
bats-testing-patterns- Bats testingshellcheck-configuration- ShellCheck
Actions
1. Write Bats tests 2. Run ShellCheck 3. Test edge cases 4. Verify error handling 5. Test with different inputs
Copy-Paste Prompts
Use @bats-testing-patterns to write script testsUse @shellcheck-configuration to lint bash scriptPhase 7: Documentation
Skills to Invoke
documentation-templates- Documentation
Actions
1. Add script header 2. Document functions 3. Create usage examples 4. List dependencies 5. Add troubleshooting section
Copy-Paste Prompts
Use @documentation-templates to document bash scriptScript Template
#!/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 "$@"Quality Gates
- [ ] ShellCheck passes
- [ ] Bats tests pass
- [ ] Error handling works
- [ ] Logging functional
- [ ] Documentation complete
Related Workflow Bundles
os-scripting- OS scriptinglinux-troubleshooting- Linux troubleshootingcloud-devops- DevOps automation
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
How it compares
Pick bash-scripting for ops-focused shell workflows with testing discipline; use language-specific automation skills when Bash is not your deployment standard.
FAQ
What does bash-scripting do?
Write production-ready Bash scripts with defensive patterns, error handling, and tests.
When should I use bash-scripting?
User writes bash scripts, shell automation, or needs defensive shell patterns.
Is bash-scripting safe to install?
Review the Security Audits panel on this page before installing in production.