What problem does it solve? Writing portable, correct shell scripts is hard: Bash, Zsh, and POSIX sh differ in feature support, GNU and BSD coreutils behave differently, and subtle pitfalls like word splitting, subshell variable scope, and set -e edge cases cause silent bugs. This Skill gives an AI agent a read-only reference of compatibility matrices, idioms, and security patterns so shell guidance is accurate on the first attempt. ## Core Features & Use Cases - Compatibility Matrices: Feature availability tables for POSIX sh vs Bash vs Zsh, plus GNU vs BSD coreutils differences (sed -i, grep -P, stat, date, mktemp) with portable alternatives. - Pitfall and Security Patterns: Documented fixes for word splitting, pipeline subshell scope, pipefail behavior, command injection, temp file races, credential handling, and signal-safe cleanup traps. - Idioms and Process Control: Parameter expansion reference, here-documents, array patterns, job control, lock files, shell startup file load order, and CLI exploration strategy. - Use Case: When asked to write a cross-platform install script, the agent consults this reference to choose a portable shebang, avoid GNU-only flags, quote expansions correctly, and add trap-based cleanup. ## Quick Start Ask the agent to write or review a shell script for a specific platform, for example to create a portable Bash backup script that works on both macOS and Debian.