test

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

A testing command that provides a three-level test strategy: unit tests for small pieces, integration tests for connected components, and end-to-end tests for complete user flows. TDD, or test-driven development, means writing tests before the code they check.

In plain words
What is it for?
Use it to choose test patterns, write unit, integration, or end-to-end tests, and apply coverage and real-infrastructure requirements.
Why use it?
It gives the project a consistent way to decide what to test and limits the use of substitutes called mocks in integration and end-to-end tests.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to choose test patterns, write unit, integration, or end-to-end tests, and apply coverage and real-infrastructure requirements.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/terrene-foundation/kailash-coc-claude-py/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/terrene-foundation/kailash-coc-claude-py

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/terrene-foundation/kailash-coc-claude-py/test/github.svg)](https://agentmods.dev/commands/terrene-foundation/kailash-coc-claude-py/test)
Your own site
<a href="https://agentmods.dev/commands/terrene-foundation/kailash-coc-claude-py/test"><img src="https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/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/terrene-foundation/kailash-coc-claude-py/test"><img src="https://agentmods.dev/badge/commands/terrene-foundation/kailash-coc-claude-py/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00000 $0.00810
Opus 5 $0.00000 $0.00405
Sonnet 5 $0.00000 $0.00162
Haiku 4.5 $0.00000 $0.00081

Measured 6d ago against content hash d2ade2e31d6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • test — 100% identical, 0 lines differ
.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. 6d 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/kailash-coc-claude-py (12 stars, last pushed 21d 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-09-03.