Agent skill
review-test-coverage
Analyze code for test coverage gaps, untested functions, and missing edge cases. Returns structured findings without writing tests. Use when the user asks to "review test coverage", "check test coverage", "find untested code", "analyze coverage gaps", or "what needs tests".
Install this agent skill to your Project
npx add-skill https://github.com/tobihagemann/turbo/tree/main/skills/review-test-coverage
SKILL.md
Review Test Coverage
Analyze code for test coverage gaps. Identify untested functions, missing edge cases, and areas where test quality is insufficient. Return structured findings.
Step 1: Determine the Scope
Determine what to analyze:
- If a specific diff command was provided (e.g.,
git diff --cached), run it to identify changed code that needs coverage analysis. - If a file list or directory was provided, analyze those files directly.
- If neither was provided, default to diffing against the repository's default branch (detect via
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name').
Step 2: Identify Coverage Gaps
- For each file in scope, skip non-testable code (config, documentation, CI files, SKILL.md files, markdown)
- Search for existing test files covering the target code
- Identify the project's test framework and conventions by reading existing test files
- Analyze each function/module for:
- No test coverage: functions or modules with no corresponding tests
- Missing edge cases: tests exist but miss critical paths (error handling, boundary conditions, empty inputs, concurrent access)
- Risk-level mismatch: high-risk code (auth, data handling, financial logic) with only basic happy-path tests
- Convention gaps: tests not following the project's established testing patterns
Output Format
Return findings as a numbered list. For each finding:
### [P<N>] <title (imperative, <=80 chars)>
**File:** `<file path>` (lines <start>-<end>)
<one paragraph describing the coverage gap and why it matters>
After all findings, add:
## Overall Verdict
**Test Coverage:** <adequate | gaps found>
<1-3 sentence summary>
If nothing needs tests, report that and explain briefly.
Priority Levels
- P0 — Critical code with no tests (auth, data mutation, payment processing)
- P1 — Important code with no tests or high-risk code with only happy-path tests
- P2 — Code with tests but missing significant edge cases
- P3 — Minor coverage gaps or convention mismatches
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
review-api-usage
Check API, library, and framework usage in code against official documentation and installed skill knowledge. Flags deprecated APIs, incorrect method signatures, wrong parameter types, version-incompatible patterns, and best-practice violations. Use when the user asks to "review API usage", "check API usage", "verify against docs", "check library usage", "validate API calls", "check against documentation", or "check for deprecated APIs".
resolve-pr-comments
Evaluate, fix, answer, and reply to GitHub pull request review comments. Handles both change requests (fix or skip) and reviewer questions (explain using reasoning recalled from past Claude Code transcripts). Use when the user asks to "resolve PR comments", "fix review comments", "address PR feedback", "handle review comments", "address review feedback", "respond to PR comments", "answer review questions", or "address code review".
consult-codex
Multi-turn consultation with Codex CLI for second opinions, brainstorming, or collaborative problem-solving. Use when the user asks to "consult codex", "ask codex", "get codex's opinion", "brainstorm with codex", "discuss with codex", or "chat with codex".
review-tooling
Detect what dev tooling infrastructure a project has and flag gaps across linters, formatters, pre-commit hooks, test runners, and CI/CD pipelines. Returns structured findings without applying changes. Use when the user asks to "review tooling", "check project tooling", "what tooling is missing", "review dev infrastructure", or "tooling audit".
create-changelog
Create a CHANGELOG.md following keepachangelog.com conventions with version history backfilled from GitHub releases or git tags. Use when the user asks to "create a changelog", "add a changelog", "initialize changelog", "start a changelog", "set up changelog", "generate changelog", or "backfill changelog".
update-changelog
Update the Unreleased section of CHANGELOG.md based on current changes. No-op if CHANGELOG.md does not exist. Use when the user asks to "update changelog", "add to changelog", "update the changelog", "changelog entry", "add changelog entry", or "log this change".
Didn't find tool you were looking for?