GitHub Issue resolver skill that analyzes, triages, and proposes solutions for issues with full SDD integration
Trigger terms: resolve issue, fix issue, github issue, issue triage, issue analysis,...
You are an Issue Resolver AI. You analyze GitHub Issues, determine their type and priority, extract requirements, and generate resolution plans following the Specification Driven Development methodology.
src/resolvers/issue-resolver.js)Provides automated issue analysis and resolution planning:
Usage Example:
const { IssueResolver, IssueInfo, IssueType } = require('musubi/src/resolvers/issue-resolver');
// Create resolver
const resolver = new IssueResolver({
projectRoot: process.cwd(),
autoCreateBranch: false,
});
// Create issue info from GitHub API data
const issue = new IssueInfo({
number: 42,
title: 'Login button not responding on mobile',
body: `
## Description
The login button doesn't work on mobile devices.
## Requirements
- [ ] Fix touch event handling
- [ ] Add loading indicator
- [ ] Add error handling
## Steps to Reproduce
1. Open app on mobile
2. Click login button
3. Nothing happens
`,
labels: ['bug', 'mobile'],
assignees: ['developer1'],
});
// Get issue type
console.log(issue.type); // 'bug'
// Resolve the issue
const result = await resolver.resolve(issue);
console.log(result.branchName); // 'fix/42-login-button-not-responding'
console.log(result.requirements); // ['Fix touch event handling', ...]
console.log(result.impactAnalysis); // { scope: 'medium', effort: 'small', ... }
const issue = new IssueInfo({
number: issueNumber,
title: issueTitle,
body: issueBody,
labels: issueLabels,
});
// Automatic type detection
const type = issue.type; // 'bug' | 'feature' | 'documentation' | 'refactor' | 'unknown'
The resolver automatically extracts requirements from:
- [ ] Requirement textconst requirements = resolver.extractRequirements(issue);
// ['Fix touch event handling', 'Add loading indicator', 'Add error handling']
Semantic branch names based on issue type:
| Issue Type | Branch Prefix |
|---|---|
| Bug | fix/ |
| Feature | feat/ |
| Documentation | docs/ |
| Refactor | refactor/ |
| Unknown | issue/ |
const branchName = resolver.generateBranchName(issue);
// 'fix/42-login-button-not-responding'
const result = await resolver.resolve(issue);
// Result contains:
// - status: 'pending' | 'in_progress' | 'completed' | 'failed'
// - branchName: Generated branch name
// - requirements: Extracted requirements
// - impactAnalysis: Scope, effort, risk assessment
// - sdsPlan: Suggested SDD workflow stages
const preview = resolver.generatePreview(result);
// Returns markdown report for review
musubi-requirements CLIQuick Start with musubi-resolve CLI (v3.5.0 NEW):
# One-command issue resolution
musubi-resolve 42
# Analyze without resolution
musubi-resolve analyze 42
# Generate resolution plan
musubi-resolve plan 42
# Create PR from resolution
musubi-resolve create-pr 42
# Auto-resolve mode
musubi-resolve 42 --auto
Manual SDD Workflow:
# 1. Analyze issue and create requirement document
musubi-requirements init "issue-42-login-fix"
# 2. Add extracted requirements as EARS statements
musubi-requirements add event-driven "When user taps login button on mobile, system SHALL respond within 300ms"
# 3. Create design for the fix
musubi-design init "issue-42-login-fix"
# 4. Break down into tasks
musubi-tasks init "issue-42-login-fix"
The ImpactAnalysis class provides:
const impact = new ImpactAnalysis({
scope: 'medium', // 'small' | 'medium' | 'large'
effort: 'small', // 'trivial' | 'small' | 'medium' | 'large' | 'epic'
risk: 'low', // 'low' | 'medium' | 'high' | 'critical'
affectedAreas: ['components/LoginButton', 'utils/touchHandler'],
dependencies: ['react-native-gesture-handler'],
breakingChanges: false,
});
console.log(impact.toMarkdown());
## 🎫 Issue Resolution: #42
**Title**: Login button not responding on mobile
**Type**: 🐛 Bug
**Status**: ✅ Completed
### Branch
`fix/42-login-button-not-responding`
### Requirements Extracted
1. Fix touch event handling
2. Add loading indicator
3. Add error handling
### Impact Analysis
| Aspect | Value |
| ---------------- | ------ |
| Scope | Medium |
| Effort | Small |
| Risk | Low |
| Breaking Changes | No |
### Affected Areas
- `components/LoginButton`
- `utils/touchHandler`
### SDD Workflow
1. ✅ Requirements documented
2. ⬜ Design review pending
3. ⬜ Task breakdown pending
4. ⬜ Implementation pending
5. ⬜ Testing pending
CRITICAL: Always check steering files before starting any task
Before beginning work, ALWAYS read the following files if they exist in the steering/ directory:
steering/structure.md (English) - Architecture patternssteering/tech.md (English) - Technology stacksteering/product.md (English) - Business context