test

A command that runs the project's complete test and code-quality checks, including tests, formatting, type checking, and configuration checks. TDD means writing tests to guide development; this add-on checks the finished code against those tests and other gates.

In plain words
What is it for?
Use it to run the full verification process, inspect failures by module, and keep fixing code until all required checks pass.
Why use it?
It finds failures across the whole project instead of relying only on a successful test count.

Command for Claude Code

Install

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.

agentmods
npx agentmods add commands/robofinsystems/robosystems/test
Clone the repo
git clone --depth 1 https://github.com/RoboFinSystems/robosystems

Made for: Claude Code.

Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00015 $0.00565
Opus 5 $0.00008 $0.00282
Sonnet 5 $0.00003 $0.00113
Haiku 4.5 $0.00002 $0.00056

Measured 2d ago against content hash a2f36416ed97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test scanned grade A with 0 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/test.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run just test-all and fix failures to 100% completion.

Strategy

  1. Run the full gate: just test-all 2>&1 | grep -E "[0-9]+ passed|[0-9]+ failed|^FAILED |^error:|Recipe .* failed|warnings summary" | tail -20 — use timeout: 600000 on the Bash call (the suite takes 5–6 min; the default 2-min Bash timeout kills it).
  2. Iterate per-module: when fixing, use just test <module> (e.g. just test routers) for faster turnaround. Plain | tail -20 works fine here — output is short.
  3. Stop when green: don't re-run the full suite to "confirm" — once it passes, you're done.

What just test-all actually runs

In order: just test (pytest) → just test-dbt quickbooksjust lint fixjust lintjust formatjust typecheckjust cf-lint-alljust lint-actions.

That matters for reading the output: only the first stage produces a pytest summary. A dbt build failure, a ruff/basedpyright failure, or a CloudFormation/workflow lint failure will not produce a failed count — it surfaces as a recipe failure line instead. So a green pytest count alone is not proof the gate passed.

For the code-quality half without the ~6-minute test run, use just test-code — that's the combination the git hooks enforce.

Why the grep

With plain | tail -N the pytest summary scrolls away behind the later stages' output. Each alternative anchors something specific:

  • [0-9]+ passed — the summary count (9785 passed,) but NOT test names like test_passed_validation
  • [0-9]+ failed — the failure count (1 failed,) but NOT names like test_logs_failed_revocation
  • ^FAILED — line-start anchor catches failure headers without matching PASSED lines whose name contains failed
  • ^error: and Recipe .* failed — just's recipe-failure lines, which is how the non-pytest stages report
  • warnings summary — pytest's warnings-section header

Success = a [0-9]+ passed line, no failed/FAILED, AND no recipe-failure line. All three conditions, not just the first.

Read the full file on GitHub · 33 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. 2d ago First seen · 33 lines · 15 tokens per session scan A a2f36416ed97

Subscribe to this mod's changes

test is a command published in the GitHub repository RoboFinSystems/robosystems (24 stars, last pushed 3d ago), licensed Apache-2.0. It adds 15 tokens to every session and 565 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.