test

test is a command for Claude Code from fockus/skill-memory-bank. It costs 9 tokens per session (540 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. Also seen: reads .claude/ paths.

Good fit Use it to run the test suite, inspect failed tests, review coverage…

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 540 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.00009 $0.00540
Opus 5 $0.00005 $0.00270
Sonnet 5 $0.00002 $0.00108
Haiku 4.5 $0.00001 $0.00054

Measured 3d ago against content hash 2a8429bc77e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 3d 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 · 49 lines

How it starts

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

1. Delegate execution to mb-test-runner

Agent(
  subagent_type="general-purpose",
  model="sonnet",
  description="mb-test-runner: run + parse project tests",
  prompt="<contents of ~/.claude/skills/memory-bank/agents/mb-test-runner.md>

dir: ."
)

The agent detects stack via mb-metrics.sh, runs tests with per-stack parsing through scripts/mb-test-run.sh, and returns structured JSON: {stack, tests_pass, tests_total, tests_failed, failures[], coverage, duration_ms} plus a human summary. Use the JSON as the authoritative source for the rest of this flow.

If stack=unknown or the runner is missing, the agent reports tests_pass=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.

Read the full file on GitHub · 49 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. 3d 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 (24 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 540 once invoked, about $0.0000 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-09-03.