Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    Test Gap Hunter

    1

    Identify untested code and high-risk gaps via static analysis of source symbols and test references.

    $9.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned
    Test Gap Hunter

    Test Gap Hunter

    Example session with this skill installed

    Analyze the gap between src/auth and tests/auth in this TypeScript repo. Rank the top gaps by risk and git churn.

    • Read your context and instructions
    • Compiled the test gap hunter

    I have analyzed the src/auth module and compared it against tests/auth. The analysis identified 4 public exports with no test references and ranked them based on a high churn rate in the git history.

    Test Gap Analysis: src/auth

    SymbolLocationRisk ScoreChurn (30d)Status
    validateMfaTokensrc/auth/mfa.ts8.412 commitsCritical Gap
    refreshSessionsrc/auth/session.ts6.28 commitsMissing Test
    parseJwtMetadatasrc/auth/utils.ts4.12 commitsUntested
    auditLogFailedLoginsrc/auth/logger.ts2.51 commitUntested

    Detailed Findings

    High Risk: validateMfaToken in mfa.ts has a high cyclomatic complexity (12) and has been modified frequently this month, yet no references were found in tests/auth/mfa.test.ts.

    Orphaned Symbols: refreshSession is a public export used by the frontend but is completely absent from the current test suite.

    Coverage Estimate: Based on static mapping, approximately 65% of the public API in the auth module is covered by reference-based tests.

    Next steps

    1. Generate a test scaffold for validateMfaToken to cover edge cases in the MFA logic.
    2. Verify if refreshSession is covered by an integration test in a different directory.
    3. Add a unit test for parseJwtMetadata to ensure claims are handled correctly.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Codebases often lack clear visibility into test coverage without the overhead of instrumenting code or running slow CI pipelines. This skill identifies untested code by mapping source files to test files using naming conventions, imports, and symbol references.

    What it does

    • Source mapping maps functions and classes to corresponding test files across Python, JavaScript, TypeScript, Go, Java, and Ruby.
    • Symbol tracking identifies public symbols and exported functions that have zero references in the test suite.
    • Risk ranking prioritizes gaps by evaluating cyclomatic complexity and git change frequency.
    • Orphan detection lists modules that completely lack a corresponding test file or folder.

    How it works

    1. Source Scan analyzes the src directory to catalog public APIs and complex logic blocks.
    2. Test Analysis scans the tests directory to trace references back to the source code.
    3. Gap Identification flags symbols found in source but missing from the test trace.
    4. Prioritization applies risk weights based on git churn and complexity to rank the top 20 most critical gaps.

    Frameworks & tools

    This skill utilizes AST parsing for Python and heuristic pattern matching for JavaScript, TypeScript, Go, Java, and Ruby. It integrates with git to extract churn data for risk scoring.

    Why this beats prompting it yourself

    Generic prompts often miss cross-file references or fail to account for co-located test patterns. This skill uses specific logic to bridge source symbols and test files, ensuring high-risk logic is caught even when naming conventions vary.

    Use cases

    • Legacy code audits to map out testing debt in inherited repositories.
    • Test planning for new features by identifying which public exports are currently exposed.
    • PR reviews to verify that new complex functions have corresponding test references.

    Known limitations

    This is a static analysis tool; a symbol being referenced in a test does not guarantee a functional assertion exists. Accuracy for non-Python languages relies on heuristics.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    • Passed all security checks, Safe to install

    Listedtoday

    What's inside

    Frequently Asked Questions