code-test-quality

code-test-quality is a skill for Claude Code from laurigates/claude-plugins. It costs 35 tokens per session (1,272 once invoked), scanned A, original, MIT.

A tool for checking whether a test suite is trustworthy, including its assertions, coverage gaps, and flaky behavior.

In plain words
What is it for?
Use it after major refactors or when bugs ship despite passing tests to inspect test smells, misleading coverage, and timing-dependent failures.
Why use it?
A test suite can pass while still missing important cases or containing unreliable tests; this analysis helps expose those weaknesses.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; positional $N argument.

Part of the code-quality-plugin plugin — 17 skills shipped together

Good fit Use it after major refactors or when bugs ship despite passing tests to inspect test smells, misleading coverage, and timing-dependent failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laurigates/claude-plugins/code-test-quality
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.

Any agent
npx skills add laurigates/claude-plugins --skill code-test-quality
Clone the repo
git clone --depth 1 https://github.com/laurigates/claude-plugins

Made for: Claude Code.

Or install code-quality-plugin, the plugin that ships this one along with the rest of its 17 skills.

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 code-test-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/code-test-quality/github.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/code-test-quality)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/code-test-quality"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/code-test-quality/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 code-test-quality

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/code-test-quality"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/code-test-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,272 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 6
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 140
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 6
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Excessive Agency · line 53
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00035 $0.01272
Opus 5.5 $0.00014 $0.00509
Sonnet 5.5 $0.00007 $0.00254
Haiku 4.5 $0.00003 $0.00127

Measured 1mo ago against content hash 20672e32191a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-test-quality 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 1mo 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.

code-quality-plugin/skills/code-test-quality/SKILL.md · 143 lines

How it starts

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

/code:test-quality

Analyze test suite for quality issues and reliability.

When to Use This Skill

Use this skill when... Use something else when...
Test suite passes but bugs still ship Setting up test framework → /configure:tests
Coverage numbers are high but quality feels low Setting up coverage thresholds → /configure:coverage
Tests are flaky or timing-dependent Looking for code anti-patterns → /code:antipatterns
After major refactor, need test health check Running tests → /test:run

Context

  • Test files: !find . -type f \( -name "*.test.*" -o -name "*.spec.*" -o -name "test_*.py" -o -name "*_test.py" -o -name "*_test.go" -o -name "*_test.rs" \) -not -path "*/node_modules/*"
  • Test config: !find . -maxdepth 2 \( -name "vitest.config.*" -o -name "jest.config.*" -o -name "pytest.ini" -o -name "pyproject.toml" -o -name "conftest.py" \) -type f

Parameters

  • $1: Path to analyze (defaults to current directory)
  • --focus: Analysis focus — smells (default), coverage, flaky, or all

Execution

Execute this test quality analysis:

Step 1: Discover test suite

Scan the target path for test files. Categorize by:

  • Unit tests
  • Integration tests
  • E2E tests Count total test files and estimate test-to-source ratio.

Step 2: Detect test smells

Scan test files for these anti-patterns:

Empty tests (Critical):

  • Test bodies with no assertions
  • Tests that only call the function without checking results
  • expect() or assert never called

Weak assertions (High):

  • expect(result).toBeTruthy() on objects (always passes)
  • assert result without specific value checks
  • assertEqual(len(result), len(result)) (tautologies)
  • Snapshot tests without meaningful structure checks

Test duplication (Medium):

  • Copy-pasted test bodies with minor variations
  • Same setup/teardown repeated across many tests
  • Missing parameterized/table-driven patterns

Missing edge cases (Medium):

  • No tests for error paths
  • No tests for empty/null/undefined inputs
  • No boundary value tests
  • No tests for concurrent access (where applicable)

Read the full file on GitHub · 143 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. 1mo ago First seen · 143 lines · 35 tokens per session scan A 20672e32191a

Subscribe to this mod's changes

code-test-quality is a skill published in the GitHub repository laurigates/claude-plugins (59 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,272 once invoked, about $0.0001 per session on Opus 5.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.