Переносимые bash-скрипты для CLI
★ 7.0 · vibe-coding
shell-scripting is a Claude Code skill that establishes standards for writing portable bash scripts used in cross-platform CLI tools targeting macOS, Linux, and Windows. It defines a canonical file structure: shebang line, description comment, and `set -e`; UPPER_CASE constants; snake_case functions with local variables and explicit error handling via `trap`. Key practices include double-bracket conditionals, consistently quoted variables, and checking command availability with `command -v` instead of `which`. The skill also covers common patterns for OS detection, safe file operations, and JSON parsing both with and without `jq`. It targets developers writing or refactoring shell scripts who want clean, predictable behavior and zero `shellcheck` warnings.