test

test is a command for Claude Code from eddiesanjuan/markupr. It costs 0 tokens per session (301 once invoked), scanned A, original, MIT.

A test-run command for a JavaScript project that runs tests, investigates failures, checks coverage, and performs type checking.

In plain words
What is it for?
Running the full test suite, generating coverage after successful tests, checking TypeScript types, and reviewing coverage of major source modules.
Why use it?
It turns a failed test run into an explanation of whether the code or the test needs attention, while highlighting untested modules.

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

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/eddiesanjuan/markupr/test.svg)](https://agentmods.dev/commands/eddiesanjuan/markupr/test)
Your own site
<a href="https://agentmods.dev/commands/eddiesanjuan/markupr/test"><img src="https://agentmods.dev/badge/commands/eddiesanjuan/markupr/test.svg" alt="Measured on agentmods" 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 301 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.00301
Opus 5 $0.00000 $0.00151
Sonnet 5 $0.00000 $0.00060
Haiku 4.5 $0.00000 $0.00030

Measured 4d ago against content hash 6f9a171c7ed2, 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 4d 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 · 38 lines

What it actually says

Run Tests and Report Results

Run the markupr test suite and report results with actionable analysis.

Instructions

  1. Run the full test suite:

    npm test -- --run
    
  2. If tests fail, analyze each failure:

    • Read the failing test file to understand what it expects
    • Read the source file being tested to understand current behavior
    • Determine if the failure is a regression (source changed) or a test that needs updating (requirements changed)
    • Provide a clear summary: which tests failed, why, and a recommended fix
  3. If all tests pass, run coverage:

    npm run test:coverage -- --run
    

    Report coverage summary and identify any source files with 0% coverage that should have tests.

  4. Check for untested modules:

    • Compare files in src/main/ against test files in tests/unit/
    • Flag any major module (SessionController, CrashRecovery, ErrorHandler, pipeline components, MCP tools) that lacks test coverage
  5. Run type checking as a bonus validation:

    npm run typecheck
    
  6. Provide a summary with:

    • Total tests: passed / failed / skipped
    • Coverage highlights (if run)
    • Any type errors found
    • Recommended next steps (tests to write, failures to fix)
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. 4d ago First seen · 38 lines · 0 tokens per session scan A 6f9a171c7ed2

Subscribe to this mod's changes

test is a command published in the GitHub repository eddiesanjuan/markupr (18 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 301 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-30.