skills/test-coverage-audit/SKILL.md
Comprehensive test suite audit that combines ruthless analysis with a solution-focused roadmap. Reads test suites (unit, integration, e2e) and source code, produces a brutal audit report of test quality and gaps, and generates prioritized testing improvements.
npx skillsauth add harshitsinghbhandari/domain-expansion test-coverage-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides a two-phase review of testing strategies and test coverage:
Both outputs are produced in a single run, enabling teams to understand their testing weaknesses and how to shore up their defenses systematically.
Explicit triggers only. This skill activates ONLY when the user explicitly mentions:
Required input: User must provide or reference the test files and the corresponding source code files. If no files are provided, politely request: "Please provide the test and source files you'd like audited."
File format: All audited content is source and test code.
audit.md)The audit phase adopts a no-nonsense, penetrating analytical approach:
Generate audit.md with this exact structure:
# Test Coverage & Strategy Audit Report
## Executive Summary
- **Overall Score**: X/1000
- **Testing Pyramid Health**: [Healthy / Inverted / Missing Layers]
- **Primary Strengths**: ...
- **Critical Weaknesses**: ...
## File/Module Scores
| Source Module | Test Coverage/Quality Score /100 | Assessment |
|---------------|----------------------------------|------------|
| [module] | [score] | [one-line verdict] |
## Detailed Findings
### Coverage Gaps
[Analysis of untested happy paths, missing edge cases, and neglected error conditions]
### Test Quality & Assertions
[Are tests actually validating behavior or just executing code? Assessment of assertion strength.]
### Mocking & Coupling
[Overuse of mocks that hide integration issues, tests too tightly coupled to implementation details]
### Maintainability & Structure
[Brittle tests, duplicated setup logic, setup/teardown health, slow tests]
### Strategy Coherence
[Do the tests align with the system's risk priorities? Is the unit/integration/e2e ratio sensible?]
## Final Verdict
[Summary of the overall testing posture and confidence level]
Per-file quality scores (/100):
Overall score (/1000):
Evaluation criteria:
improvements.md)The improvements phase adopts a calm, methodical, strategic mindset:
Generate improvements.md with this exact structure:
# Testing Strategy Improvements Roadmap
## Critical Test Additions & Fixes
[Untested critical paths or tests that must be rewritten immediately because they are brittle/useless]
### Improvement: [Name]
- **Target**: [File/function]
- **Problem**: [Clear description of missing coverage or bad test]
- **Impact**: [Why this is critical to catch bugs]
- **Suggested Approach**: [How to write/rewrite the test, including what to assert]
## Medium Priority Testing Enhancements
[Broadening edge cases, reducing mock usage, improving test setup]
### Improvement: [Name]
- **Target**: [File/module]
- **Problem**: [Clear description]
- **Impact**: [Why this makes tests better]
- **Suggested Approach**: [Solution outline]
## Nice-to-Have Enhancements
[Test speed optimizations, parametrization, CI/CD improvements]
### Enhancement: [Name]
- **Target**: [Test suite]
- **Description**: [What could be improved]
- **Benefit**: [Why it's worth doing]
- **Suggested Approach**: [Solution outline]
audit.md with ruthless, systematic breakdown of testing flaws.improvements.md with solution-focused testing roadmap.development
Aggressive user-flow and boundary-bug analysis on a diff or branch. Auto-detects entry points, traces flows through changed code, finds every seam (cross-module calls, serialization, file I/O, shared state, schema versioning, network/IPC), and refuses to mark the work complete until each unverified boundary has a real round-trip test or an explicit written out-of-scope record persisted in an audit file. Use whenever the user says "boundary check", "seam check", "round-trip check", "flow boundaries", "user-flow check", "before merge", "is this safe to ship", "pre-merge gate", "boundary bugs", "verify the joins", or asks to validate cross-module joins, producer/consumer contracts, or end-to-end coverage of a change. Also use as a final gate from pr-review on any diff that touches more than one file, module, or process. Be pushy. Most surviving production bugs live at seams, not inside units — if the diff crosses any boundary, this skill almost certainly applies.
development
Run existing work through 5 specialist craftspeople who each produce an improved version, then peer-review and synthesize the best into a single improved artifact. Use when the user says "forge this", "improve this", "make this better", "level this up", "refine this", or asks for multi-angle improvement on code, copy, strategy, plans, designs, or any artifact where the current version works but could be significantly better. Do NOT use for decisions (use llm-council), simple edits, or creation from scratch.
development
Expert skill for maintaining a Keep a Changelog formatted CHANGELOG.md file. Use this skill whenever you add features, fix bugs, or release a new version. You MUST use this skill to record any changes that have a user-facing impact. It handles categorization (Added, Changed, Fixed, etc.), semantic versioning, and reverse-chronological ordering with surgical precision.
development
Propose how to upgrade a resume by identifying missing projects, skills, evidence, and experience-building moves, but only after a `resume-critic` review has been completed for a specific job description or job title. Use when the user wants strategic suggestions beyond the current resume.