| name | bash-scripting |
| description | Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | software-development |
| category | devtools |
| risk | safe |
| source | personal |
| tags | ["skill","software-development","devtools","bash","scripting"] |
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 scripting
bash-defensive-patterns - Defensive patterns
Actions
- Define script purpose
- Identify inputs/outputs
- Plan error handling
- Design logging strategy
- Document requirements
Copy-Paste Prompts
Use @bash-pro to design production-ready bash script
Phase 2: Script Structure
Skills to Invoke
bash-pro - Script structure
bash-defensive-patterns - Safety patterns
Actions
- Add shebang and strict mode
- Create usage function
- Implement argument parsing
- Set up logging
- Add cleanup handlers
Copy-Paste Prompts
Use @bash-defensive-patterns to implement strict mode and error handling
Phase 3: Core Implementation
Skills to Invoke
bash-linux - Linux commands
linux-shell-scripting - Shell scripting
Actions
- Implement main functions
- Add input validation
- Create helper functions
- Handle edge cases
- Add progress indicators
Copy-Paste Prompts
Use @bash-linux to implement system commands
Phase 4: Error Handling
Skills to Invoke
bash-defensive-patterns - Error handling
error-handling-patterns - Error patterns
Actions
- Add trap handlers
- Implement retry logic