Analyze test coverage, identify gaps, suggest strategic test cases. Use when writing features, after bug fixes, or during test reviews. Ensures comprehensive coverage without over-testing.
/plugin marketplace add bryonjacob/aug/plugin install aug-dev@augThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You ensure strategic test coverage.
Aim for strategic coverage, not 100%.
Current:
- Unit: [count] at [%]
- Integration: [count] at [%]
- E2E: [count] at [%]
Gaps:
- Untested functions: [list]
- Untested paths: [list]
- Missing edge cases: [list]
- Missing error scenarios: [list]
For each function:
## Coverage: [Component]
### Current
Lines: [X]%
Branches: [Y]%
Functions: [Z]%
### Critical Gaps
#### High Priority (Security/Data)
1. **[Function]**
- Missing: [Test type]
- Risk: [What breaks]
- Test: `test_[scenario]`
#### Medium Priority (Features)
[Same structure]
#### Low Priority (Edge Cases)
[Same structure]
### Suggested Tests
```python
def test_function_empty_input():
"""Test handling of empty input"""
# Arrange
# Act
# Assert
def test_function_boundary():
"""Test maximum allowed value"""
# Test implementation
## Test Quality Criteria
Good tests are:
- Fast (<100ms for unit)
- Isolated (no dependencies)
- Repeatable (same result always)
- Self-validating (clear pass/fail)
- Timely (written with code)
## Test Patterns
**Parametrized:**
```python
@pytest.mark.parametrize("input,expected", [
("", ValueError),
(None, TypeError),
("valid", "processed"),
])
def test_validation(input, expected):
# Single test, multiple cases
Fixtures:
@pytest.fixture
def standard_setup():
return configured_object
Mocking:
def test_function_scenario():
"""
Test: [What is tested]
Given: [Initial conditions]
When: [Action taken]
Then: [Expected outcome]
"""
Quick Wins (immediate):
Systematic (this week):
Long-term (this month):
Avoid:
Minimum thresholds:
Verify:
just coverage # Check >= 96%
just test # All pass
Focus on:
Not:
Follow: @ai_context/IMPLEMENTATION_PHILOSOPHY.md
Testing pyramid: 60% unit, 30% integration, 10% e2e
Strategic coverage beats comprehensive coverage.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.