Write tests for existing code or validate test coverage
2 stars
0 votes
0 copies
1 view
Added October 17, 2026
ai-agentstesting
Security analysis
A100/100
Scanned October 17, 2026
$npx -y skills add bromso/metapowers --skill test --agent claude-code
Installs into .claude/skills of the current project.
Are you the author of Test?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bromso-test-metapowers)
---
description: Write tests for existing code or validate test coverage
---
# Test
Analyze and improve test coverage for "$ARGUMENTS". Write tests for untested code paths, edge cases, and critical functionality.
## Prerequisites
None — this is a utility skill that can run anytime.
## Process
1. **Analyze existing code:**
- Read the source code related to "$ARGUMENTS"
- Identify all public functions, methods, and components
- Map code paths: happy paths, error paths, edge cases
2. **Assess current test coverage:**
- Read existing tests for "$ARGUMENTS"
- Identify what's tested and what's not
- Note tests that are shallow (only happy path) or brittle (testing implementation, not behavior)
3. **Write missing tests:**
- Prioritize: critical paths first, then edge cases, then error handling
- Each test should verify behavior, not implementation
- Use descriptive test names that explain what's being verified
- Follow the project's existing test patterns and framework
4. **Run the full test suite:**
- Verify all new tests pass
- Verify no existing tests broke
- Note any flaky or slow tests discovered
5. **Write the artifact** to `.metapowers/development/$ARGUMENTS/03-test.md` with sections:
- **Coverage Assessment** — what was already tested, what wasn't
- **Tests Added** — list of new tests with what they verify
- **Remaining Gaps** — what still needs testing (if any)
- **Test Health** — any flaky, slow, or problematic tests found
## Output
The test report written to `.metapowers/development/$ARGUMENTS/03-test.md`. Present a summary to the user highlighting:
- Number of tests added
- Key coverage gaps filled
- Any remaining concerns