íëŠĐ ëīėĐ
Invoke /bug-report
Aliases /br
Category petmedi-development
MCP Servers zenhub
/bug-report #
Bug report generation through image analysis and ZenHub issue automation
Triggers #
When a bug is found and an issue needs to be filed
When writing a bug report with screenshots
When documenting issues found during QA
Context Trigger Pattern #
/ bug- report [ image_path] [ bug_description]
Parameters #
Parameter Required Description Example
image_path
â
Bug screenshot path
/path/to/screenshot.png
bug_description
â
Brief description of the bug
"Login button is not working"
--severity
â
Specify severity
critical, high, medium, low
--type
â
Specify bug type
ui
,
function
,
crash
,
performance
,
data
--no-createâ Report only without issue creation -
Behavioral Flow #
Step 1: Image Analysis (when image is provided) #
## Image Analysis
Analyze screenshot using the Read tool:
1 . ** Identify UI state**
- Error dialog displayed
- Empty State screen
- Loading state persisting
- Layout broken
2 . ** Extract text**
- Error messages
- Screen title
- Button text
3 . ** Bug classification inference**
- Automatic bug type classification
- Severity recommendation
- Impact area identification
## Information Gathering
Collect additional information via AskUserQuestion :
1 . ** Reproduction steps** ( required )
- State before bug occurred
- Actions performed
- When bug occurred
2 . ** Expected result** ( required )
- Expected result during normal operation
3 . ** Environment information** ( optional)
- OS version
- Device
- App version
4 . ** Severity confirmation** ( after presenting analysis results)
- ðī Critical
- ð High
- ðĄ Medium
- ðĒ Low
Step 3: ZenHub Issue Creation #
## Issue Creation
Call mcp__zenhub__createGitHubIssue:
1 . ** Title generation**
- Format : `[ Bug ] { screen_name} : { bug_summary} `
- Crash : `[ Crash ] { screen_name} : { crash_situation} `
2 . ** Body creation**
- Use full bug report template from TEMPLATES . md
- Include image analysis results
- Include reproduction steps, expected/ actual results
3 . ** Label assignment**
- `bug` ( default )
- `severity: { level} `
- `area: { affected_area} `
4 . ** Pipeline movement**
- Critical â In Progress
- High â Triage
- Medium / Low â Backlog
MCP Integration #
Action MCP Tool Purpose
Issue creation
mcp__zenhub__createGitHubIssue
Create GitHub issue
Pipeline movement
mcp__zenhub__moveIssueToPipeline
Manage issue status
Label lookup
mcp__zenhub__getWorkspacePipelinesAndRepositories
Label and pipeline info
Examples #
Basic usage (with image) #
/ bug- report / tmp/ error_screenshot. png " Order details not showing after payment completion "
Text only #
/ bug- report " No response when clicking login button "
Specify severity #
/ bug- report -- severity critical " Crash on app startup "
Specify bug type #
/ bug- report -- type ui / tmp/ layout. png " Overflow on long text "
Report only (no issue creation) #
/ bug- report -- no- create " This is a test bug "
Image Analysis Result #
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Image Analysis Result â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââĢ
â â
â ðžïļ Image : / tmp/ screenshot. png â
â â
â ð Detected Issues : â
â 1 . Error dialog displayed â
â 2 . " Network error " message detected â
â â
â ð·ïļ Suggested Classification : â
â - Type : Function Bug â
â - Severity : High â
â - Area : Backend / Network â
â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Issue Creation Complete #
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Bug Report Created â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââĢ
â â
â ð Issue : #123 â
â ð Title : [ Bug ] Payment : Order details not displayed â
â â
â ð·ïļ Labels : â
â - bug â
â - severity: high â
â - area: backend â
â â
â ð Pipeline : Triage â
â â
â ð URL : https: //github.com/coco-de/kobic/issues/123 â
â â
â ðĄ Next Steps : â
â / dev: bugfix 123 # Start fix cycle â
â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Reference Documents #
Skill: ~/.claude/skills/bug-report/SKILL.md
Reference: ~/.claude/skills/bug-report/REFERENCE.md
Templates: ~/.claude/skills/bug-report/TEMPLATES.md
Key Rules #
Image-first analysis : If an image is provided, analyze it first to understand context
User confirmation : Present analysis results for severity and bug type, then confirm with user
Structured report : Use templates to maintain consistent format
Automatic labeling : Automatically assign labels matching bug characteristics
Workflow integration : Guide to /dev:bugfix after issue creation