test-quality-analysis

test-quality-analysis is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 77 tokens per session (2,106 once invoked), scanned A, original, MIT.

A test-suite review that finds tests with no meaningful checks, always-true checks, and other patterns that do not show whether the code works.

In plain words
What is it for?
Use it to audit tests before a release, find test smells, judge whether tests are useful, or identify tests that may be safe to remove.
Why use it?
It helps distinguish tests that catch bugs from tests kept mainly to raise coverage numbers, so you can focus maintenance on tests with real value.

Skill for Claude CodeCodex

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

Good fit Use it to audit tests before a release, find test smells, judge whether tests are useful, or identify tests that may be safe to remove.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/test-quality-analysis
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 fabioc-aloha/Alex_Skill_Mall --skill test-quality-analysis
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

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-quality-analysis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/test-quality-analysis"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/test-quality-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,106 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.00077 $0.02106
Opus 5 $0.00039 $0.01053
Sonnet 5 $0.00015 $0.00421
Haiku 4.5 $0.00008 $0.00211

Measured 6d ago against content hash 24010eeead81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

test-quality-analysis 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 6d 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-quality/test-quality-analysis/skills/test-quality-analysis/SKILL.md · 207 lines

How it starts

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

Test Quality Analysis

Detect tests that exist solely for coverage metrics, identify test smells, and score test value.

MANDATORY TELEMETRY: FIRST action → invoke ai-starter-pack-signal with skill_name: "test-quality-analysis" only, save returned run_id. On ANY exit → invoke again with same run_id + outcome. On cancel → outcome: "partial". Non-blocking — skip silently on failure.

When to Use

  • Auditing test suite quality before a release
  • Suspecting tests inflate coverage without catching bugs
  • User asks "are these tests any good" or "find useless tests"

What This Skill Is NOT

  • Not refactor: That improves production code. This evaluates test code.

Detection Heuristics

Detect the project's test framework by scanning test files for import/require statements and config files, then apply these patterns:

Critical (Score 1-2)

Pattern Why It's Bad
No assertions — test calls methods but never verifies outcomes Exercises code without proving it works
Trivial assertions — asserts on constants or always-true conditions Always passes regardless of behavior
Exception swallowing — catches all errors silently Hides failures; test can never fail
Self-referential — asserts input equals output when transformation is identity Tests nothing meaningful

Warning (Score 2-3)

Pattern Why It's Concerning
Over-mocking — every dependency mocked; no real code executes Tests the mock setup, not behavior
Coverage touching — calls methods systematically without verifying behavior Covers lines without testing logic
Weak verification — checks type/shape only, not content Misses value-level bugs
Missing negative path — only happy path tested Won't catch error handling bugs

Read the full file on GitHub · 207 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. 6d ago First seen · 207 lines · 77 tokens per session scan A 24010eeead81

Subscribe to this mod's changes

test-quality-analysis is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed 3d ago), licensed MIT. It adds 77 tokens to every session and 2,106 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

flutter-bloc-state-management

Implement BLoC/Cubit state, events, transitions, and async concurrency in Flutter. Use for BLoC/Cubit feature logic, debounced/cancellable events, state rendering, or bloc tests—not generic widget-only work.

HoangNguyen0403/agent-skills-standard · 52 tokens

code-qualities-assessment

Assess code maintainability through 5 foundational qualities (cohesion, coupling, encapsulation, testability, non-redundancy) with quantifiable scoring rubrics. Works at method/class/module levels across multiple languages. Produces markdown reports with remediation guidance. Use when you ask to "assess…

rjmurillo/ai-agents · 108 tokens

unit-test

A Go testing workflow for writing unit tests: small tests that check individual functions or components. It supports table-driven cases, where many inputs and expected results are organised in one test, and subtests.

johnqtcg/awesome-skills · 100 tokens

fuzzing-test

A Go testing guide for generating fuzz tests, which repeatedly try varied inputs to find crashes and unexpected behavior. It first checks whether the code is suitable for fuzzing.

johnqtcg/awesome-skills · 74 tokens

test-component

Write React Testing Library tests for an existing component, following the project's RTL conventions (prefer role/label queries, mock at network boundary, no act()). Invoke when the user asks to test, add tests for, or cover a component.

MuhammadUsmanGM/claude-code-best-practices · 50 tokens

adept-writing-tests

How to write tests in the adept Go codebase — table-driven tests with testify, golden fixtures under testdata/, the cmd/adept e2e harness, temp-dir/HOME isolation, and coverage gates. Apply when adding or changing Go tests here. (matches: /test.go).

itaywol/adeptability · 61 tokens