Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/cboone/agent-harness-pluginsnpx agentmods add skills/cboone/agent-harness-plugins/add-scrut-cli-testsWrote 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/cboone/agent-harness-plugins/add-scrut-cli-tests)<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/add-scrut-cli-tests"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/add-scrut-cli-tests/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/cboone/agent-harness-plugins/add-scrut-cli-tests"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/add-scrut-cli-tests.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.00037 | $0.05518 |
| Opus 5.5 | $0.00015 | $0.02207 |
| Sonnet 5.5 | $0.00007 | $0.01104 |
| Haiku 4.5 | $0.00004 | $0.00552 |
Grade C, and why
add-scrut-cli-tests 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 2mo 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.
rm -rf "SCRUT_DIR" How it starts
The opening of the file, as written. The whole thing — 525 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Scrut CLI Tests
Set up scrut snapshot-based CLI integration testing for a CLI project with Makefile targets and CI workflow integration.
Prerequisites
- A CLI project that produces a binary or has an executable entry point
- A
.github/workflows/ci.ymlworkflow (or equivalent CI workflow file) is recommended for CI integration
Workflow
1. Detect the Project Type
Identify the project language by checking for manifest files:
| Marker(s) | Language |
|---|---|
go.mod |
Go |
Package.swift |
Swift |
Cargo.toml |
Rust |
build.zig |
Zig |
pyproject.toml, setup.py |
Python |
Gemfile, *.gemspec |
Ruby |
| Executable scripts (no manifest) | Shell |
If no manifest is found and executable shell scripts exist in the root, bin/, or scripts/, treat the project as a shell script CLI.
If the project type cannot be determined, ask the user what language the project uses and where the binary or executable is located.
Check for an existing tests/scrut/ directory; if present, warn and ask whether to add to it or abort.
2. Gather Project Information
Collect the following, inferring from existing files where possible:
- Binary name: determine by project type:
- Go: check the Makefile
buildtarget for the output binary name (look for-o bin/NAMEor-o NAME), or derive from the last segment of the module path ingo.mod - Swift: check
Package.swiftfor executable target names, or check the Makefilebuildtarget - Rust: check
Cargo.tomlfor[[bin]]entries or thenamefield under[package] - Zig: check
build.zigforb.addExecutable(.{ .name = "..." })and use the.namevalue, or use the directory name - Python: check
pyproject.tomlfor[project.scripts]entries - Ruby: check the gemspec for
executablesor look inbin/orexe/ - Shell: use the script filename as the binary name
- Go: check the Makefile
- Binary path: determine the full path used to run the binary:
- Compiled languages (Go, Swift, Rust, Zig): typically
bin/NAMEor a build output directory (e.g.,$(CURDIR)/bin/NAMEfor Go,$(CURDIR)/zig-out/bin/NAMEfor Zig) - Interpreted languages (Python, Ruby, Shell): the script path itself (e.g.,
bin/NAME,./NAME)
- Compiled languages (Go, Swift, Rust, Zig): typically
- Environment variable name: derive from the binary name, uppercased with hyphens replaced by underscores, suffixed with
_BIN(e.g.,bopcabecomesBOPCA_BIN,my-toolbecomesMY_TOOL_BIN) - Build required: whether a build step is needed before running tests (yes for compiled languages, no for interpreted languages)
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.
- 2mo ago Changed · +1 lines 8093fc7b06e5
- 2mo ago Changed · +7 lines scan A → C f90bdd686865
- 2mo ago Changed · -5 lines · -88 tokens per session a404e290e18d
- 3mo ago First seen · 522 lines · 125 tokens per session scan A 90768365597b
add-scrut-cli-tests is a skill published in the GitHub repository cboone/agent-harness-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 37 tokens to every session and 5,518 once invoked, about $0.0001 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-08-31.
add-scrut-cli-tests compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-scrut-cli-testscboone/agent-harness-plugins | Skill | 3 | 5d ago | MIT | C | 37 | Claude Code |
| verify-ui-change-in-cloudwarpdotdev/warp | Skill | 66k | 2d ago | AGPL-3.0 | A | 69 | Claude Code |
| test-warp-uiwarpdotdev/warp | Skill | 66k | 2d ago | AGPL-3.0 | A | 55 | Claude Code |
| walkthroughjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 33 | Claude Code |
| accessibility-testingvibeeval/vibecosystem | Skill | 554 | 19d ago | MIT | A | 31 | Claude Code, Codex |
| vocello-ios-validationPowerBeef/Vocello | Skill | 393 | yesterday | MIT | A | 35 | Codex |
| vocello-debugPowerBeef/Vocello | Skill | 393 | yesterday | MIT | A | 28 | Codex |