skills/crazydubya/test-coverage-analyzer/SKILL.md
Analyzes test coverage gaps and suggests test cases for untested code paths. Use when user requests test improvements, coverage analysis, or wants to increase test coverage.
npx skillsauth add aiskillstore/marketplace test-coverage-analyzerInstall 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 helps identify gaps in test coverage and suggests specific test cases to improve code quality.
Identify the testing framework(s) used in the project:
JavaScript/TypeScript:
jest in package.json or jest.config.jsmocha in package.json or .mocharcvitest in package.json or vitest.config.jsjasmine in package.jsonPython:
pytest in requirements.txt or pytest.inicoverage in requirements.txtRuby:
rspec in GemfileGo:
go test (coverage via go test -cover)Java:
Use Glob and Grep to find configuration files.
Find existing coverage reports:
Common locations:
coverage/ directory.nyc_output/ (NYC for Node.js)htmlcov/ (coverage.py for Python)target/site/jacoco/ (JaCoCo for Java)lcov.info, coverage.json, .coverageIf no coverage report exists:
npm test -- --coverage, pytest --cov, etc.Extract coverage information:
From lcov.info:
From coverage.json (Jest):
From .coverage (Python):
coverage report or coverage jsonFrom HTML reports:
Prioritize files/functions that need testing:
High priority:
Medium priority:
Lower priority:
For each file with coverage gaps:
For each coverage gap, suggest specific test cases:
Format:
File: src/utils/validator.js (42% coverage)
Missing Coverage:
- Lines 15-18: Email validation error path
- Lines 23-25: Empty input handling
- Lines 30-35: Edge case for special characters
Suggested Tests:
1. Test email validation with invalid format (covers lines 15-18)
2. Test validator with empty string input (covers lines 23-25)
3. Test special character handling in names (covers lines 30-35)
Test case details should include:
If user wants, generate test file stubs:
templates/test-template.js (or appropriate extension)Example (Jest):
describe('Validator', () => {
describe('validateEmail', () => {
it('should reject invalid email format', () => {
// TODO: Test email validation error path (lines 15-18)
const result = validateEmail('invalid-email');
expect(result.valid).toBe(false);
});
it('should handle empty string input', () => {
// TODO: Test empty input handling (lines 23-25)
});
});
});
Provide summary statistics:
Order suggestions by:
Present findings in a clear, actionable format:
Coverage Analysis Summary
=========================
Overall Coverage: 67%
- Statements: 65%
- Branches: 58%
- Functions: 72%
- Lines: 67%
Files Needing Attention (sorted by priority):
1. src/payment/processor.js (23% coverage) - HIGH PRIORITY
- Missing: Error handling for payment failures
- Missing: Retry logic tests
- Missing: Transaction validation
2. src/auth/validator.js (45% coverage) - MEDIUM PRIORITY
- Missing: Invalid token handling
- Missing: Expired session tests
Suggested Test Cases:
[Detailed suggestions for each file]
Provide commands based on detected framework:
Jest: npm test -- --coverage or jest --coverage
Vitest: npm test -- --coverage or vitest run --coverage
Mocha + NYC: nyc mocha
pytest: pytest --cov=src --cov-report=html
Go: go test -cover ./... or go test -coverprofile=coverage.out
JUnit + JaCoCo: mvn test jacoco:report
scripts/parse-coverage.sh: Helper script to extract coverage datatemplates/test-template.js: Test file template for JavaScripttemplates/test-template.py: Test file template for Pythontemplates/test-template.go: Test file template for Godevelopment
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.