test-gap-analysis

Analyzes production code via pseudo-mutation reasoning to find tests that miss logic changes.

1|Updated Jul 27, 2026
One-click install
npx skills add https://github.com/FittyAr/Cardscape --skill test-gap-analysis-fittyar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-gap-analysis
Source: https://github.com/FittyAr/Cardscape/tree/main/.agents/skills/test-gap-analysis
Command: npx skills add https://github.com/FittyAr/Cardscape --skill test-gap-analysis-fittyar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code coverage tells you which lines ran during tests, but not whether tests would fail if the code were wrong. This Skill performs static pseudo-mutation analysis — reasoning about hypothetical code changes (boundary flips, boolean inversions, null returns, removed exceptions, arithmetic swaps) and checking whether existing tests would catch each one — to reveal blind spots where tests pass but would keep passing even if the code broke. ## Core Features & Use Cases - Mutation Point Catalog: Systematically identifies boundary, boolean, return-value, exception, arithmetic, and null-check mutation points across .NET, Python, TypeScript/JavaScript, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++. - Kill/Survive Classification: Classifies each mutation as Killed, Survived, No coverage, or Equivalent, with per-mutation explanations of why existing assertions miss the change. - Risk-Prioritized Reporting: Produces a mutation score summary plus prioritized recommendations, ranking survived mutations in business-critical logic above low-risk formatting code. - Use Case: After generating tests for a payment calculation module, ask whether the tests would catch an off-by-one in a discount boundary or a removed null guard — the Skill traces each mutation through the test suite and reports exactly which changes would slip through undetected. ## Quick Start Ask the AI to analyze whether the tests for a specific module would catch subtle bugs, for example: "Would my tests catch it if someone changed the boundary condition in OrderCalculator.cs?"

Frequently Asked Questions about test-gap-analysis

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

FAQPage Schema
How do I find weak tests that miss edge cases?▼

Use pseudo-mutation analysis: reason about hypothetical changes to the code (boundary flips, boolean inversions, null returns) and check whether any existing test would fail. Mutations no test would catch are test gaps that need stronger assertions.

What is the difference between code coverage and mutation testing?▼

Code coverage measures which lines executed during tests, while mutation testing measures whether tests detect actual code changes. A method can have 100% line coverage but zero tests that would catch a sign flip or removed null check.

Does pseudo-mutation analysis work for Python and TypeScript?▼

Yes, the analysis is polyglot and supports .NET, Python, TypeScript/JavaScript, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++. Language-specific extension files map concepts like null versus None versus nil to each ecosystem.

When should I use a real mutation testing tool instead?▼

Use actual mutation frameworks like Stryker, mutmut, PIT, go-mutesting, or cargo-mutants when you need executed, empirical mutation scores in CI. Static pseudo-mutation is faster for code review but reasons about mutations without running them.

Why does my test suite pass even when the code has a bug?▼

Tests often execute code without asserting on the behavior a bug would change — for example calling a method but only checking an unrelated property. Mutation analysis identifies these survived mutations and recommends the specific assertion that would catch them.