Agent skill
test-augmentation
Validates and improves test coverage for code changes. Checks coverage thresholds, identifies untested code paths, and provides guidance on writing effective tests. Use after making code changes or when improving test quality.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/test-augmentation
Metadata
Additional technical details for this skill
- version
- 2.0.0
- technology
- global
SKILL.md
Test Augmentation
Generate missing tests to improve code coverage.
When to use this skill
- After implementing new features
- When refactoring existing code
- To identify gaps in test coverage
- During test quality improvements
- When asked to "add tests" or "improve coverage"
Skill Contents
Available Resources
references/ - Detailed documentation
- go
- java
- python
- test patterns
- typescript
Quick Start
- Run coverage report for your technology:
- JavaScript/TypeScript:
pnpm run test:coverage - Python:
pytest --cov=. --cov-report=html - Java:
./gradlew jacocoTestReport - Go:
go test -cover ./...
- JavaScript/TypeScript:
- Review uncovered files and functions
- Apply patterns from the references:
references/test-patterns.md- General test patternsreferences/{technology}/test-patterns.md- Technology-specific patterns
- Write tests for uncovered code paths
- Re-run coverage to verify improvement
Coverage Targets
| Type | Target |
|---|---|
| Line coverage | 80%+ |
| Branch coverage | 70%+ |
| Critical paths | 100% |
Coverage Tools
| Technology | Tool |
|---|---|
| Java | JaCoCo |
| JavaScript/TypeScript | Jest, NYC |
| Python | coverage.py, pytest-cov |
| Go | go test -cover |
References
| Technology | Reference |
|---|---|
| Java | references/java/test-patterns.md |
| TypeScript | references/typescript/test-patterns.md |
| Python | references/python/test-patterns.md |
| Go | references/go/test-patterns.md |
Related Skills
- quality-gateway - Quality gate orchestration
- doc-sync - Documentation synchronization
java-testing- Java-specific testing (for Java projects)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?