Commit 8a48496
chore: enhance root cause analysis for /create-bug skill (MetaMask#26722)
## **Description**
Updates the `/create-bug` Claude Code skill command to include a full
root cause analysis workflow (Step 6) with three phases:
- **6a**: Investigate root cause — trace through the code to identify
exact files, lines, and logic
- **6b**: Identify regression PRs — check git history against previous
releases
- **6c**: Scope analysis — search for same pattern across codebase, file
separate bugs for other affected features
Also updates the comment format to include all required sections.
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Fixes:
[MMQA-1523](https://consensyssoftware.atlassian.net/browse/MMQA-1523)
## **Manual testing steps**
```gherkin
Feature: Create Bug Skill Root Cause Analysis
Scenario: user runs /create-bug and opts into root cause investigation
Given user has Claude Code open in the metamask-mobile repo
When user runs /create-bug and files a bug report
And user opts into root cause investigation
Then Claude performs root cause investigation (6a)
And Claude identifies regression PRs by comparing release branches (6b)
And Claude performs scope analysis to find same pattern elsewhere (6c)
And Claude posts a comment with summary, regression PRs, error flow, scope of impact, key files, suggested fix, and related bug links
```
## **Screenshots/Recordings**
### **Before**
N/A
### **After**
Run `/create-bug` in Claude Code terminal and opt into root cause
investigation to see the full 3-phase workflow.
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
[MMQA-1523]:
https://consensyssoftware.atlassian.net/browse/MMQA-1523?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1591e2d commit 8a48496
1 file changed
Lines changed: 33 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
128 | 153 | | |
129 | 154 | | |
130 | 155 | | |
131 | 156 | | |
132 | 157 | | |
133 | 158 | | |
134 | 159 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
0 commit comments