From ct
Uncovers edge cases, test coverage gaps, and bugs via phased analysis of code and tests. Guides gap identification, iterative test writing, and bug documentation.
npx claudepluginhub pvillega/claude-templates --plugin ctThis skill uses the workspace's default tool permissions.
Systematic test coverage analysis and bug discovery.
Conducts five-phase test suite review: fills unit coverage gaps, surveys integration and E2E (webapps) coverage, identifies fuzz opportunities, audits test quality.
Evaluates test coverage for files, modules, recent changes, or commits and adds high-value tests for real gaps like edge cases, failures, and integrations.
Discovers unit testing gaps and generates new tests following project conventions. Supports deep iterative mode and harness for automated multi-cycle coverage improvement.
Share bugs, ideas, or general feedback.
Systematic test coverage analysis and bug discovery.
Based on gojko/bugmagnet-ai-assistant.
๐ ANALYSE โ Understand code and existing tests
๐ GAP โ Identify missing coverage
โ๏ธ WRITE โ Implement tests iteratively
๐ฌ ADVANCED โ Deep edge case exploration (optional)
๐ SUMMARY โ Document findings and bugs
Interactive mode (default): STOP and wait for user confirmation between phases. Autonomous mode: When invoked by another agent (e.g. code-reviewer), skip all STOP points and proceed through all phases automatically. Present the full summary at the end instead of pausing for input.
STOP โ Wait for user input. (Skip in autonomous mode.)
Evaluate missing coverage using edge-cases.md:
Categorise: High (core, errors, boundaries) โ Medium (interactions, state) โ Low (rare, performance). Present analysis with specific examples.
STOP โ Ask user which tests to implement. (Skip in autonomous mode โ implement all high-priority tests.)
For each test, highest priority first:
On failure: test expectation wrong โ update test. Bug discovered โ create skipped test with documentation. Need more context โ try 2 more variations.
When bug found: create minimal reproduction, explore surrounding territory (bugs cluster), document in skipped test โ DO NOT FIX, only document. Include: brief description, root cause, code location, expected vs actual, proposed fix.
Maximum 3 attempts per test โ document and move on.
STOP โ Ask user if they want advanced coverage. (Skip in autonomous mode โ proceed to advanced if high-priority gaps remain.)
Create separate test suite: "bugmagnet session <date>"
Work through edge-cases.md comprehensively โ complex interactions, error handling, numeric/date/string/collection edge cases, state transitions, domain-specific cases.
## Test Coverage Summary
**Tests Added:** X total (Y passing, Z skipped/bugs)
**Bugs Discovered:**
1. Bug name โ file:line โ root cause โ proposed fix