standards-shell
Installation
SKILL.md
Shell/Bash Coding Standards
Core Principles
- Simplicity: Simple, understandable scripts
- Readability: Readability over cleverness
- Maintainability: Scripts that are easy to maintain
- Testability: Scripts that are easy to test
- DRY: Don't Repeat Yourself - but don't overdo it
- Defensiveness: Fail early, fail loudly
General Rules
- Defensive Header: Always use
set -euo pipefail - Quote Variables: Always quote variables
"$var" - Descriptive Names: Meaningful names for variables and functions
- Minimal Changes: Only change relevant code parts
- No Over-Engineering: No unnecessary complexity
- ShellCheck Clean: All scripts must pass ShellCheck