What problem does it solve?
Style, review, and refactoring standards for Bash shell scripting. Trigger when .sh files, files with shebang lines for Bash, or CI workflow blocks that specify shell: bash are created, modified, or reviewed, and Bash-specific quality controls such as quoting safety, robust error handling, portability, and readability must be enforced. Do not use for generic POSIX sh, PowerShell, or language-specific application style rules. In multi-language pull requests, run together with other applicable style-guide skills.
Core Features & Use Cases
- Enforces consistent Bash scripting style across repositories.
- Promotes safe quoting, explicit error handling, portability across environments, and readable code.
- Example: when a new Bash script or a PR that updates a Bash script appears, the skill flags style deviations and suggests fixes before merging.
Quick Start
Run the Bash style-check workflow on all changed Bash scripts using ShellCheck and Shfmt to enforce the guide.