Registry / selvarajmurugesan90
selvarajmurugesan90/ops-engineering-skills/shell-scripting-best-practices
Writes robust, portable Bash/POSIX shell scripts for ops automation, covering strict-mode error handling (set -euo pipefail), correct quoting, trap-based cleanup, portability between bash and POSIX sh, and testing scripts with shellcheck and bats. Use when the user asks to "write a bash script to X," "make this shell script safer/more robust," "this script fails silently / half-runs," "make this script POSIX portable," or "add tests/lint for a shell script."
Agent skill · version 0.0.0-main.1795938945.g59bee31 · from selvarajmurugesan90/ops-engineering-skills
Install
npx yarkr-cli add skill:selvarajmurugesan90/ops-engineering-skills/shell-scripting-best-practicesWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:selvarajmurugesan90/ops-engineering-skills/shell-scripting-best-practices
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:selvarajmurugesan90/ops-engineering-skills/shell-scripting-best-practicesOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:selvarajmurugesan90/ops-engineering-skills/shell-scripting-best-practicesWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.