test-coverage

test-coverage is a skill for Claude Code, Codex from Nordic-AI/production-readiness-skills. It costs 110 tokens per session (3,613 once invoked), scanned A, original, Apache-2.0.

An automated-testing review that measures which code lines and decision branches are tested, while also checking whether tests verify meaningful behavior. It covers unit, integration, end-to-end, stress, and property-based tests.

In plain words
What is it for?
Use it to find missing tests on critical paths, check line and branch coverage against a 90% threshold where required, and generate test scaffolds with real assertions.
Why use it?
A high percentage alone can hide important paths that are untested or tests that pass without checking a result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is `jest.mock('../../src/db')`, replacing the entire database layer.

Good fit Use it to find missing tests on critical paths, check line and branch coverage against a 90% threshold where required, and generate test scaffolds with real assertions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Nordic-AI/production-readiness-skills
agentmods
npx agentmods add skills/nordic-ai/production-readiness-skills/test-coverage

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nordic-ai/production-readiness-skills/test-coverage/github.svg)](https://agentmods.dev/skills/nordic-ai/production-readiness-skills/test-coverage)
Your own site
<a href="https://agentmods.dev/skills/nordic-ai/production-readiness-skills/test-coverage"><img src="https://agentmods.dev/badge/skills/nordic-ai/production-readiness-skills/test-coverage/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-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/nordic-ai/production-readiness-skills/test-coverage"><img src="https://agentmods.dev/badge/skills/nordic-ai/production-readiness-skills/test-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,613 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.00110 $0.03613
Opus 5 $0.00055 $0.01806
Sonnet 5 $0.00022 $0.00723
Haiku 4.5 $0.00011 $0.00361

Measured 11d ago against content hash 298c1613f223, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

test-coverage 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 11d 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.

skills/test-coverage/SKILL.md · 328 lines

How it starts

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

Test Coverage Audit

You review the adequacy of automated testing. Coverage percentage is necessary but not sufficient — you also check what is covered, how it's covered, and whether the tests actually assert meaningful behavior.

Inputs

From orchestrator: scope_tier, stack_summary, gitnexus_indexed, and critical-path map (entry points, HTTP handlers, workers, jobs).

Mode detection

  • Plan mode — produce coverage report with gap list.
  • Edit mode — after report, offer to generate missing tests. Generate test scaffolds with meaningful assertions, not just expect(thing).toBeDefined().

Thresholds by tier

Tier Line Branch Integration tests Stress/load Property-based
prototype advisory (aim 60%+) advisory optional not required optional
team 90% required 90% required required for every critical path basic smoke load (happy-path + 2× expected throughput) recommended
scalable 90% required 90% required required + contract tests between services realistic stress + chaos + soak (24h+) required for serialization / parsing / state machines

"Critical path" = any code path that handles: authentication, authorization, payments, PII reads/writes, external data writes, anything invoked by a scheduled job or message consumer, anything with regulatory relevance.

Step 1 — discover the test setup

  1. Detect the test framework(s):
    • JS/TS: jest, vitest, mocha, playwright, cypress, @testing-library/*, ava.
    • Python: pytest, unittest, hypothesis (property), locust (load).
    • Go: built-in testing, testify, gomock, vegeta / k6 for load.
    • Java/Kotlin: junit5, testng, mockito, gatling.
    • Rust: built-in, proptest, criterion.
    • .NET: xunit, nunit, mstest.
    • Ruby: rspec, minitest.
  2. Read the test config (jest.config.*, pytest.ini, pyproject.toml [tool.pytest.ini_options], go.mod, etc.) to understand: coverage thresholds, excluded paths, test patterns.
  3. Detect CI invocation — does CI actually run tests? Does it enforce a coverage threshold? Grep .github/workflows/, .gitlab-ci.yml, .circleci/, etc.
  4. Inventory test directories: unit vs integration vs e2e vs load. Count files, count test cases.

Read the full file on GitHub · 328 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. 11d ago First seen · 328 lines · 110 tokens per session scan A 298c1613f223

Subscribe to this mod's changes

test-coverage is a skill published in the GitHub repository Nordic-AI/production-readiness-skills (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 110 tokens to every session and 3,613 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

req-to-test

Generates comprehensive test scenarios from requirements including BDD/Gherkin scenarios, unit tests, integration tests, and end-to-end test cases. Use when converting requirements, user stories, or specifications into testable scenarios with full coverage including happy paths, error cases, edge cases, and boundary…

ArabelaTso/Skills-4-SE · 71 tokens

test-strategy

Use when deciding what to test and at which level. Covers the test pyramid, what belongs in unit versus integration versus end-to-end tests, coverage as a signal rather than a target, and eliminating flakiness.

nimadorostkar/Claude-Skills-collection · 47 tokens

test-levels

This skill explains the 3 test levels (Unit, Integration, E2E) using the "Building a Car" analogy and provides guidance on when to use each type. Includes project-specific Playwright examples.

georgekhananaev/claude-skills-vault · 46 tokens

writing-tests

Write unit, integration, and E2E tests that follow the testing pyramid, the Arrange-Act-Assert pattern, the shouldXwhenY naming convention, and meet a 75% (target 80%) branch coverage gate per supported OS. Use when the user asks to write tests, add coverage, build a test suite, fix flaky tests, or verify a feature…

Cristhianzl/claude-skills-czl · 103 tokens

test-strategy-document

Create a production-ready Testing Strategy and QA Execution Plan. Covers testing levels (unit, integration, E2E, performance), mocking boundaries, test environment matrix, code coverage thresholds, and automated CI pipeline runsheets. Use when establishing a QA framework for a new system or feature set.

fattain-naime/engineering-docs · 62 tokens

wp-plugin-testing

Use when writing or setting up tests for a WordPress plugin — PHPUnit integration tests using WPUnitTestCase with the WP test suite (bin/install-wp-tests.sh, phpunit.xml.dist, tests/bootstrap.php), unit tests with Brain Monkey (when() / expect() / Mockery) or WPMock, test factories (factory()->post->create()…

mralaminahamed/wp-dev-skills · 340 tokens