From agents
Test strategy, coverage analysis, edge case identification, flaky test diagnosis. Use when designing test suites. NOT for running tests (devops-engineer), TDD, or code review (honest-review).
npx claudepluginhub wyattowalsh/agents --plugin agentsThis skill uses the workspace's default tool permissions.
Design test strategies, analyze coverage gaps, identify edge cases, diagnose flaky tests, and audit test suite architecture.
data/edge-case-heuristics.jsondata/test-framework-patterns.jsonevals/coverage-gaps.jsonevals/design-strategy.jsonevals/edge-cases.jsonevals/implicit-trigger.jsonevals/negative-control.jsonevals/test-design.jsonreferences/coverage-analysis.mdreferences/edge-case-heuristics.mdreferences/flaky-diagnosis.mdreferences/framework-patterns.mdreferences/mutation-testing.mdreferences/property-testing.mdreferences/test-pyramid.mdreferences/test-suite-audit.mdscripts/coverage-analyzer.pyscripts/edge-case-generator.pyscripts/flaky-test-analyzer.pytemplates/dashboard.htmlCreates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Design test strategies, analyze coverage gaps, identify edge cases, diagnose flaky tests, and audit test suite architecture.
Scope: Test design and analysis only. NOT for running tests or CI/CD (devops-engineer), code review (honest-review), or TDD workflow.
| $ARGUMENTS | Action |
|---|---|
design <feature/module> | Design test strategy and pyramid for a feature or module |
generate <file/function> | Generate test cases (strategy text or actual test code based on context) |
gaps | Analyze coverage gaps from coverage reports |
edge-cases <function> | Systematic edge case identification for a function |
flaky | Diagnose flaky tests from logs and code |
review | Audit test suite architecture |
| Empty | Show mode menu with examples |
Use these terms exactly throughout all modes:
| Term | Definition |
|---|---|
| test pyramid | Layered test distribution: unit (base), integration (middle), e2e (top) |
| coverage gap | Code path with no test coverage, weighted by complexity risk |
| edge case | Input at boundary conditions, null/empty, type coercion, overflow, unicode, concurrent |
| flaky test | Test with non-deterministic pass/fail behavior across identical runs |
| mutation score | Percentage of injected mutations detected by the test suite |
| test strategy | Document defining what to test, how, at what layer, with what tools |
| property-based test | Test asserting invariants over generated inputs (Hypothesis/fast-check) |
| test isolation | Guarantee that tests do not share mutable state or execution order dependencies |
| fixture | Reusable test setup/teardown providing controlled state |
| test surface | Set of public interfaces, code paths, and states requiring test coverage |
/test-architect design <feature/module>
Reference: read references/test-pyramid.md for layer guidance.
/test-architect generate <file/function>
--code: always generate test code./test-architect gaps
coverage.json, coverage.xml, .coverage (Python/coverage.py)lcov.info, coverage/lcov.info (JS/lcov)htmlcov/, coverage/ directoriesuv run python skills/test-architect/scripts/coverage-analyzer.py <report-path>
Copy templates/dashboard.html to a temporary file
Inject gap data JSON into <script id="data"> tag
Open in browser
Reference: read references/coverage-analysis.md for interpretation guidance.
/test-architect edge-cases <function>
uv run python skills/test-architect/scripts/edge-case-generator.py --name "<function_name>" --params "<param1:type,param2:type>"
Reference: read references/edge-case-heuristics.md for category details.
/test-architect flaky
.pytest_cache/, test-results/uv run python skills/test-architect/scripts/flaky-test-analyzer.py <log-path>
Reference: read references/flaky-diagnosis.md for root cause patterns.
/test-architect review
Reference: read references/test-suite-audit.md for scoring criteria.
Load ONE reference at a time. Do not preload all references into context.
| File | Content | Read When |
|---|---|---|
| references/test-pyramid.md | Test pyramid layers, distribution targets, anti-patterns | Mode 1 (Design) |
| references/framework-patterns.md | pytest, jest, vitest patterns and conventions | Mode 2 (Generate), Mode 6 (Review) |
| references/coverage-analysis.md | Coverage report interpretation, complexity weighting | Mode 3 (Gaps) |
| references/edge-case-heuristics.md | Edge case categories by data type, generation strategies | Mode 4 (Edge Cases) |
| references/flaky-diagnosis.md | Flaky test root causes, fix strategies, prevention patterns | Mode 5 (Flaky) |
| references/test-suite-audit.md | Test architecture scoring rubric, quality dimensions | Mode 6 (Review) |
| references/property-testing.md | Property-based testing with Hypothesis and fast-check | Mode 1 (Design), Mode 2 (Generate) |
| references/mutation-testing.md | Mutation testing plan design, tool integration | Mode 1 (Design), Mode 6 (Review) |
| Script | When to Run |
|---|---|
| scripts/coverage-analyzer.py | Mode 3 (Gaps) -- parse coverage reports |
| scripts/edge-case-generator.py | Mode 4 (Edge Cases) -- generate edge cases from function signature |
| scripts/flaky-test-analyzer.py | Mode 5 (Flaky) -- parse test logs for flaky indicators |
| Template | When to Render |
|---|---|
| templates/dashboard.html | Mode 3 (Gaps) with 10+ gaps -- coverage gap visualization |