test

test is a command for Claude Code from terrene-foundation/metis. It costs 0 tokens per session (810 once invoked), scanned A, original, Apache-2.0.

A testing reference for a three-level approach: unit tests, integration tests, and end-to-end tests. It also explains when real infrastructure should be used instead of test doubles.

In plain words
What is it for?
Finding test patterns, adapting them to the project's testing framework, and reviewing mocking, infrastructure, coverage, and end-to-end testing practices.
Why use it?
It helps teams choose the right test level and avoid hiding integration problems behind mocks, especially in broader tests.

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/terrene-foundation/metis/test
Clone the repo
git clone --depth 1 https://github.com/terrene-foundation/metis

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 810 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.00000 $0.00810
Opus 5 $0.00000 $0.00405
Sonnet 5 $0.00000 $0.00162
Haiku 4.5 $0.00000 $0.00081

Measured 3d ago against content hash d2ade2e31d6d, 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 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.

.claude/commands/test.md · 111 lines

How it starts

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

/test - Testing Strategies Quick Reference

Purpose

Load the testing strategies skill for 3-tier testing with NO MOCKING policy enforcement in Tier 2-3.

Step 0: Detect Project Testing Stack

Before loading test patterns, check what the project uses:

  • Look at requirements.txt, pyproject.toml, setup.py for pytest, unittest
  • Look at package.json for jest, vitest, mocha, playwright
  • Look at pubspec.yaml for flutter_test, integration_test
  • Look for existing test directories (tests/, test/, __tests__/, spec/)

Adapt examples to the project's testing framework. The 3-tier strategy and NO MOCKING policy apply universally regardless of framework.

Quick Reference

Command Action
/test Load testing patterns and tier strategy
/test tier1 Show unit test patterns (mocking allowed)
/test tier2 Show integration test patterns (NO MOCKING)
/test tier3 Show E2E test patterns (NO MOCKING)

What You Get

  • 3-tier testing strategy
  • NO MOCKING enforcement (Tier 2-3)
  • Real infrastructure patterns
  • Coverage requirements

3-Tier Strategy

Tier Type Mocking Focus
Tier 1 Unit Tests ALLOWED Isolated functions
Tier 2 Integration PROHIBITED Component interactions
Tier 3 E2E PROHIBITED Full user journeys

Quick Pattern

# Tier 2: Real database (example with pytest)
@pytest.fixture
def db():
    """Use real infrastructure, not mocks."""
    conn = sqlite3.connect(":memory:")
    yield conn
    conn.close()

def test_user_creation(db):
    # NO MOCKING - real database operations
    db.execute("INSERT INTO users (name) VALUES (?)", ("test",))
    result = db.execute("SELECT * FROM users WHERE name = ?", ("test",)).fetchone()
    assert result is not None

Read the full file on GitHub · 111 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 · 111 lines · 0 tokens per session scan A d2ade2e31d6d

Subscribe to this mod's changes

test is a command published in the GitHub repository terrene-foundation/metis (2 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 810 tokens. 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-31.