| name | shell-scripting |
| description | Shell scripting best practices for bash and other shells. Use when writing shell scripts, bash functions, or command-line automation. |
Shell Scripting Skill
When to Use
- Writing bash scripts
- Creating shell functions
- Automating command-line tasks
- Setting up environment configurations
- Writing CI/CD scripts
Guidelines
Comprehensive shell scripting best practices: @general.md
Key Principles
- Use shellcheck for validation
- Handle errors with set -e and set -u
- Quote variables properly
- Use meaningful variable names
- Document complex logic
- Test scripts thoroughly