Bash Scripting & Shell Standards

•
772
•

Enforces professional Shell scripting standards, Dockerfile best practices, and secure command-line patterns for Claude.

This skill provides Claude with a comprehensive set of guidelines for writing high-quality, readable, and safe Bash scripts and Shell commands. It covers critical aspects such as comment placement, secure file writing using sudo tee, proper Heredoc usage to prevent accidental variable expansion, and robust script initialization with set -euo pipefail. Whether generating standalone .sh files, Dockerfiles, or providing commands in Markdown, this skill ensures that all Shell-related output follows industry-standard safety and maintainability practices, reducing bugs and security risks in automated workflows.

主要功能

01Standardizes comment placement to prevent command execution errors during copy-pasting
02Provides safe patterns for variable expansion and directory deletion commands
03Implements secure file writing patterns using tee and sudo for system configurations
04Optimizes Heredoc usage for cleaner multi-line configuration generation
05772 GitHub stars
06Enforces robust script headers using set -euo pipefail for error handling

使用场景

01Generating production-grade Dockerfiles, Makefiles, and Shell scripts
02Automating server setup and configuration management via secure CLI patterns
03Refactoring legacy Bash scripts to improve maintainability and error resilience