bug-reporting-excellence
关于
This Claude Skill helps developers write effective bug reports using a structured template to ensure clear reproduction steps and impact analysis. It's designed for reporting issues, training teams, or setting bug reporting standards. The skill provides agents for quality analysis, production intelligence, and flaky test detection to optimize the process.
快速安装
Claude Code
推荐/plugin add https://github.com/proffesor-for-testing/agentic-qegit clone https://github.com/proffesor-for-testing/agentic-qe.git ~/.claude/skills/bug-reporting-excellence在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Bug Reporting Excellence
<default_to_action> When reporting bugs:
- TITLE:
[Component] fails [Condition] causing [Impact] - DESCRIBE: Expected behavior → Actual behavior → Steps to reproduce
- INCLUDE: Environment, severity, screenshots/logs, business impact
- ISOLATE: Narrow down conditions (browser, user, amount thresholds)
- ONE BUG = ONE REPORT (don't combine issues)
Bug Report Formula:
## [Component] Issue Title
**Severity:** Critical/High/Medium/Low
**Environment:** Production/Staging/Dev
### Expected Behavior
What should happen
### Actual Behavior
What actually happens (with error messages)
### Steps to Reproduce
1. Step one
2. Step two
3. Observe issue
### Impact
How this affects users/business
Critical Success Factors:
- Reproducible steps (100%)
- Environment info (100%)
- Business impact stated (90%)
- Screenshots or logs (80%) </default_to_action>
Quick Reference Card
Severity Levels
| Level | Definition | Examples |
|---|---|---|
| Critical | System down, data loss, security | DB deleted, payments broken, credentials exposed |
| High | Major feature broken, many users | Can't checkout, search broken, dashboard fails |
| Medium | Partial break, workaround exists | Filter broken (refresh works), slow export |
| Low | Cosmetic, rare edge case | Button wraps on mobile, tooltip wrong color |
Title Formula
❌ Bad: "Checkout broken" ✅ Good: "Payment fails with Visa cards when order total > $1000"
Pattern: [Component] fails [Condition] causing [Impact]
Essential Information
Environment Details
Browser: Chrome 120.0.6099.109 (Windows)
OS: Windows 11 Pro
URL: https://example.com/checkout
Date/Time: 2025-10-17 14:23 UTC
User: [email protected] (ID: 12345)
Request ID: abc-123-def-456
Supporting Evidence
Error Messages:
{
"error": "Payment service unavailable",
"code": "GATEWAY_TIMEOUT",
"requestId": "abc-123-def-456"
}
Console Logs:
[ERROR] PaymentGateway: Connection timeout after 30000ms
at PaymentGateway.charge (gateway.js:145)
Example: Excellent Bug Report
## [Checkout] Payment processing times out for orders > $1000
**Severity:** High
**Environment:** Production
**Affected Users:** ~15% of premium purchases
### Expected Behavior
Payment completes within 5 seconds regardless of amount.
### Actual Behavior
For orders above $1000, payment gateway times out after 30 seconds.
User sees "Payment failed" error. Order not created.
### Steps to Reproduce
1. Add items totaling $1,050 to cart
2. Proceed to checkout
3. Enter payment: Visa 4532 1234 5678 9010
4. Click "Place Order"
5. Wait 30+ seconds
6. Observe timeout error
### Environment
- Browser: Chrome 120 (Windows 11)
- User: [email protected]
- Request ID: abc-123-def-456
### Evidence
Console error: `PaymentGateway timeout: 30000ms exceeded`
Network: /api/checkout: 30.14s (timeout)
### Impact
- Lost revenue: ~$15K/week from failed orders
- 23 support tickets this week
- Affects 15% of orders over $1000
### Additional Context
Started after Oct 15 deployment (v2.3.0)
Possibly related to PR #456 (fraud check)
Anti-Patterns
| ❌ Bad | Problem | ✅ Good |
|---|---|---|
| "Checkout is broken" | What doesn't work? | "Payment button doesn't respond when clicked" |
| "I saw an error" | No reproduction steps | Full steps with conditions |
| "Page loads slowly" | No specifics | "Dashboard takes 12s to load (should be <3s)" |
| Multiple bugs in one | Can't track separately | One report per bug |
Agent Integration
// Automated bug triage
const triage = await Task("Triage Bug", {
title: 'Payment fails for orders > $1000',
description: bugDescription,
steps: reproductionSteps
}, "qe-quality-analyzer");
// Returns: { severity, priority, component, suggestedAssignee, relatedIssues }
// Duplicate detection
const dupeCheck = await Task("Check Duplicates", {
bugReport: newBug,
similarityThreshold: 0.85
}, "qe-quality-analyzer");
// Bug report enhancement
const enhanced = await Task("Enhance Report", {
originalReport: userSubmittedBug,
addMissingInfo: true,
identifyRootCause: true
}, "qe-production-intelligence");
Agent Coordination Hints
Memory Namespace
aqe/bug-reports/
├── triaged/* - Bug triage results
├── duplicates/* - Duplicate detection
├── patterns/* - Recurring bug patterns
└── root-cause/* - Root cause analyses
Fleet Coordination
const bugFleet = await FleetManager.coordinate({
strategy: 'bug-investigation',
agents: [
'qe-quality-analyzer', // Triage and categorize
'qe-flaky-test-hunter', // Check if test-related
'qe-production-intelligence' // Check production logs
],
topology: 'parallel'
});
Related Skills
- technical-writing - Clear bug documentation
- exploratory-testing-advanced - Finding bugs
- sherlock-review - Root cause investigation
Remember
Your bug report is the starting point for someone else's work. Make it complete (all info needed), clear (anyone can follow), concise (no noise), and actionable (developer knows next step).
Good bug reports = Faster fixes = Better product = Happier users
GitHub 仓库
相关推荐技能
Verification & Quality Assurance
其他该Skill为开发者提供自动化代码质量验证和可靠性保障系统,通过实时真值评分(0-1分制)和代码质量检查确保输出质量。当评分低于0.95阈值时会自动回滚问题代码,有效维护代码库稳定性。特别适合集成至CI/CD流程,用于监控Agent输出质量和保障项目可靠性。
Report Writer
其他Report Writer能够将研究数据和内容快速转换为专业报告,支持技术、商业和学术三种风格。它提供结构化输出,可自动生成目录并适配不同受众的需求。开发者可利用此工具高效生成格式规范、内容清晰的Markdown报告文档。
test-reporting-analytics
其他该Skill为开发者提供高级测试报告和质量分析功能,包括质量仪表板、趋势分析和预测性指标。它适用于沟通质量状态、跟踪测试趋势或基于数据做出决策的场景。关键特性支持自动化报告生成、执行级汇报,并能突出可操作的改进点。
technical-writing
通信该Skill帮助开发者基于实际经验撰写清晰、有吸引力的技术内容,适用于博客、文档、教程和技术文章。它提供结构化指导,强调以价值为先、展示实例、优化可读性和精简内容。关键特性包括预设的写作框架、实用检查清单,并集成了质量分析和API验证代理来优化输出。
