Skip to content
Back to skills

Coverage Gaps

ASecurity

Runs coverage, ranks the riskiest untested code by what breaks if it fails, and writes tests for the top items.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill coverage-gaps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coverage Gaps?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coverage Gaps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-coverage-gaps/badge)](https://www.skillsdirectory.com/skills/workspace-templates-coverage-gaps)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coverage-gaps
description: Runs coverage, ranks the riskiest untested code by what breaks if it fails, and writes tests for the top items.
argument-hint: "[folder or module, default all]"
user-invocable: true
disable-model-invocation: true
---

Find and close coverage gaps. Scope: $ARGUMENTS (whole project if empty).

1. Run the project's coverage command (jest --coverage, vitest --coverage, pytest --cov, go test -cover, dotnet test with coverlet, cargo llvm-cov). If none is configured, suggest the smallest setup and ask before adding it.
2. Record the overall and per-file figures, including branch coverage if available.
3. Rank uncovered code by risk: money, auth, data writes and parsing first, then branching complexity, then recent change frequency (check `git log --since=3.months --name-only`). Ignore generated code, types and trivial getters.
4. Show the top 10 gaps with file, uncovered lines or branches, and why each is risky.
5. Write tests for the top 3, following the existing style. Assert behavior, not implementation details. Do not add tests whose only purpose is to touch lines.
6. Rerun coverage and compare.

Report before and after per file and list the remaining gaps. Ask before committing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.