Shell Script Portability Review
Reviews and optimizes shell scripts to ensure cross-shell compatibility and consistent behavior between Bash and Zsh.
The Shell Script Review skill helps developers create robust, shell-neutral scripts that function predictably across different operating systems and shell environments. By identifying common pitfalls such as array indexing discrepancies (0-based vs. 1-based), variable expansion differences, and inconsistent script path detection, this skill ensures that automation tools work seamlessly on both Linux (typically Bash) and macOS (typically Zsh). It provides actionable workarounds and implementation patterns to reduce environment-specific bugs in CI/CD pipelines and local development workflows.
主な機能
01Reliable script path detection implementation patterns
02Automated detection of shell-specific array indexing conflicts
03Guidance on portable globbing and file searching techniques
04Cross-shell compatibility validation for Bash and Zsh environments
0537 GitHub stars
06Variable expansion and word-splitting safety checks
ユースケース
01Porting legacy Bash automation scripts to modern macOS environments using Zsh
02Standardizing shell scripting best practices across a distributed engineering team
03Ensuring CI/CD scripts run consistently across diverse containerized runners