QA Bug Analyzer
Overview
This skill enables comprehensive bug ticket analysis from a QA management perspective. Analyze bug data to identify quality trends, assess project health, pinpoint problem areas, and generate actionable improvement recommendations. The skill produces professional Markdown reports suitable for project managers, development managers, and executive leadership.
Key capabilities:
- Statistical analysis of bug distributions (severity, category, module, resolution time)
- Quality trend identification and hotspot detection
- Root cause pattern analysis
- Prioritized improvement recommendations
- Professional report generation for stakeholders
When to Use This Skill
Use this skill when:
- User provides bug ticket data in CSV, Excel, JSON, or Markdown format
- Quality assessment is needed for project reviews, milestone gates, or release readiness
- Trend analysis is requested to understand quality patterns over time
- Stakeholder reporting is required for project managers or executive leadership
- Improvement recommendations are needed based on objective data analysis
- User mentions:
- "Analyze bug trends"
- "Quality report for management"
- "Which modules have the most bugs?"
- "How long does it take to fix bugs?"
- "What areas should we focus on?"
- "Generate quality analysis report"
Example scenarios:
- "I have a CSV file with 200 bug tickets. Can you analyze the quality trends?"
- "Generate a quality report for our project manager based on these bugs"
- "Analyze this bug data and tell me what areas need improvement"
- "Create an executive summary of our bug situation"
Workflow Decision Tree
Follow this decision tree to determine the appropriate workflow:
User provides bug data
│
├─→ Data in CSV/JSON format
│ └─→ Use Automated Analysis Workflow (Section 3)
│
├─→ Data in multiple Markdown files (from bug-ticket-creator)
│ └─→ Use Markdown Aggregation Workflow (Section 4)
│
└─→ User wants custom analysis or specific focus
└─→ Use Custom Analysis Workflow (Section 5)
After analysis, always:
- Review quality_metrics_guide.md for metric interpretation
- Review analysis_methodology.md for analysis best practices
- Generate comprehensive Markdown report using report_template.md
Core Workflows
Workflow 1: Quick Analysis (CSV/JSON Input)
When to use: User provides a single CSV or JSON file with bug data
Steps:
Receive and validate data
- Confirm file format (CSV or JSON)
- Check for required fields (at minimum: ID, title, status, severity)
- Note any data quality issues
Run analysis script
python3 scripts/analyze_bugs.py <input_file> --output analysis_results.jsonThe script will:
- Load and normalize bug data
- Calculate severity distribution
- Analyze module/component distribution
- Compute resolution time metrics
- Identify status distribution
- Detect quality issues
- Generate recommendations
Review analysis results
- Load the JSON output
- Read
references/quality_metrics_guide.mdfor metric interpretation guidelines - Identify key findings and issues
Generate professional report
- Use
assets/report_template.mdas the structure - Populate all sections with analysis results
- Include visualizations (text-based tables and charts)
- Add context-specific insights
- Tailor recommendations to project phase and stakeholder needs
- Use
Deliver report to user
- Create new Markdown file with completed report
- Provide executive summary
- Highlight top 3-5 recommendations
- Suggest next steps
Expected output: Comprehensive Markdown report with:
- Executive summary (1 page)
- Quantitative metrics with visualizations
- Quality issues identified
- Prioritized recommendations
- Action items
Workflow 2: Comprehensive Analysis (Markdown Bug Tickets)
When to use: User has multiple Markdown bug tickets (e.g., from bug-ticket-creator skill)
Steps:
Aggregate bug data
- Use Glob to find all bug ticket Markdown files
- Read each file to extract structured data
- Parse key fields:
- Bug ID / Title
- Severity / Priority
- Status
- Category / Type
- Module / Component
- Created Date
- Resolved Date
- Description (for root cause insights)
Convert to analysis format
- Create CSV or JSON structure from parsed data
- Normalize field values (severity levels, status values)
- Handle missing or inconsistent data
Run analysis
- Follow steps 2-5 from Workflow 1
- Pay special attention to rich descriptions for root cause analysis
Expected output: Same as Workflow 1, with enhanced root cause insights
Workflow 3: Custom Analysis Focus
When to use: User requests specific analysis dimensions or has particular concerns
Steps:
Clarify analysis objectives
- Use AskUserQuestion to understand specific needs:
- Which metrics are most important?
- Are there specific modules/teams to focus on?
- What time period should be analyzed?
- Who is the report audience?
- Use AskUserQuestion to understand specific needs:
Load relevant references
- Read
references/quality_metrics_guide.mdfor applicable metrics - Read
references/analysis_methodology.mdfor analysis approach - Understand benchmarks and thresholds
- Read
Perform targeted analysis
- Run automated analysis (if CSV/JSON available)
- Supplement with manual deep-dive analysis
- Focus on user-specified areas
Generate customized report
- Adapt report_template.md structure
- Emphasize relevant sections
- Add custom visualizations or analysis
- Tailor language and detail level to audience
Example custom analyses:
- Module-specific deep dive
- Time-based trend analysis
- Severity-focused assessment
- Team performance comparison
- Release readiness evaluation
Workflow 4: Iterative Analysis Refinement
When to use: User wants to refine or expand initial analysis
Steps:
Review initial findings
- Recap previous analysis results
- Identify areas needing deeper investigation
Conduct additional analysis
- Drill down into specific modules or categories
- Perform correlation analysis
- Calculate additional metrics
- Investigate outliers or anomalies
Update report
- Add new sections or insights
- Refine recommendations
- Include comparative analysis
Validate with user
- Confirm analysis addresses concerns
- Gather feedback on recommendations
Analysis Best Practices
Data Quality Considerations
Always check for and handle:
- Missing dates (created, resolved)
- Inconsistent severity labels
- Empty module/component fields
- Unclear status values
Data normalization guidelines:
Severity mapping:
Critical, Blocker, P0, Severity 1 → Critical
High, Major, P1, Severity 2 → High
Medium, Normal, P2, Severity 3 → Medium
Low, Minor, P3, Severity 4 → Low
Status mapping:
Open, New, Submitted → Open
In Progress, Assigned, Working → In Progress
Resolved, Fixed, Completed → Resolved
Closed, Verified → Closed
Metric Interpretation Guidelines
Refer to references/quality_metrics_guide.md for detailed guidance. Key thresholds:
Severity Distribution (Healthy):
- Critical: 5-10%
- High: 15-20%
- Medium: 40-50%
- Low: 20-30%
Resolution Time Targets:
- Critical: <2 days
- High: <5 days
- Medium: <14 days
- Low: <30 days
Quality Status (RAG):
- 🟢 Green: Closure rate >80%, avg resolution <14 days, <10% Critical+High
- 🟡 Yellow: Closure rate 60-80%, avg resolution 14-21 days, 10-25% Critical+High
- 🔴 Red: Closure rate <60%, avg resolution >21 days, >25% Critical+High
Recommendation Formulation
Effective recommendations include:
- Context: What is the problem?
- Evidence: What data supports this?
- Recommendation: What specific action to take?
- Expected Impact: What will improve?
- Implementation Guidance: How to execute?
- Success Metrics: How to measure effectiveness?
Prioritization framework:
- High Priority: Addresses Critical/High severity issues, high impact, quick wins
- Medium Priority: Addresses moderate issues, requires coordination/resources
- Low Priority: Nice-to-have improvements, preventive measures
Report Tailoring by Audience
For Executive Leadership:
- Focus on business impact and ROI
- High-level metrics and trends
- Risk assessment and mitigation
- Resource needs
For Project Managers:
- Schedule impact and milestone risks
- Resource allocation needs
- Action item tracking
- Team performance
For Development Managers:
- Module-specific details
- Technical root causes
- Code quality metrics
- Tooling recommendations
For QA Managers:
- Test coverage gaps
- Process improvements
- Testing strategy
- Skill development needs
Resources
scripts/analyze_bugs.py
Python script for automated bug data analysis. Performs comprehensive statistical analysis and generates structured JSON output.
Usage:
python3 scripts/analyze_bugs.py <input_file> [--output results.json] [--format csv|json|auto]
Capabilities:
- Loads CSV or JSON bug data
- Calculates severity, category, module distributions
- Computes resolution time metrics (avg, median, percentiles)
- Analyzes status distribution and closure rates
- Identifies quality issues automatically
- Generates prioritized recommendations
- Exports results as JSON
Expected input fields (flexible field names):
- Bug ID
- Title/Summary
- Status
- Severity/Priority
- Module/Component (optional but recommended)
- Category/Type (optional but recommended)
- Created Date (optional, for resolution time analysis)
- Resolved Date (optional, for resolution time analysis)
Output structure:
{
"metadata": {
"total_bugs": 150,
"analysis_date": "2025-01-15 10:30:00"
},
"severity_distribution": { ... },
"module_distribution": { ... },
"resolution_time": { ... },
"quality_issues": [ ... ],
"recommendations": [ ... ]
}
references/quality_metrics_guide.md
Comprehensive guide to quality metrics for bug analysis. Load this when interpreting analysis results or explaining metrics to users.
Key sections:
- Defect density metrics and benchmarks
- Severity distribution guidelines
- Resolution time (MTTR) targets and SLAs
- Bug closure rate interpretation
- Defect escape rate calculations
- Quality gates and thresholds (Red/Yellow/Green)
- Reporting best practices
When to read:
- Before generating report to understand metric interpretation
- When user asks about metric meaning or benchmarks
- When setting quality gates or thresholds
- When explaining findings to stakeholders
references/analysis_methodology.md
Detailed methodology for conducting bug analysis. Load this when performing complex or custom analysis.
Key sections:
- Phase 1: Data preparation and validation
- Phase 2: Quantitative analysis techniques
- Phase 3: Pattern recognition and root cause analysis
- Phase 4: Quality issue identification
- Phase 5: Recommendation development
- Phase 6: Report generation
When to read:
- When performing custom or in-depth analysis
- When user requests specific analysis approach
- When troubleshooting data quality issues
- When formulating complex recommendations
assets/report_template.md
Professional Markdown report template for bug analysis reports. Use this as the structure for all final reports.
Key sections:
- Executive Summary (with RAG status)
- Analysis Overview
- Quantitative Metrics (severity, module, category, resolution time, status)
- Quality Issues Identified
- Trend Analysis
- Recommendations (High/Medium/Low priority)
- Quality Metrics Dashboard
- Root Cause Analysis Summary
- Comparison and Benchmarking
- Action Items Summary
- Conclusion
Customization guidance:
- Replace all [PLACEHOLDER] values with actual data
- Remove sections not applicable to analysis
- Add custom sections as needed
- Include visualizations (text-based tables, charts)
- Tailor language and detail to audience
Output format:
- Save as new Markdown file with descriptive name (e.g.,
bug_analysis_report_2025_Q1.md) - Use clear section headers and formatting
- Include tables for structured data
- Use bullet points for lists
- Add emphasis (bold/italic) for key points
Tips for Effective Analysis
Start with data validation: Check data quality before analysis to avoid misleading conclusions
Provide context: Always compare metrics to benchmarks, targets, or historical trends
Be objective: Focus on data-driven insights, avoid bias or assumptions
Link to impact: Connect findings to business/project impact for stakeholder relevance
Prioritize recommendations: Not all issues are equal - focus on high-impact actions
Make recommendations actionable: Provide specific steps, not vague suggestions
Visualize effectively: Use tables, charts, and formatting to enhance clarity
Tailor to audience: Adjust detail level and focus based on who will read the report
Follow up: Track previous recommendations and measure their effectiveness
Continuous improvement: Refine analysis approach based on feedback and results
Example Usage
Example 1: Quick CSV Analysis
User: "Here's a CSV file with our bug data from the last sprint. Can you analyze it and tell me what we should focus on?"
Claude response:
- Load and validate the CSV file
- Run
scripts/analyze_bugs.py bugs_sprint_10.csv --output analysis.json - Review analysis results, noting:
- 35% of bugs are in the Authentication module (hotspot)
- Average resolution time is 18 days (above target)
- 28% of bugs are Critical/High severity
- Read
references/quality_metrics_guide.mdfor threshold interpretation - Generate report using
assets/report_template.md - Deliver report to user highlighting:
- Top finding: Authentication module quality hotspot
- Key metric: Resolution time 29% above target
- Top recommendation: Conduct focused code review of Authentication module
Example 2: Executive Report Generation
User: "I need to present our quality status to the VP of Engineering. Can you create an executive summary from this bug data?"
Claude response:
- Perform comprehensive analysis
- Calculate overall quality health score (RAG status)
- Identify top 3-5 findings with business impact
- Read
references/quality_metrics_guide.mdfor benchmarking - Generate executive-focused report:
- 1-page executive summary
- RAG status with clear indicators
- Business impact of quality issues
- High-level recommendations
- Risk assessment
- Use concise language, focus on outcomes, include comparisons to benchmarks
Example 3: Module Deep Dive
User: "The Payment module has a lot of bugs. Can you do a deep analysis of just that module?"
Claude response:
- Filter bug data to Payment module only
- Perform targeted analysis:
- Severity distribution within Payment module
- Resolution time for Payment bugs
- Category breakdown (UI, logic, integration, etc.)
- Trend over time if historical data available
- Compare Payment module metrics to overall averages
- Read
references/analysis_methodology.mdfor root cause analysis techniques - Investigate:
- Code complexity indicators
- Recent changes or features
- Test coverage
- Team expertise
- Generate focused report with module-specific recommendations:
- Code review of complex areas
- Increase unit test coverage
- Refactoring considerations
- Additional QA resources
Quality Assurance
When using this skill, always:
✓ Validate data quality and note limitations ✓ Provide objective, evidence-based analysis ✓ Include context (benchmarks, trends, comparisons) ✓ Make recommendations specific and actionable ✓ Tailor report to intended audience ✓ Use professional, clear language ✓ Include success metrics for recommendations ✓ Focus on improvement, not blame
✗ Don't cherry-pick data to support preconceived notions ✗ Don't present metrics without interpretation ✗ Don't make recommendations without supporting evidence ✗ Don't use overly technical jargon for non-technical audiences ✗ Don't ignore data quality issues ✗ Don't present analysis without actionable next steps
This skill follows industry standards from ISTQB, ISO/IEC 25010, and IEEE 982.1 for software quality measurement and analysis.