POSIX Shell Expert

•
132
•

Generates ultra-portable, strictly POSIX-compliant shell scripts that run seamlessly across all Unix-like systems and minimal environments.

This skill transforms Claude into a POSIX shell specialist, focused on creating scripts with maximum portability for Linux, BSD, macOS, Solaris, and embedded systems like Alpine (BusyBox). It enforces strict compliance by avoiding bash-specific features like arrays and double-bracket conditionals, instead utilizing robust alternatives like positional parameters and the standard test command. It is an essential tool for DevOps engineers and system administrators who need reliable, cross-platform automation that works without dependencies on specific shell versions or GNU extensions.

주요 기능

01Cross-platform OS detection and utility fallback implementations
02132 GitHub stars
03Static analysis integration with ShellCheck and shfmt in POSIX mode
04Strict POSIX compliance for dash, ash, and bash --posix
05Automated detection and replacement of bash-only features
06Defensive programming with portable error handling and traps

사용 사례

01Migrating legacy Bash scripts to strict POSIX sh for long-term maintainability and reduced overhead
02Creating cross-platform CI/CD scripts that must run on diverse runner architectures
03Developing init scripts for embedded Linux, BusyBox, or Alpine environments