test-critic

Analyze Jest, Vitest, or pytest suites for coverage gaps and quality issues.

5|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/JansenAnalytics/claudex --skill test-critic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-critic
Source: https://github.com/JansenAnalytics/claudex/tree/main/skills/test-critic
Command: npx skills add https://github.com/JansenAnalytics/claudex --skill test-critic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Evaluates test quality — coverage analysis, mutation testing (do tests actually catch bugs?), test gap detection, and test code quality scoring. Supports Jest, Vitest, pytest. Use after writing tests to verify they're meaningful.

Core Features & Use Cases

  • Comprehensive coverage analysis across frameworks (jest, vitest, pytest) to reveal untested files and weak spots.
  • Mutation testing and gap detection to measure test effectiveness and identify missing scenarios.
  • Actionable quality metrics for test code, including naming, mocks, and snapshot usage, with guidance to improve reliability.

Quick Start

Run test-critic on a project to generate a full health report including coverage, gaps, quality, and mutation results.

Frequently Asked Questions about test-critic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my Jest test suite actually catches bugs beyond basic coverage?

Mutation testing evaluates test effectiveness by modifying code to see if tests fail, measuring whether your suite catches real bugs rather than just hitting lines. Test-critic applies this alongside coverage and gap detection to identify weak spots and missing scenarios.

What's the best way to find untested files and coverage gaps in a Vitest project?

Coverage gap detection analyzes your Vitest project to reveal untested files and weak spots. Test-critic runs a modular pipeline that outputs structured JSON and Markdown reports, guiding improvements to close gaps and elevate test suite health.

Can I assess test code quality and naming conventions for Python pytest projects?

Yes, test code quality scoring evaluates naming, mocks, and snapshot usage for pytest projects. Test-critic provides actionable quality metrics with guidance to improve reliability across JavaScript, TypeScript, and Python.

Does test-critic work with both JavaScript and Python testing frameworks?

Yes, it supports Jest, Vitest, and pytest across JavaScript, TypeScript, and Python. The tool applies coverage analysis, gap detection, quality checks, and optional mutation testing uniformly to generate a full health report.

Why does high code coverage still miss bugs in my test suite?

High coverage only measures executed lines, not whether assertions catch failures. Mutation testing and gap detection assess effectiveness by injecting faults and identifying missing scenarios, revealing untested logic paths that coverage percentages overlook.