From debug-agent
Analyze commit history and codebase for systemic defect patterns, hotspots, and recurring issues. Use when multiple related bugs are appearing, when a component seems fragile, or when you want to understand the health of a codebase before a release. Trigger for: "we keep getting bugs in this area", "this module feels flaky", "analyze our recent issues", pre-release quality audits, or when you want to find problems before users do.
How this skill is triggered — by the user, by Claude, or both
Slash command
/debug-agent:debug-pattern-analysisThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The goal is to find *systemic* issues — not just individual bugs, but patterns that reveal structural, process, or architectural problems. Individual bugs are symptoms; patterns are root causes at a higher level.
The goal is to find systemic issues — not just individual bugs, but patterns that reveal structural, process, or architectural problems. Individual bugs are symptoms; patterns are root causes at a higher level.
Run git log --oneline -50 and look for:
If the user can describe recent bugs, analyze them for:
Read high-change files and look for:
Scan for common reliability/security issues:
Review commit metadata and code patterns for:
Group findings by:
Identify root patterns — the issues that cause other issues.
# Defect Pattern Analysis Report
**Date:** [today]
**Scope:** [what was analyzed]
## Executive Summary
[2-3 sentences: key findings, most critical patterns]
## Critical Patterns Found
### Pattern: [Name]
**Type:** [Anti-pattern / Vulnerability / Architectural / Process]
**Frequency:** [N occurrences]
**Locations:** [file:function or component]
**Description:** [what the pattern is]
**Impact:** [why it matters]
**Recommendation:** [how to address]
[repeat for each significant pattern]
## Hotspot Analysis
### High-Change / High-Risk Files
1. [file] — [N commits], [N bugs linked], [risk assessment]
2. ...
## Systemic Issues
[Issues that span multiple patterns or suggest deeper structural problems]
## Trend Analysis
- **Improving:** [areas getting better]
- **Degrading:** [areas getting worse]
- **Stable problems:** [persistent issues not improving]
## Recommendations
### Immediate (this sprint)
1. [quick win]
### Short-term (next 1-2 sprints)
1. [process or code changes]
### Long-term (architectural)
1. [structural improvements]
## Prevention Checklist
- [ ] [specific action to prevent top pattern]
- [ ] [linting rule / pre-commit hook suggestion]
- [ ] [test coverage improvement]
npx claudepluginhub mkellerman/bmad-skills --plugin debug-agentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.