add-scrut-cli-tests

add-scrut-cli-tests is a skill for Claude Code from cboone/agent-harness-plugins. It costs 37 tokens per session (5,518 once invoked), scanned C, original, MIT.

A setup workflow for Scrut, a tool that checks command-line programs by comparing their output with saved expected results. It adds snapshot-based integration tests, where complete command runs are tested against recorded output.

In plain words
What is it for?
Use it to add Scrut tests to CLI projects written in Go, Swift, Rust, Zig, Python, Ruby, or shell, including Makefile and CI setup.
Why use it?
It provides a repeatable way to check that a command-line program still behaves as expected after changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - "../shared/setup.md".

Part of the add-scrut-cli-tests plugin — 1 skill shipped together

Good fit Use it to add Scrut tests to CLI projects written in Go, Swift, Rust, Zig, Python, Ruby, or shell, including Makefile and CI setup.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins
agentmods
npx agentmods add skills/cboone/agent-harness-plugins/add-scrut-cli-tests

Made for: Claude Code.

Or install add-scrut-cli-tests, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for add-scrut-cli-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/add-scrut-cli-tests/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/add-scrut-cli-tests)
Your own site
<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.

agentmods 80×15 button for add-scrut-cli-tests

Your own site · 80×15
<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>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,518 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 8093fc7b06e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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"
plugins/add-scrut-cli-tests/skills/add-scrut-cli-tests/SKILL.md · 525 lines

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.yml workflow (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 build target for the output binary name (look for -o bin/NAME or -o NAME), or derive from the last segment of the module path in go.mod
    • Swift: check Package.swift for executable target names, or check the Makefile build target
    • Rust: check Cargo.toml for [[bin]] entries or the name field under [package]
    • Zig: check build.zig for b.addExecutable(.{ .name = "..." }) and use the .name value, or use the directory name
    • Python: check pyproject.toml for [project.scripts] entries
    • Ruby: check the gemspec for executables or look in bin/ or exe/
    • Shell: use the script filename as the binary name
  • Binary path: determine the full path used to run the binary:
    • Compiled languages (Go, Swift, Rust, Zig): typically bin/NAME or a build output directory (e.g., $(CURDIR)/bin/NAME for Go, $(CURDIR)/zig-out/bin/NAME for Zig)
    • Interpreted languages (Python, Ruby, Shell): the script path itself (e.g., bin/NAME, ./NAME)
  • Environment variable name: derive from the binary name, uppercased with hyphens replaced by underscores, suffixed with _BIN (e.g., bopca becomes BOPCA_BIN, my-tool becomes MY_TOOL_BIN)
  • Build required: whether a build step is needed before running tests (yes for compiled languages, no for interpreted languages)

Read the full file on GitHub · 525 lines

Changes

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.

  1. 2mo ago Changed · +1 lines 8093fc7b06e5
  2. 2mo ago Changed · +7 lines scan A → C f90bdd686865
  3. 2mo ago Changed · -5 lines · -88 tokens per session a404e290e18d
  4. 3mo ago First seen · 522 lines · 125 tokens per session scan A 90768365597b

Subscribe to this mod's changes

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.

Related

add-scrut-cli-tests compared with skills from other repositories

add-scrut-cli-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-scrut-cli-testscboone/agent-harness-pluginsSkill35d agoMITC37Claude Code
verify-ui-change-in-cloudwarpdotdev/warpSkill66k2d agoAGPL-3.0A69Claude Code
test-warp-uiwarpdotdev/warpSkill66k2d agoAGPL-3.0A55Claude Code
walkthroughjoshukraine/dotfilesSkill4307d agoMITA33Claude Code
accessibility-testingvibeeval/vibecosystemSkill55419d agoMITA31Claude Code, Codex
vocello-ios-validationPowerBeef/VocelloSkill393yesterdayMITA35Codex
vocello-debugPowerBeef/VocelloSkill393yesterdayMITA28Codex