Agent skill

check-coverage

Comprehensive assessment of Unit / Integration / E2E three-layer test coverage, identify gaps and provide actionable recommendations.

Stars 139
Forks 18

Install this agent skill to your Project

npx add-skill https://github.com/sd0xdev/sd0x-dev-flow/tree/main/skills/check-coverage

SKILL.md

Test Coverage Analysis

Trigger

  • Keywords: check coverage, test coverage, coverage analysis, coverage gaps, check-coverage

When NOT to Use

  • Test sufficiency review via Codex (use /codex-test-review)
  • Generating tests (use /codex-test-gen)
  • Running tests (use /verify)

Parent Skill Reference

See @skills/test-review/SKILL.md for Codex-based test review workflow.

Agent Dispatch

Agent({
  description: "Assess three-layer test coverage and identify gaps",
  subagent_type: "coverage-analyst",
  prompt: `Assess Unit / Integration / E2E test coverage for the feature docs at: $ARGUMENTS
Follow the steps defined in this skill.`
})

Task

Step 1: Read Feature Documentation

Read specified feature docs. Extract:

  • Feature name and objectives
  • Involved Service / Provider / Entity
  • Core flows and boundary conditions

Step 2: Identify Related Source Code

Search related source code based on feature documentation. Build source code inventory.

Step 3: Map Test Files

Check whether each source file has corresponding tests (unit, integration, e2e).

Step 4: Analyze Coverage Gaps

For each source file:

  1. Read source: Identify public methods, important branches, error handling
  2. Read tests: Identify covered cases
  3. Compare gaps: missing methods, uncovered branches, untested error scenarios

Step 5: Classify and Recommend

Severity Description
🔴 Critical Core logic, data writes, amount calculations
🟠 Major Important branches, error handling
🟡 Minor Edge cases, utility functions
⚪ Nice-to-have Logging, formatting

Output

markdown
# Test Coverage Analysis Report

## Feature Overview
- Feature name: <from documentation>
- Documentation path: $ARGUMENTS
- Related modules: <list>

## Current Coverage
| Module | Source Path | Test Path | Coverage Status |
|--------|------------|-----------|----------------|

## Coverage Gaps
### 🔴 Critical
### 🟠 Major
### 🟡 Minor

## Recommended New Tests
| Priority | Test Type | Test Case | Target File |
|----------|-----------|-----------|-------------|

## Coverage Summary
| Metric | Status |
|--------|--------|
| Feature coverage | X/Y (Z%) |
| Happy path | ✅/❌ |
| Error path | ✅/❌ |
| Edge cases | ✅/❌ |

Expand your agent's capabilities with these related and highly-rated skills.

sd0xdev/sd0x-dev-flow

runbook

Generate and update feature release runbooks from existing docs and codebase. Use when: creating operational runbook, release handbook, deployment checklist, pre-release preparation. Not for: incident response (v2), code review (use codex-code-review), architecture design (use architecture).

139 18
Explore
sd0xdev/sd0x-dev-flow

ask

Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or skills during development. Not for: code changes (use feature-dev), code review (use codex-review-fast), deep research (use deep-research), full code trace (use code-explore). Output: structured answer with source attribution.

139 18
Explore
sd0xdev/sd0x-dev-flow

project-brief

Convert a technical spec into a PM/CTO-readable executive summary. Simplify technical details, focus on business value.

139 18
Explore
sd0xdev/sd0x-dev-flow

codex-test-gen

Generate unit tests for specified functions using Codex MCP

139 18
Explore
sd0xdev/sd0x-dev-flow

bug-fix

Bug fix workflow. Use when: fixing bugs, resolving issues, regression fixes. Not for: new features (use feature-dev), understanding code (use code-explore). Output: fix + regression test + review gate.

139 18
Explore
sd0xdev/sd0x-dev-flow

skill-health-check

Validate skill quality against routing, progressive loading, and verification criteria. Use when: auditing skills, checking skill health, reviewing skill design. Not for: code review (use codex-code-review) or doc review (use doc-review). Output: health report with per-skill ratings + Gate.

139 18
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results