What problem does it solve?
Inconsistent shell scripts introduce bugs, security vulnerabilities, and maintenance overhead when multiple contributors write automation, testing, or Git hook scripts across the repository.
Core Features & Use Cases
- Safety & Error Handling: Enforces set -euo pipefail, required parameter validation, temporary file cleanup with trap, and safe variable expansion to prevent common shell bugs and security risks.
- Structured Data Parsing: Guides use of jq for JSON and yq for YAML instead of fragile ad-hoc grep/awk commands, ensuring reliable parsing of configuration files and command output.
- Standardized Script Template: Provides a reusable, well-commented template with shebang, default values, reusable functions, and argument parsing to keep all shell scripts readable and maintainable.
- Use Case: If you need to write a Git pre-commit hook that validates commit messages against a JSON allowlist, this skill ensures the script is secure, parses the config correctly, and follows the repo's standard structure.
Quick Start
Use the shell-scripting skill to write a new bash script for your repo that validates required input parameters and parses a YAML config file with yq, following all defined conventions.