Writes robust bash scripts with strict error handling, quoting, cleanup traps, and shellcheck validation. Use when writing shell scripts for automation or production.
Bash's defaults are optimized for interactive forgiveness, not script correctness: errors continue, unset variables expand to nothing, and words split themselves. A robust script overrides all three and proves itself with shellcheck.
set -euo pipefail (exit on error, unset-is-error, pipeline
fails on any stage). Know the honest caveats: -e is disabled
inside if conditions and &&/|| chains, and command
substitution in an assignment (local x=$(cmd)) masks failure:
split declaration and assignment. Where a command may legitimately
fail, say so: cmd || true."$var", "$(cmd)", "$@"
for argument passthrough: unquoted expansions word-split and
glob, which is the root of most "works until a space or * shows
up" bugs. Filenames from the world get -- guards
(rm -- "$file") and find -print0 | xargs -0 for iteration.mktemp,
removed in trap 'rm -rf "$tmpdir"' EXIT; the trap runs on
error and Ctrl-C too, which is the point. Multi-resource scripts
compose cleanup functions; a script that leaves debris on
failure is a slow disk-full incident (see graceful-shutdown's
ethic at script scale).die() { echo "error: $*" >&2; exit 1; } and use it with specifics ("config $f not
readable"); progress messages to stderr so stdout stays clean
for data (the python-cli-tools stream contract, shell edition).
Check preconditions early: required commands
(command -v jq >/dev/null || die ...), required variables,
expected file existence (see guard-clauses).-e, and subshell traps that reviews miss;
a script that cannot pass it is not done. Format with shfmt for
diff stability (see code-formatting).jq, error handling
with context, or unit tests: switch to Python (see
python-cli-tools) or another real language. Bash excels at
orchestrating processes and files; it punishes application
logic (see shell-portability for the dialect question).set -e is a tripwire, not error handling; money-path scripts
(deploys, data mutation) check each critical step explicitly and
report what succeeded before the failure (see script-idempotency
for rerun safety).ls, HTML, or human-formatted output is fragile by
construction; use the tool's machine format (--json, -0,
--porcelain) or a real parser (see text-processing).wait, flock) is
workable for simple fan-out but has no supervision story;
parallel pipelines belong in an orchestrator or a language with
one (see background-jobs).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job