Bash Scripting Standards
Enforces best practices and safety standards for Bash scripts and system commands to ensure maintainable and robust automation.
The Bash Scripting Standards skill provides a comprehensive framework for writing clean, defensive shell scripts based on the Google Shell Style Guide. It implements strict rules such as mandatory defensive head declarations (set -euo pipefail), prohibition of trailing comments, and safe variable referencing with double quotes. By guiding Claude to use explicit paths, standardized logging patterns, and safe writing methods like tee or heredoc, it prevents common scripting errors and ensures that automated tasks are reliable, secure, and easy to debug in production environments.
主要功能
01772 GitHub stars
02Mandatory defensive header declarations for robust error handling
03Strict adherence to Google Shell Style Guide principles
04Standardized progress logging and multi-channel command output
05Prevention of trailing comments to improve code readability
06Secure file writing patterns using heredoc and tee
使用场景
01Writing maintainable system administration and infrastructure-as-code tasks
02Automating CI/CD pipeline scripts with standardized error handling
03Standardizing shell-based automation across large, collaborative development teams