Branches — every if/else and catch exercised, not just the happy line.
Concurrency / order — anything stateful tested in isolation AND in sequence.
Skip tests that assert a constructor sets a property — worthless. Test behavior, not implementation. Output: the 3-5 highest-risk untested paths, ranked by blast radius, with the test to add.
1---2name: coverage-gaps3description: Coverage Gaps4---5# Coverage Gaps6Coverage % is a vanity metric. Hunt the gaps that bite:7- **Error paths** — the 500, the timeout, the empty/null input, the malformed payload. Almost always untested.8- **Boundaries** — 0, 1, max, off-by-one, empty collection.9- **Branches** — every `if/else` and `catch` exercised, not just the happy line.10- **Concurrency / order** — anything stateful tested in isolation AND in sequence.11Skip tests that assert a constructor sets a property — worthless. Test behavior, not implementation. Output: the 3-5 highest-risk untested paths, ranked by blast radius, with the test to add.
Run npx skillmds@latest add archive228/coverage-gaps in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Coverage Gaps It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
archive228 (@archive228) published this skill. Their other Agent Skills are listed on their SkillMD profile.