skill-coverage-audit
Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs
Skill by mhdxbilal
Chalk Labs
Need help deploying skill-coverage-audit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mhdxbilal-skill-coverage-audit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/skill-coverage-audit
What's inside
- Skill name
skill-coverage-audit- Description
- Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs
- License
- MIT
- Instructions
- 247 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Test Coverage Audit ## Overview Trace every codepath in a diff, map each path against existing tests, visualize coverage gaps, and auto-generate tests for uncovered paths. **Core principle:** Trace codepaths in changed files -> Map against existing tests -> Score coverage quality -> Generate tests for gaps -> Report before/after counts. --- ## Caps and Limits These hard limits prevent runaway analysis: - **30 code paths max** per audit. If a diff yields more than 30, prioritize by complexity and risk (error paths, security-sensitive branches, public API surfaces first). - **20 tests generated max** per audit. Focus on highest-impact gaps first. - **2-minute per-test exploration cap.** If understanding a single test path takes longer than 2 minutes, mark it as "needs manual review" and move on. --- ## Phase 1: Codepath Tracing ### Step 1: Identify Changed Files Determine the diff scope. Use the most relevant source: ```bash # PR diff git diff --name-only main...HEAD # Staged changes git diff --name-only --cached # Last commit git diff --name-only HEAD~1..HEAD ``` Filter to source code files only (exclude configs, docs, generated files). ### Step 2: Trace Data Flow Through Every Branch For each changed file, you MUST trace: 1. **Conditionals** -- Every `if/else`, `switch/case`, ternary, and pattern match. Each branch is a separate codepath. 2. **Error paths** -- Every `catch`, `throw`, error return, validation failure, and early return with error. WHY: Error paths are the most common source of untested bugs. 3. **Function calls** -- Every function invoked from changed code. Trace one level deep into callees to identify integration boundaries. 4. **Loop boundaries** -- Empty collection, single item, and multi-item paths through loops. 5. **Guard clauses** -- Every early return, null check, and permission gate. ### Step 3: Build the Codepath Inventory Produce a structured inventory: ```markdown ## Codepath Inventory: [filename] | # | Path Description | Type | Risk | |---|-----------------|------|------| | 1 | validateUser() happy path | conditional | low | | 2 | validateUser() missing email | error | medium | | 3 | validateUser() invalid format | error | medium | | 4 | processOrder() empty cart guard | guard | high | | 5 | processOrder() payment timeout | error | high | | 6 | processOrder() success | conditional | low | ``` **Type categories:** `conditional`, `error`, `guard`, `loop-boundary`, `integration`, `async` **Risk assessment:** `high` = user-facing failure or data loss, `medium` = degraded behavior, `low` = cosmetic or logging --- ## Phase 2: Test Mapping and Quality Scoring ### Step 1: Search for Existing Tests For each file in the diff, search the test directory for related tests: ```bash # Find test files that reference the changed file or its exports # Search by filename pattern find tests/ -name "*[changed_file_stem]*" -type f # Search by import/require of the changed module grep -rl "import.*from.*[module_name]" tests/ grep -rl "require.*[module_name]" tests/ # Search by function name references grep -rl "[function_name]" tests/ ``` ### Step 2: Score Test Quality For each codepath, assess existing test coverage with this rubric: | Rating | Meaning | Criteria | |--------|---------|----------| | ★★★ | Behavior + edge cases tested | Tests assert behavior AND cover boundary conditions, error cases, and edge inputs | | ★★ | Happy path tested | Tests cover the success path but miss error branches or edge cases | | ★ | Smoke test only | Test exists but only checks the function runs without error (no meaningful assertions) | | ☆ | No test found | No test references this codepath at all | ### Step 3: Produce Coverage Map Map each codepath to its test coverage: ```markdown ## Coverage Map: [filename] | # | Codepath | Test File | Rating | Notes | |---|----------|-----------|--------|-------| | 1 | validateUser() happy path | test-user.sh:42 | ★★★ | Asserts valid + invalid inputs | | 2 | validateUser() missing email | test-user.sh:58 | ★★ | Tests missing, not malformed | | 3 | validateUser() invalid format | -- | ☆ | No test for format validation | | 4 | processOrder() empty cart guard | -- | ☆ | Guard clause untested | | 5 | processOrder() payment timeout | test-orders.sh:30 | ★ | Checks no crash, no assertions | | 6 | processOrder() success | test-orders.sh:15 | ★★★ | Full integration test | ```
From mhdxbilal/Ai, MIT.
More from mhdxbilal/Ai
- 0.496score
skill-debug
mhdxbilal
Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
flow-spec
mhdxbilal
NLSpec authoring — use when you need a structured specification from multi-AI research and consensus
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-deck
mhdxbilal
Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-decision-support
mhdxbilal
Present options with trade-offs for informed decision-making — use when choosing between approaches
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-code-review
mhdxbilal
Expert multi-AI code review with inline PR comments — use for thorough quality and security analysis
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-claw
mhdxbilal
OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-context-detection
mhdxbilal
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-cost-projections
mhdxbilal
Project remaining workflow cost from per-phase averages — warns on budget ceiling overruns
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-copilot-provider
mhdxbilal
GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode
SkillCFreshness: C★ 1Claude Code +9 - 0.487score
skill-extract
mhdxbilal
Reverse-engineer design systems, tokens, and components from live products or screenshots
SkillCFreshness: C★ 1Claude Code +9 - 0.487score
octopus-architecture
mhdxbilal
System architecture and API design with multi-AI consensus — use for design reviews and new subsystems
SkillCFreshness: C★ 1Claude Code +9 - 0.482score
skill-content-pipeline
mhdxbilal
Extract patterns and anatomy from URLs — use to reverse-engineer content strategies from live pages
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 19, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mhdxbilal/Ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from mhdxbilal
- 0.496score
skill-decision-support
mhdxbilal
Present options with trade-offs for informed decision-making — use when choosing between approaches
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-deck
mhdxbilal
Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
flow-spec
mhdxbilal
NLSpec authoring — use when you need a structured specification from multi-AI research and consensus
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
skill-debug
mhdxbilal
Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-claw
mhdxbilal
OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
skill-context-detection
mhdxbilal
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get skill-coverage-audit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
skill-coverage-audit. Agent Mart. https://agentmart.dev/skills/mhdxbilal-skill-coverage-audit (last updated 2026-10-24)