analyze-test-coverage

Analyze Go packages to identify gaps in test coverage without modifying code.

5|2|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/thoreinstein/opencode-config --skill analyze-test-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-test-coverage
Source: https://github.com/thoreinstein/opencode-config/tree/main/skill/analyze-test-coverage
Command: npx skills add https://github.com/thoreinstein/opencode-config --skill analyze-test-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams identify and report gaps in test coverage across a repository without altering tests or implementation.

Core Features & Use Cases

  • Scope-aware analysis that maps production code to tests to locate coverage gaps.
  • Generates a prioritized report highlighting untested paths, error branches, and critical components.
  • Use cases include SDET-driven repo audits, onboarding new code, and ensuring readiness for releases.

Quick Start

Run the analysis with an optional target to scope the search; omit the target to scan the entire repository. Provide a specific package, directory, or file to limit scope if needed. Review the generated findings to drive test-writing efforts.

Frequently Asked Questions about analyze-test-coverage

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

FAQPage Schema
How do I find untested code paths and error handling gaps in a Go repository?

To find untested code paths in a Go repository, you can analyze test coverage by mapping production files to their corresponding tests. This process highlights untested error branches and critical components without modifying any implementation.

What is the best way to scope test coverage analysis to a specific Go package?

Scoping test coverage analysis to a specific Go package involves providing the target package, directory, or file path during the scan. This limits the coverage gap search to the defined scope instead of analyzing the entire repository.

Does test coverage analysis modify my existing Go tests or production code?

Test coverage analysis does not modify your existing Go tests or production code. It operates as a read-only audit that generates a prioritized report detailing untested paths and critical components to drive test-writing efforts.

How does identifying test coverage gaps help with SDET repo audits and release readiness?

Identifying test coverage gaps supports SDET repo audits and release readiness by generating a prioritized report of untested paths and critical components. This highlights areas needing tests before deployment without altering the codebase.

Can I scan an entire Go repository for missing test coverage without specifying a target?

You can scan an entire Go repository for missing test coverage by omitting the target parameter. This broad analysis maps all production files to their tests and reports untested code paths across the whole project.