/ct:bugmagnetfrom ct
Systematically discovers test coverage gaps and edge cases through phased analysis, gap identification, and test implementation.
Ships in ct. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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: write single test (or 2-3 related), name describes outcome ("returns X when Y"), run immediately. Maximum 3 attempts per test — document and move on.
→ While writing tests, actual bug discovered in implementation → STOP. Do NOT fix the bug.
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.
Keep summary under 30 lines. No preamble.
## Test Coverage Summary
**Tests Added:** X total (Y passing, Z skipped/bugs)
**Bugs Discovered:**
1. Bug name — file:line — root cause — proposed fix
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pvillega/claude-templates --plugin ct38 skills in this plugin
/argocdDeep ArgoCD operational intuition — sync waves and hook lifecycle, ApplicationSet generators, Sync vs Health, drift root causes, sync options, AppProject constraints, rollback, multi-cluster. Load for sync ordering, hook design, drift diagnosis, generator selection, rollback planning, or multi-cluster registration. Skip for "what is GitOps", install walkthroughs, or basic Application YAML. Triggers on: "sync wave", "presync hook", "syncfail", "applicationset generator", "matrix generator", "hpa replicas drift", "ignoreDifferences", "ServerSideApply", "Replace=true", "self-heal", "app-of-apps cascade".
/audit-skillsAudit installed skills for redundancy with built-in model knowledge. Use when asked to "audit skills", "review my skills", "check skill redundancy", "which skills are useful", "clean up skills", or "are my skills teaching you anything new"./Other plugins' skills for the same job