shell
Installation
SKILL.md
Google Shell Style Guide
Official Google Shell scripting standards for consistent, maintainable Bash scripts.
Quick Reference
Golden Rules
- Use
#!/bin/bash— specify interpreter - Quote variables —
"$var"not$var - Check exit codes —
set -eor explicit checks - Use functions — organize code logically
- Avoid parsing
ls— use globs or find - Use
[[over[— more features, fewer gotchas - ShellCheck for linting — catch common mistakes