test-coverage
Skill1 starsChanged 7 months agoMITView on GitHub
Analyze and improve test coverage. Use when reviewing coverage gaps, writing missing tests, setting up coverage tooling, or improving branch/line/statement coverage for any language or framework.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- luongnv89/skillstheir own version, first seen Sep 26, 2026
- jamesdebatty/skillstheir own version, first seen Sep 8, 2026
- drvoss/everything-copilot-clitheir own version, first seen Aug 9, 2026
- PatriotAgenticLLC/better_claude_skillztheir own version, first seen Jul 1, 2026
- hadyfayed/laravel-agenttheir own version, first seen Jun 23, 2026
- kartik-nighania/av_claude_code_workshoptheir own version, first seen Jun 14, 2026
Used with
Projects with it also use instinct-export, instinct-import and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 3 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
WorldFlowAISkilleval-harness
Also in 4 projects that use this
Microsoft AzureSkilliterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
Also in 3 projects that use this
qtzx06Skilleval
Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.
Also in 3 projects that use this
- +1 more from TheKREATORS
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- luongnv89/skills★ 129same name
- drvoss/everything-copilot-cli★ 47same name
- Minh-Tam-Solution/EndiorBot★ 19same name
- hadyfayed/laravel-agent★ 14same name
- Montimage/skills★ 9same name
- kartik-nighania/av_claude_code_workshop★ 4same name
- PatriotAgenticLLC/better_claude_skillz★ 3same name
- peopleforrester/claude-dotfiles★ 3same name
- kirti/reactforge-demo★ 2same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- arenaSkill
- autopilotSkill
- blast-radiusSkill
- brainstormSkill
- clarifySkill
- code-reviewSkill
- debug-errorSkill
- diagram-designSkill
- explain-codeSkill
- java-coderSkill
- owasp-securitySkill
- pdfSkill
- pretty-mermaidSkill
- refactor-codeSkill
- reflectSkill
- skill-hunterSkill
- teachSkill
- technical-writingSkill
- typesafe-aiSkill
- typescript-coderSkill
- unslopSkill
- write-testsSkill
- wrongSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
37 rules. 0 are common, 37 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
37
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Follow this systematic approach to analyze and improve test coverage:
- Distinctive: line 26
Run existing tests with coverage reporting
- Distinctive: line 28
Document current coverage percentages:
- Distinctive: line 58
Write unit tests for uncovered business logic
- Distinctive: line 59
Add integration tests for uncovered workflows
- Distinctive: line 60
Create tests for error conditions and edge cases
- Distinctive: line 61
Test configuration and environment-specific code
- Distinctive: line 62
Add regression tests for bug-prone areas
- Distinctive: line 66
Test both true and false conditions
- Distinctive: line 68
Test exception handling paths
- Distinctive: line 69
Verify loop conditions and iterations
- Distinctive: line 72
Test boundary conditions and limits
- Distinctive: line 73
Test null, empty, and invalid inputs
- Distinctive: line 74
Test timeout and network failure scenarios
- Distinctive: line 75
Test resource exhaustion conditions
- Distinctive: line 76
Test concurrent access and race conditions
- Distinctive: line 81
Use dependency injection for testability
- Distinctive: line 82
Create test doubles for external services
- Distinctive: line 86
Ensure tests actually verify behavior, not just execution
- Distinctive: line 87
Check for meaningful assertions in tests
- Distinctive: line 88
Avoid testing implementation details
- Distinctive: line 95
Test API endpoints and HTTP status codes
- Distinctive: line 96
Test form validation and user input handling
- Distinctive: line 97
Test authentication and authorization flows
- Distinctive: line 98
Test error pages and user feedback
- Distinctive: line 102
Test different screen sizes and orientations
- Distinctive: line 103
Test offline and network connectivity scenarios
- Distinctive: line 107
Test database operations and transactions
- Distinctive: line 108
Test message queue processing
- Distinctive: line 109
Test caching and performance optimizations
- Distinctive: line 110
Test service integrations and API calls
- Distinctive: line 122
Document reasons for coverage exclusions
- Distinctive: line 124
Avoid excluding code that should be tested
- Distinctive: line 130
Use mutation testing tools specific to your language
- Distinctive: line 135
Use characterization tests for complex legacy systems
- Distinctive: line 137
Add tests before making changes to legacy code
- Distinctive: line 138
Document known limitations and technical debt
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Coverage
Analyze and report test coverage: $ARGUMENTS
Instructions
Follow this systematic approach to analyze and improve test coverage:
- Coverage Tool Setup
- Identify and configure appropriate coverage tools:
- JavaScript/Node.js: Jest, NYC, Istanbul
- Python: Coverage.py, pytest-cov
- Java: JaCoCo, Cobertura
- C#: dotCover, OpenCover
- Ruby: SimpleCov
- Configure coverage reporting formats (HTML, XML, JSON)
- Set up coverage thresholds and quality gates
- Identify and configure appropriate coverage tools:
- Baseline Coverage Analysis
- Run existing tests with coverage reporting
- Generate comprehensive coverage reports
- Document current coverage percentages:
- Line coverage
- Branch coverage
- Function coverage
- Statement coverage
- Identify uncovered code areas
- Coverage Report Analysis
- Review detailed coverage reports by file and directory
- Identify critical uncovered code paths
- Analyze branch coverage for conditional logic
- Find untested functions and methods
- Examine coverage trends over time
- Critical Path Identification
- Identify business-critical code that lacks coverage
- Prioritize high-risk, low-coverage areas
- Focus on public APIs and interfaces
- Target error handling and edge cases
- Examine security-sensitive code paths
- Test Gap Analysis
- Categorize uncovered code:
- Business logic requiring immediate testing
- Error handling and exception paths
- Configuration and setup code
- Utility functions and helpers
- Dead or obsolete code to remove
- Categorize uncovered code:
- Strategic Test Writing
- Write unit tests for uncovered business logic
- Add integration tests for uncovered workflows
- Create tests for error conditions and edge cases
- Test configuration and environment-specific code
- Add regression tests for bug-prone areas
- Branch Coverage Improvement
- Identify uncovered conditional branches
- Test both true and false conditions
- Cover all switch/case statements
- Test exception handling paths
- Verify loop conditions and iterations
- Edge Case Testing
- Test boundary conditions and limits
- Test null, empty, and invalid inputs
- Test timeout and network failure scenarios
- Test resource exhaustion conditions
- Test concurrent access and race conditions
- Mock and Stub Strategy
- Mock external dependencies for better isolation
- Stub complex operations to focus on logic
- Use dependency injection for testability
- Create test doubles for external services
- Implement proper cleanup for test resources
- Coverage Quality Assessment
- Ensure tests actually verify behavior, not just execution
- Check for meaningful assertions in tests
- Avoid testing implementation details
- Focus on testing contracts and interfaces
- Review test quality alongside coverage metrics
Framework-Specific Coverage Enhancement
For Web Applications:
- Test API endpoints and HTTP status codes
- Test form validation and user input handling
- Test authentication and authorization flows
- Test error pages and user feedback
For Mobile Applications:
- Test device-specific functionality
- Test different screen sizes and orientations
- Test offline and network connectivity scenarios
- Test platform-specific features
For Backend Services:
- Test database operations and transactions
- Test message queue processing
- Test caching and performance optimizations
- Test service integrations and API calls
- Continuous Coverage Monitoring
- Set up automated coverage reporting in CI/CD
- Configure coverage thresholds to prevent regression
- Generate coverage badges and reports
- Monitor coverage trends and improvements
- Alert on significant coverage decreases
- Coverage Exclusion Management
- Properly exclude auto-generated code
- Exclude third-party libraries and dependencies
- Document reasons for coverage exclusions
- Regularly review and update exclusion rules
- Avoid excluding code that should be tested
- Mutation Testing (Advanced)
- Implement mutation testing to validate test quality
- Identify tests that don't catch actual bugs
- Improve test assertions and edge case coverage
- Use mutation testing tools specific to your language
- Balance mutation testing cost with quality benefits
- Legacy Code Coverage Strategy
- Prioritize high-risk legacy code for testing
- Use characterization tests for complex legacy systems
- Refactor for testability where possible
- Add tests before making changes to legacy code
- Document known limitations and technical debt
Sample Coverage Commands:
# JavaScript with Jest
npm test -- --coverage --coverage-reporters=html,text,lcov
# Python with pytest
pytest --cov=src --cov-report=html --cov-report=term
# Java with Maven
mvn clean test jacoco:report
# .NET Core
dotnet test --collect:"XPlat Code Coverage"Remember that 100% coverage is not always the goal — focus on meaningful coverage that actually improves code quality and catches bugs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

