Skip to content
Back to skills

Test Gap

ASecurity

Analyze a specific file or feature and identify what's tested vs what's not. Use when writing tests for legacy code or when an audit surfaces coverage gaps.

  • 14 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
testinggodocker

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add brkomir/anja --skill test-gap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Gap?

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

Security grade badge for Test Gap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brkomir-test-gap/badge)](https://www.skillsdirectory.com/skills/brkomir-test-gap)

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: test-gap
description: Analyze a specific file or feature and identify what's tested vs what's not. Use when writing tests for legacy code or when an audit surfaces coverage gaps.
---

# Test Gap — Find Untested Code Paths

Analyze a specific file or feature and identify what's tested vs what's not.

## When to Use
- After implementing a fix, before committing — "did I cover this?"
- During audit-check when evaluating test coverage
- When QA expert flags test gaps

## Process
1. Take a file path or feature name as input
2. Find all test files that reference it: `grep -rl "{filename}" tests/`
3. Categorize existing tests: behavioral (imports function) vs source-grep (readFileSync)
4. Identify untested code paths:
   - Error/catch blocks without corresponding failure tests
   - Conditional branches (if/else) without both-branch tests
   - Credit operations without refund-path tests
   - Auth checks without unauthorized-access tests
5. Report gaps with specific test recommendations

## Output
```
## Test Gap Analysis: {file}

Existing coverage: {N} tests ({M} behavioral, {K} source-grep)

Untested paths:
1. {error path at line N} — needs: integration test with mock failure
2. {conditional at line N} — needs: unit test for false branch
3. {credit operation at line N} — needs: Docker integration test

Recommendation: {N} tests to add, {effort estimate}
```

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 testing →

Comments

Loading comments…

Newsletter

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