Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nimadorostkar/Claude-Skills-collection --skill shellgit clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collectionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/shell)<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/shell"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/shell/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/shell"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/shell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00097 | $0.01111 |
| Opus 5.5 | $0.00039 | $0.00444 |
| Sonnet 5.5 | $0.00019 | $0.00222 |
| Haiku 4.5 | $0.00010 | $0.00111 |
Grade C, and why
shell scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
trap 'rm -rf "$workdir"' EXIT How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Shell
Purpose
Write shell scripts that fail loudly instead of silently, handle paths with spaces, and clean up after themselves. Most shell bugs are one missing quote or one unchecked exit code.
When to Use
- Writing or reviewing Bash scripts.
- Building CI steps, deployment scripts, or developer tooling.
- Hardening a script that "works on my machine".
- Deciding whether a task has outgrown shell entirely.
Capabilities
- Strict mode and error handling that actually stops the script.
- Safe quoting, arrays, and
IFShandling. - Argument parsing and usage output.
- Cleanup via
trap, temp file discipline, and idempotence. - Portability between Bash, POSIX
sh, and macOS's older toolchain.
Inputs
- The script, its invocation context (CI, cron, interactive), and target shells.
- Whether it must run on macOS (BSD utilities) as well as Linux (GNU).
Outputs
- A script passing
shellcheck -xwith no warnings. - Deterministic exit codes and a usage message.
- Cleanup guaranteed on every exit path.
Workflow
- Start strict —
set -Eeuo pipefailand anIFSyou control. - Parse arguments explicitly — Validate required inputs and print usage on error.
- Quote everything — Every variable expansion is
"$var"unless you have a specific reason otherwise. - Register cleanup —
trapbefore you create the first temporary resource. - Gate — Run ShellCheck; run the script under
bash -nand, where practical, withset -xin a dry run.
Best Practices
set -ealone does not catch failures inside pipelines.pipefailis what makesa | bfail whenadoes.- Unquoted
$varsplits on whitespace and glob-expands. This is the root cause of most "it broke on a filename with a space" bugs. - Use
mktemp -dand remove it in a trap — never hardcode/tmp/mything. - Prefer
[[ ]]over[ ]in Bash; it does not word-split and supports pattern matching. - Check that required commands exist up front rather than failing halfway through.
- When a script exceeds roughly 100 lines or needs data structures, rewrite it in Python. Shell is glue, not a language for logic.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +63 tokens per session 42ebdeb7a450
- 2mo ago First seen · 117 lines · 34 tokens per session scan C 71c8897b9222
shell is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (41 stars, last pushed today), licensed MIT. It adds 97 tokens to every session and 1,111 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
shell compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| shellnimadorostkar/Claude-Skills-collection | Skill | 41 | today | MIT | C | 97 | Claude Code |
| create-pubsub-dotnetdiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 79 | Claude Code |
| create-pubsub-javadiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 61 | Claude Code |
| create-agent-dotnetdiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 52 | Claude Code |
| create-workflow-typescriptdiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 52 | Claude Code |
| create-pubsub-pythondiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 70 | Claude Code |
| create-workflow-pythondiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 42 | Claude Code |