/code:shell-scriptsfrom code
Writes and reviews Bash/shell scripts with guidance on shebang selection, quoting, parameter expansion, test expressions, ShellCheck fixes, and portability across POSIX sh, Bash, and zsh.
Ships in code. 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.
Read when SKILL.md points to them.
Write shell code with an explicit portability target first, then apply strict quoting and a bounded ShellCheck remediation loop. Default to Bash readability and safety; switch to POSIX-only mode when the user asks for strict portability.
When NOT to use:
fish, powershell, or Windows batch.sh and no Bash features (use POSIX mode from references/compatibility-matrix.md).shell-scripts.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.references/compatibility-matrix.md:
POSIX strict, Bash-first, or Bash-with-zsh-compatibility.assets/script-template.sh or pull focused snippets from:
assets/usage-template.txtassets/logging-template.shassets/getopts-template.sh${VAR} expansion form for clarity.[[ ... ]] for Bash conditionals; use [ ... ] when POSIX compatibility is required.command -v / type -a when shadowing is possible.bash -n path/to/script.shshellcheck -x path/to/script.sh (if available)references/advanced-patterns.mdreferences/command-resolution-and-os-portability.mdreferences/quoting-and-expansion.mdreferences/tests-and-conditionals.mdreferences/shellcheck-workflow.mdreferences/compatibility-matrix.mdreferences/quoting-and-expansion.mdreferences/tests-and-conditionals.mdreferences/shellcheck-workflow.mdreferences/advanced-patterns.mdreferences/command-resolution-and-os-portability.mdreferences/shellcheck-codes.mdATTRIBUTION.md (opens in a new tab)assets/getopts-template.sh (opens in a new tab)assets/logging-template.sh (opens in a new tab)assets/script-template.sh (opens in a new tab)assets/usage-template.txt (opens in a new tab)references/advanced-patterns.md (opens in a new tab)references/command-resolution-and-os-portability.md (opens in a new tab)references/compatibility-matrix.md (opens in a new tab)references/quoting-and-expansion.md (opens in a new tab)references/shellcheck-codes.md (opens in a new tab)references/shellcheck-workflow.md (opens in a new tab)references/tests-and-conditionals.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ahgraber/skills --plugin code10 skills in this plugin
/api-designUse when designing, reviewing, or planning REST or GraphQL APIs — endpoint structure, schema design, versioning, error handling, pagination, URI naming, or choosing between REST and GraphQL. Also triggers for OpenAPI spec creation and API contract review./changelogUse when writing, updating, or generating a CHANGELOG.md — for a new release, an unreleased section update, or drafting from git history or diff. Triggers: "update the changelog", "write release notes", "what changed since X", "generate changelog for v1.2.0", "add this to the changelog", "draft unreleased section". Not for commit messages (use commit-message skill) or internal deployment runbooks./code-reviewUse when reviewing code changes before committing or merging — staged diffs, branch diffs, or PR readiness checks. Triggers: 'review my code', 'check these changes', 'review this branch', 'give feedback on my diff', 'is this PR ready?'. Not for implementing features, running test suites, formatting-only passes, or building understanding of a change (use teach-me)./debuggingUse when a bug, test failure, build break, regression, flaky test, or unexpected behavior appears — before proposing or attempting fixes. Triggers: "why is this failing", "this test broke", "something's wrong", "help me debug", "it works on my machine", mysterious stack traces, intermittent failures. Not for: writing new features, reviewing working code, or routine refactors./jjUse when the repository uses Jujutsu (jj): a `.jj` directory sits at the repo root, `jj root` succeeds, or the user mentions jj, jujutsu, bookmarks, change IDs, or the op log. Also use when the user asks to explain or teach jj as the work happens. Not for plain git repositories, and not inside a harness git worktree that has no `.jj` directory./refactorUse when changing the structure of working code without changing its behavior: decomposing an oversized function, extracting or merging a module, collapsing a layer, breaking an import cycle. Applies when the edit is structural enough to need a plan and explicit approval before it lands. Triggers: 'refactor this', 'decompose this function', 'split this module', 'break this dependency cycle', 'extract this into', 'restructure', 'work through the deferred items'. Not for slop cleanup (use simplify), judging a change (use code-review), fixing bugs, or adding behavior.