What problem does it solve?
This skill helps you detect syntax errors, style issues, and failing behavior in Bash shell scripts before changes reach CI or production environments.
Core Features & Use Cases
- Syntax validation: Runs
bash -n checks across key scripts to catch broken quoting, missing fi/done, and other parse-time problems early.
- Linting with ShellCheck: Executes ShellCheck with the project’s intended severity (
warning) and documents known disables like SC2059.
- Behavioral testing with BATS: Runs BATS test suites (and optional filtered tests) to verify flags, functions, and interactive/non-interactive behavior.
- Optional coverage with kcov: Generates coverage reports to identify untested paths.
Use Case Example: Before releasing an update script for a multi-distro installer, run the full lint + format + test pipeline to prevent regressions in distro detection, install flow, and i18n output formatting.
Quick Start
Run ShellCheck, shfmt style checks, and BATS tests for guncel, install.sh, and release.sh as described in this skill to confirm everything still works.