Borrowing it
Nothing to install: this file belongs to bredmond1019/claude-sdk-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bredmond1019/claude-sdk-rs/main/.claude/commands/test.mdgit clone --depth 1 https://github.com/bredmond1019/claude-sdk-rsWrote 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/commands/bredmond1019/claude-sdk-rs/test)<a href="https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/test"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/test/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/commands/bredmond1019/claude-sdk-rs/test"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/test.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.00000 | $0.02237 |
| Opus 5.5 | $0.00000 | $0.00895 |
| Sonnet 5.5 | $0.00000 | $0.00447 |
| Haiku 4.5 | $0.00000 | $0.00224 |
Grade A, and why
test scanned grade A 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 11d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
diff = subprocess.run(['git','diff','-M','-U0','main..HEAD','--','*.md','*.mdx'], capture_output=True, text=True).stdout.splitlines() How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Application Validation Test Suite
Execute the project's validation suite, returning results in a standardized JSON format for
automated processing. The suite is not hardcoded — it is read from planning/harness.json
(the mechanism/policy split), so this command works for any stack.
Variables
$ARGUMENTS — optional path to the task spec and optional task number. Same format as /implement.
Examples:
- (no args) — run full suite; output JSON to chat only; no worklog/state written
planning/<spec-slug>/tasks.md— run full suite; append a worklog section + update state for the whole specplanning/<spec-slug>/tasks.md 1— run full suite; append a worklog section + update state scoped to task 1
The task number N does NOT change which checks run — all checks always run regardless. N only
scopes which sdlc/state.json task entry and worklog section this run's results are recorded
against.
Purpose
Proactively identify and fix issues before they impact the project or downstream work. By running this suite you can:
- Detect lint / format / type errors before they reach the build
- Catch broken tests or regressions
- Verify the project builds/compiles cleanly
- Enforce the universal harness rule: no emoji in changed markdown
Constants
TEST_COMMAND_TIMEOUT: 5 minutes
Instructions
- Step 0 — Parse
$ARGUMENTS: If provided, split on the last space. Trailing number = task N; remainder = spec path. Derive the spec dir from the spec's parent directory:- No args: no worklog/state will be written.
- Spec only:
planning/<spec-slug>/tasks.md→planning/<spec-slug>/sdlc/(record scoped to "all tasks") - Spec + task N:
planning/<spec-slug>/tasks.md 1→planning/<spec-slug>/sdlc/(record scoped to task 1)
- Run
/primeto orient to the codebase before executing any checks. - Step 1 — Load the validation suite: Read
planning/harness.json.- If present and valid JSON: the checks are
validation.checks[], run in order, top to bottom. Each entry hasname,command,purpose, andgates(whether its failure blocks the review verdict). The check whosepurposenames it authoritative for the verdict is the one that always prevents PASS when it fails. - If absent or invalid: fall back to the spec's optional
## Validation Commandssection — run each command there, in order. If there is no spec or no such section, run no project checks and record a single informational row (test_name"no_validation_suite",passedtrue). - The engine ships no stack defaults — never invent lint/test/build commands; they come only
from
harness.jsonor the spec.
- If present and valid JSON: the checks are
- Run each check with the Bash tool. Capture the result (passed/failed) and any error messages.
- IMPORTANT: Return ONLY the JSON array with check results
- IMPORTANT: Do not include any additional text, explanations, or markdown formatting
- We'll immediately run JSON.parse() on the output, so make sure it's valid JSON
- If a check passes, omit the error field
- If a check fails, include the error message in the error field
- Execute all checks even if some fail
- Error Handling:
- If a command returns a non-zero exit code, mark as failed
- Capture stderr output for the error field
- Timeout commands after
TEST_COMMAND_TIMEOUT
- Execution order is the order in
validation.checks[](or the spec) — earlier gates (format/lint/type) before later ones (test/build) - All commands are run from the repo root unless the command itself changes directory
- Always run
pwdbefore each check to confirm you are in the repo root
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.
- 11d ago First seen · 191 lines · 0 tokens per session scan A 82710657829c
test is a command published in the GitHub repository bredmond1019/claude-sdk-rs (23 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,237 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.
test compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testbredmond1019/claude-sdk-rs | Command | 23 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |
| playwright-test-healmicrosoft/playwright | Command | 99k | yesterday | Apache-2.0 | A | 2 | GitHub Copilot |
| bugfixnWave-ai/nWave | Command | 631 | yesterday | MIT | A | 18 | Claude Code |
| verify-bugHoangNguyen0403/agent-skills-standard | Command | 583 | today | MIT | A | 0 | Claude Code |
| api-aqa-flow-execution-and-report-analysisgriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 28 | Claude Code |
| AGENTSmax-sixty/worktrunk | Command | 12k | yesterday | none | A | 0 | Claude Code |
| timeout-fixclassmethod/tsumiki | Command | 972 | 3mo ago | MIT | A | 52 | Claude Code |