/claude-kit:shell-reviewfrom Claude Kit SDLC
Audits shell scripts (bash/POSIX sh) for correctness, safety, and portability — exit-code propagation, shebang choice, quoting, mktemp+trap, shellcheck. Use before committing .sh files or CI/git-hook scripts.
Ships in Claude Kit SDLC. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A stack-agnostic shell-audit lens re-derived from the MIT-licensed
athola/claude-night-marketshell-reviewskill (project-specific logging/guard conventions dropped — these are the universal checks). Shell is the one language nearly every repo ships (CI, git hooks, build, wrapper scripts) and the easiest to get subtly wrong, so it earns its own pass. Verify fixes withshellcheck.
run-*.sh wrappers.sh file (or a #!-shebang script)Not for: non-shell code (→ code-review-and-quality); authoring a fresh script from scratch.
The default pipeline exit code is the last command's, which silently masks earlier failures:
# BAD — grep succeeds when it finds lines, hiding a make failure
if make typecheck 2>&1 | grep -v '^make'; then echo "passed"; fi # runs even when make failed
set -euo pipefail (-e exit on error, -u error on unset var, pipefail
propagate pipeline failures). set -e is for executables, not sourced libraries.out=$(make typecheck 2>&1) || rc=$?
printf '%s\n' "$out" | grep -v '^make' || true
exit "${rc:-0}"
cmd | true-away real errors.#!/bin/sh # POSIX — most portable
#!/usr/bin/env bash # bash via env — use when you rely on bash features
If the script uses bash-only constructs, the shebang must be bash. Common bash-isms (and POSIX
alternatives): [[ … ]] → [ … ]; (( … )) → $(( … )); arrays → positional params/files;
${var//a/b} → sed; <<< here-string → printf … |; <(cmd) process-sub → temp file; source →
.; function f {} → f() {}. Either restrict to POSIX or declare bash in the shebang — don't
run bash-isms under #!/bin/sh.
"${VAR}", "${1}", "${@}" (not $VAR/$@) — unquoted
expansion word-splits and globs. This is the single most common shell bug.: "${CONFIG:?CONFIG must be set}" instead of branching on unset.cd in a subshell so a failed cd can't run later commands in the wrong directory:
( cd "${dir}" && do_work ).mktemp + trap … EXIT cleanup; never predictable /tmp/$$ names.printf over echo for anything with backslashes/leading-dash/variable data (echo behavior
varies across shells).eval/sh; avoid curl … | sh.set -e,
and has no execute bit; an executable defines main(), ends with main "${@}", and is chmod +x.
Don't give a library the execute bit or a main.usage(); run shfmt for consistent formatting.shellcheck <script> is the backstop — run it and treat warnings as findings; many of the above
are SC-coded. shfmt -d for formatting drift.code-review-and-quality): file:line + a verbatim anchor +
the issue + a concrete fix. Re-verify the citation before reporting.One finding per line: path:Lline — <category>: <issue>. Fix: <remediation>. End with a one-line
verdict (N findings: X exit-code, Y safety, Z portability or Clean — shellcheck passes).
code-review-and-quality — general review; this is the shell-specific lensci-cd-and-automation / git-workflow-and-versioning — where most reviewed shell lives (pipelines, hooks)safety-critical-patterns — the same "check return values / bound loops" discipline, language-neutralWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ajyadav013/claude-kit --plugin claude-kit127 skills in this plugin
/accessibility-reviewUI accessibility (WCAG) review — keyboard operability, focus, ARIA semantics, color contrast, touch targets. Returns prioritized fixes. Distinct from performance/visual review./alembic-migrationsAlembic migration setup and patterns for async SQLAlchemy — async engine + run_sync in env.py, autogenerate, RLS/multi-tenant migrations. Use for alembic init, writing migrations, or debugging migration errors./anthropic-vertex-integrationClaude on Vertex AI via the AnthropicVertex SDK — lazy ADC client init, env-based project/region resolution, async helpers, backoff retry. Use when calling Claude via GCP Vertex AI (not direct Anthropic API).Other plugins' skills for the same job