test

test is a command for coding agents from RaNDoM6913/claude-code-superkit. It costs 20 tokens per session (1,319 once invoked), scanned A, original, MIT.

A command that detects the test tools used by a project and runs the matching test suites for the requested scope.

In plain words
What is it for?
It is for running tests in projects written in languages such as Go, TypeScript, Python, or Rust, with optional coverage.
Why use it?
It avoids guessing test commands and reports the actual results, including useful details when tests fail.

Command

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/random6913/claude-code-superkit/test
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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/random6913/claude-code-superkit/test.svg)](https://agentmods.dev/commands/random6913/claude-code-superkit/test)
Your own site
<a href="https://agentmods.dev/commands/random6913/claude-code-superkit/test"><img src="https://agentmods.dev/badge/commands/random6913/claude-code-superkit/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,319 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.00020 $0.01319
Opus 5 $0.00010 $0.00660
Sonnet 5 $0.00004 $0.00264
Haiku 4.5 $0.00002 $0.00132

Measured today against content hash ce9b981bf91b, 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 today.

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.

packages/core/commands/test.md · 109 lines

How it starts

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

Run Tests

Auto-detect the project's test runner, execute the tests for the requested scope, and report the runner's real results.

Hard Rules

  • Report the runner's REAL output — paste the actual pass/fail/skip lines; never summarize from memory or invent counts.
  • Consume the argument exactly as scope + optional --coverage; when no scope is given, default to backend.
  • If the chosen scope has no matching markers (e.g. backend on a frontend-only repo), fall back to running all detected suites — never do nothing.
  • Detect commands only from the Step 1–2 tables; do not invent test commands or flags.
  • When a Makefile test target exists for the stack, prefer make test.
  • For scope all, run every detected suite sequentially and report each separately.
  • On failure, show the first 5 failure details for diagnosis — no more.

Step 1 — Detect Test Runner

Scan the project root and subdirectories for stack markers:

Marker Test Command Stack
go.mod go test ./... -count=1 Go
package.json + vitest config npx vitest run Vitest
package.json + jest config npx jest Jest
package.json + playwright config npx playwright test Playwright (e2e)
cypress.config.{js,ts} npx cypress run Cypress (e2e)
pyproject.toml / pytest.ini / conftest.py pytest Python (pytest)
pyproject.toml with [tool.unittest] python -m unittest discover Python (unittest)
tests/e2e/ dir + pytest pytest tests/e2e/ Python E2E (selenium)
Cargo.toml cargo test Rust
pom.xml mvn test Java (Maven)
build.gradle ./gradlew test Java/Kotlin (Gradle)
Makefile with test target make test Makefile

If a Makefile with a test target exists and the stack has one, prefer make test as it may include additional setup.

Done when: every stack present in the repo is mapped to its exact test command (or to make test).

Read the full file on GitHub · 109 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. today First seen · 109 lines · 20 tokens per session scan A ce9b981bf91b

Subscribe to this mod's changes

test is a command published in the GitHub repository RaNDoM6913/claude-code-superkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 1,319 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-09-03.