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 qte77/claude-code-plugins --skill testing-shellgit clone --depth 1 https://github.com/qte77/claude-code-pluginsWrote 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/qte77/claude-code-plugins/testing-shell)<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/testing-shell"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/testing-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/qte77/claude-code-plugins/testing-shell"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/testing-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.00048 | $0.01026 |
| Opus 5.5 | $0.00019 | $0.00410 |
| Sonnet 5.5 | $0.00010 | $0.00205 |
| Haiku 4.5 | $0.00005 | $0.00103 |
Grade B, and why
testing-shell scanned grade B with 2 findings 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 8d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- run: sudo apt-get install -y bats shellcheck Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Put fake binaries first on `PATH` so the script never calls the real `gh`, `curl` or `git push`: How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Shell Scripts (BATS)
Target: $ARGUMENTS
Writes BATS tests for Bash scripts, test-first. For the
Red-Green-Refactor loop itself, see tdd-core:testing-tdd; for how the scripts under test should be
written, see implementing-shell.
When to Use
- A script has logic worth pinning down: argument handling, branching, exit codes, file output
- Hook scripts, CI helper scripts, setup/install scripts, GitHub Action
scripts/*.sh
Do Not Use
- One-line wrappers with no branching — a ShellCheck pass is enough
- Testing what another tool already guarantees (e.g. that
jqparses JSON)
Layout
scripts/do-thing.sh
tests/unit/do-thing.bats # one .bats file per script
tests/unit/fixtures/ # static inputs (sample JSON, config files)
Run with bats tests/unit/ (add --tap in CI if a TAP consumer reads it).
Workflow
- RED — write the
@testblocks for the behaviour you want, including the failure paths (missing argument, bad input, missing dependency). Run them; they must fail. - GREEN — implement the script until they pass.
- REFACTOR — tidy the script with the tests green; run ShellCheck on script and tests.
Core patterns
#!/usr/bin/env bats
setup() {
SCRIPT="$BATS_TEST_DIRNAME/../../scripts/do-thing.sh"
TMP="$BATS_TEST_TMPDIR" # per-test temp dir, removed by bats
}
@test "prints usage and exits 2 without arguments" {
run bash "$SCRIPT"
[ "$status" -eq 2 ]
[[ "$output" == *"Usage:"* ]]
}
@test "writes the report to the given path" {
run bash "$SCRIPT" --out "$TMP/report.txt"
[ "$status" -eq 0 ]
[ -s "$TMP/report.txt" ]
}
@test "DRY_RUN=1 changes nothing" {
DRY_RUN=1 run bash "$SCRIPT" --out "$TMP/report.txt"
[ "$status" -eq 0 ]
[ ! -e "$TMP/report.txt" ]
}
runcaptures$status,$outputand${lines[@]}; assert on them afterrun, never inside the command.- Feed stdin with
run bash -c '"$0" < "$1"' "$SCRIPT" "$fixture"or a here-string insidebash -c;runitself does not take a redirect. setup_file/teardown_filefor expensive one-time setup;setup/teardownper test.
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.
- 8d ago Changed 81b02fdbfb96
- 28d ago First seen · 118 lines · 48 tokens per session scan B 9d055d26c8e8
testing-shell is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed today), licensed Apache-2.0. It adds 48 tokens to every session and 1,026 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-02.
testing-shell compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testing-shellqte77/claude-code-plugins | Skill | 3 | today | Apache-2.0 | B | 48 | Claude Code |
| dotnet-testNikiforovAll/claude-code-rules | Skill | 143 | 28d ago | Apache-2.0 | A | 35 | Claude Code |
| go-testingbitwise-media-group/skills | Skill | 3 | yesterday | MIT | A | 0 | Claude Code |
| python-testingbitwise-media-group/skills | Skill | 3 | yesterday | MIT | A | 178 | Claude Code |
| android-kotlin-composeand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 84 | Claude Code |
| android-kotlin-coroutinesand3r817/dot-claude-plugins | Skill | 2 | 2mo ago | MIT | A | 87 | Claude Code |
| test-qualitydecebals/claude-code-java | Skill | 780 | 1mo ago | MIT | A | 45 | Claude Code, Codex |