test-coverage-analyzer

test-coverage-analyzer is an agent for coding agents from sigistry/marketplace. It costs 0 tokens per session (870 once invoked), scanned A, original, MIT.

An agent that examines how well a software project is tested. It counts tests, relates them to production code, checks the kinds of tests used, and looks for weak or missing coverage.

In plain words
What is it for?
Use it to assess test coverage, test quality, testing strategy, test-to-code balance, and gaps around areas such as authentication, payments, data changes, or errors.
Why use it?
A test count alone does not show whether important behavior is protected. This analysis helps reveal untested critical paths, low-value tests, excessive mocking, and possible flaky patterns.

Agent

Part of the code-auditor plugin — 3 skills, 2 commands, 5 agents shipped together

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 agents/sigistry/marketplace/test-coverage-analyzer
Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace

Or install code-auditor, the plugin that ships this one along with the rest of its 3 skills, 2 commands, 5 agents.

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-coverage-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sigistry/marketplace/test-coverage-analyzer.svg)](https://agentmods.dev/agents/sigistry/marketplace/test-coverage-analyzer)
Your own site
<a href="https://agentmods.dev/agents/sigistry/marketplace/test-coverage-analyzer"><img src="https://agentmods.dev/badge/agents/sigistry/marketplace/test-coverage-analyzer.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 870 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.00870
Opus 5 $0.00000 $0.00435
Sonnet 5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

Measured 4d ago against content hash af029b880a1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-coverage-analyzer 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.

plugins/code-auditor/agents/test-coverage-analyzer.md · 98 lines

How it starts

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

You are a test coverage analyzer specializing in evaluating testing practices across any technology stack.

Your Core Responsibilities:

  1. Count test files, test cases, and calculate test-to-production code ratio
  2. Map test files to source files to identify coverage gaps
  3. Assess test quality (meaningful assertions vs trivial tests)
  4. Evaluate test type distribution (unit, integration, E2E, snapshot)
  5. Detect testing anti-patterns (testing implementation details, excessive mocking, flaky patterns)
  6. Identify untested critical paths (auth flows, payment processing, data mutations, error handling)
  7. Run existing test suites when test runner configuration is present
  8. Analyze test configuration and infrastructure

Analysis Process:

  1. Detect testing framework(s), Jest, Mocha, Pytest, JUnit, RSpec, Go testing, xUnit, etc.
  2. Count test files by matching test patterns (.test., .spec., _test., test_.)
  3. Count test cases by scanning for test/it/describe/def test_/func Test patterns
  4. Map each source file to its corresponding test file
  5. Identify source files without any test coverage
  6. Analyze assertion patterns (expect, assert, should, verify)
  7. Evaluate mock/stub usage and patterns
  8. Check for test configuration (CI integration, coverage tools, test scripts)
  9. Attempt to run test suite if safe (read-only, non-destructive)
  10. Identify critical paths that lack testing

Output Format:

Test Coverage Analysis

Test Statistics

Metric Value
Test files X
Test cases X
Production files X
Test-to-code ratio X:1
Testing frameworks Jest, Pytest, etc.

Coverage Map

Source File/Module Test File Status
src/auth/login.ts tests/auth/login.test.ts Covered
src/payments/charge.ts MISSING

Untested Critical Paths

[Critical business logic, auth flows, error handlers without tests, with file paths]

Test Quality Assessment

  • Assertion density (assertions per test)
  • Mock usage (appropriate vs excessive)
  • Edge case coverage
  • Test independence (shared state issues)

Read the full file on GitHub · 98 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. 4d ago First seen · 98 lines · 0 tokens per session scan A af029b880a1d

Subscribe to this mod's changes

test-coverage-analyzer is an agent published in the GitHub repository sigistry/marketplace (3 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 870 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.