test

test is a command for Claude Code from fockus/skill-memory-bank. It costs 34 tokens per session (543 once invoked), scanned A, original, MIT.

A command that runs the project's tests, summarizes failures, and suggests fixes. Tests are automated checks that compare the software's behavior with expected results.

In plain words
What is it for?
Use it to run the test suite, inspect failed tests, review coverage and duration, and investigate possible fixes.
Why use it?
It turns a test run into a structured result and directs attention to the code related to failed checks.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to run the test suite, inspect failed tests, review coverage and duration, and investigate possible fixes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fockus/skill-memory-bank/test
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.

Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

Made for: Claude Code.

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 test

README.md
[![agentmods](https://agentmods.dev/badge/commands/fockus/skill-memory-bank/test/github.svg)](https://agentmods.dev/commands/fockus/skill-memory-bank/test)
Your own site
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/test"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/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.

agentmods 80×15 button for test

Your own site · 80×15
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/test"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 543 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00034 $0.00543
Opus 5.5 $0.00014 $0.00217
Sonnet 5.5 $0.00007 $0.00109
Haiku 4.5 $0.00003 $0.00054

Measured 18d ago against content hash 21f7ef30ae6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 18d 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.

commands/test.md · 46 lines

What it actually says

1. Run the suite

bash "${MB_SKILLS_ROOT:-$HOME/.claude/skills/memory-bank}/scripts/mb-test-run.sh" --dir . --out both

The script detects the stack via mb-metrics.sh, runs the tests with per-stack parsing, and prints structured JSON — {stack, tests_pass, tests_total, tests_failed, failures[], coverage, duration_ms} — plus a human summary. It exits 0 even when tests fail; use tests_pass as the verdict for the rest of this flow.

If stack=unknown or no runner applies, tests_pass is null. Offer to create .memory-bank/metrics.sh (see references/templates.md).

If $ARGUMENTS provided a filter (test file, name, marker), pass it in the invocation context so the agent can narrow the run. Stage 3 of the runner does full-suite; filter support is follow-up work.

2. If tests_pass == true

Show the verdict + counts + duration from the agent's human summary. Done.

3. If tests_pass == false

For each failure (prioritize entries with touches_session == true):

  • Read the failing test source and the code under test in full
  • Check .memory-bank/lessons.md for known flaky patterns or recurring anti-patterns
  • Classify: code bug vs. outdated test vs. environmental (flaky) issue
  • Propose a concrete fix — show the diff
  • Ask y/N before applying the fix (default = No)

The agent's failures[].likely_cause is a hint, not authority — always read the file yourself before proposing a fix.

4. If tests_pass == null (NOT-RUN)

Do not treat as pass. Report the reason (unknown stack, runner missing, zero tests collected) and offer the user a choice: install the runner, add .memory-bank/metrics.sh, or proceed without verification (flagged explicitly in the session log).

5. Memory Bank

If the run surfaced a recurring pattern worth remembering (flakiness, shared setup bug, environment issue), append to lessons.md using the template in references/templates.md.

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. 18d ago Changed · +25 tokens per session 21f7ef30ae6f
  2. 27d ago Changed · -3 lines b2f93145b54d
  3. 1mo ago First seen · 49 lines · 9 tokens per session scan A 2a8429bc77e2

Subscribe to this mod's changes

test is a command published in the GitHub repository fockus/skill-memory-bank (30 stars, last pushed 7d ago), licensed MIT. It adds 34 tokens to every session and 543 once invoked, about $0.0001 per session on Opus 5.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-09-03.