milad-ahmd/agent-skills/test-gap-hunter
Claude Code and agent skill by milad-ahmd/agent-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Finds the riskiest untested code in a project and writes meaningful tests for it using the project's existing test framework and conventions. Use when the user asks to improve coverage, add tests, find untested code, or harden a module before a refactor.
Install
npx vskill@latest install milad-ahmd/agent-skills/test-gap-hunterSKILL.md
The same SKILL.md was published earlier as milad-ahmd/agent-skills/test-gap-hunter.
Test Gap Hunter
Write the tests that actually catch bugs, not tests that only inflate coverage.
Workflow
- Detect the test setup. Find the framework (Jest, Vitest, pytest, Go
testing, JUnit, RSpec, PHPUnit, XCTest, flutter_test...), the test file locations and naming, the mocking and fixture style, and the command used to run tests (package scripts, Makefile, CI). - Measure, if possible. Run the coverage tool when one is configured (
vitest --coverage,jest --coverage,pytest --cov,go test -cover ./...). If not, map source files to test files by name. - Rank the gaps by risk, not by line count:
- business logic, money, auth, permissions, parsing, date/time handling, concurrency
- code with many branches and error paths
- recently changed code (
git log --since=90.days --name-only) - public APIs that other modules depend on
- Present the top 5–10 gaps with a one-line reason each, then write tests for the ones the user picks (default: the top 3).
- Run the new tests and iterate until they pass. If a test reveals a real bug, don't change the test to make it pass. Report the bug.
What a good test covers
- The happy path, plus edge cases: empty, null/None, zero, negative, max values, unicode, time zones, duplicates.
- Error paths: invalid input, failing dependency, timeout.
- Names that describe behaviour, such as
returns 401 when token is expired. - Arrange–Act–Assert structure, one behaviour per test, no logic inside tests.
- Mocks only at boundaries (network, clock, filesystem, randomness). Don't mock the unit under test.
Rules
- Match existing conventions exactly: file placement, imports, helpers, fixtures, assertion style.
- Add no new test dependencies without asking.
- Tests must be deterministic: no real network calls, fixed clocks and seeds.
- Report at the end: the files added, the number of tests, the before/after coverage (if measured) and any bugs found.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/test-gap-hunter/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/milad-ahmd/agent-skills/test-gap-hunter)