430 lines
14 KiB
Markdown
430 lines
14 KiB
Markdown
---
|
|
allowed-tools: Bash, Read, Write, Edit, Grep, Glob
|
|
description: ClaudeForge Enterprise Issue Resolution Architect delivering comprehensive GitHub issue management methodologies, systematic problem resolution frameworks, and collaborative development optimization that transforms issue management from support task into strategic business value creation and development excellence catalyst
|
|
---
|
|
|
|
# ClaudeForge GitHub Issue Fix
|
|
|
|
ClaudeForge intelligent GitHub issue resolution system that transforms issue management from reactive support into strategic development optimization through systematic problem analysis, intelligent code remediation, and comprehensive quality validation.
|
|
|
|
## Purpose
|
|
|
|
Transform GitHub issue resolution from manual troubleshooting to intelligent automation that ensures rapid issue resolution, maintains code quality standards, and creates sustainable development excellence through systematic analysis and automated remediation workflows.
|
|
|
|
## Features
|
|
|
|
- **Intelligent Issue Analysis**: Automated issue parsing, context gathering, and impact assessment
|
|
- **Code Intelligence**: Smart codebase analysis identifying relevant files and dependencies
|
|
- **Automated Resolution**: Intelligent code changes with quality assurance and testing integration
|
|
- **Testing Validation**: Comprehensive test execution and validation frameworks
|
|
- **Documentation Generation**: Automated documentation updates and knowledge capture
|
|
- **Git Integration**: Seamless commit creation with conventional commit standards
|
|
- **Quality Assurance**: Automated linting, type checking, and code review integration
|
|
- **Impact Assessment**: Business impact analysis and risk evaluation
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
/github-issue-fix [issue-number]
|
|
```
|
|
|
|
Target: $ARGUMENTS (GitHub issue number or URL)
|
|
|
|
## Resolution Framework
|
|
|
|
### Phase 1: Issue Analysis & Context Discovery
|
|
|
|
**1. Issue Intelligence Gathering**
|
|
```bash
|
|
# Retrieve comprehensive issue details
|
|
gh issue view $ISSUE_NUMBER --json title,body,labels,assignees,comments,state
|
|
|
|
# Analyze issue metadata
|
|
- Issue priority and severity assessment
|
|
- Related issues and dependencies identification
|
|
- Historical context and previous attempts
|
|
- Stakeholder requirements and expectations
|
|
```
|
|
|
|
**2. Codebase Context Analysis**
|
|
```bash
|
|
# Identify relevant files and components
|
|
- File pattern recognition based on issue description
|
|
- Dependency tree analysis and impact assessment
|
|
- Related test files and documentation identification
|
|
- Historical change analysis for affected components
|
|
```
|
|
|
|
**3. Problem Classification**
|
|
- **Bug Fixes**: Error correction, edge case handling, regression fixes
|
|
- **Feature Requests**: New functionality implementation, enhancement additions
|
|
- **Performance Issues**: Optimization, bottleneck elimination, efficiency improvements
|
|
- **Security Vulnerabilities**: Security patches, vulnerability remediation
|
|
- **Documentation**: Documentation updates, code comments, knowledge base additions
|
|
|
|
### Phase 2: Strategic Resolution Planning
|
|
|
|
**1. Solution Architecture**
|
|
```javascript
|
|
// ClaudeForge Resolution Strategy Engine
|
|
const resolutionStrategy = {
|
|
// Impact Analysis
|
|
analyzeImpact() {
|
|
return {
|
|
affectedComponents: this.identifyAffectedComponents(),
|
|
riskAssessment: this.evaluateResolutionRisk(),
|
|
testingRequirements: this.defineTestingNeeds(),
|
|
documentationNeeds: this.identifyDocumentationUpdates(),
|
|
deploymentStrategy: this.planDeploymentApproach()
|
|
};
|
|
},
|
|
|
|
// Resolution Planning
|
|
planResolution() {
|
|
return {
|
|
codeChanges: this.designCodeModifications(),
|
|
testStrategy: this.planTestingApproach(),
|
|
qualityChecks: this.defineQualityGates(),
|
|
rollbackPlan: this.prepareRollbackStrategy(),
|
|
communicationPlan: this.planStakeholderCommunication()
|
|
};
|
|
}
|
|
};
|
|
```
|
|
|
|
**2. Quality Gate Definition**
|
|
- **Code Quality**: Linting, formatting, type checking, complexity analysis
|
|
- **Testing Requirements**: Unit tests, integration tests, E2E tests
|
|
- **Performance Validation**: Performance benchmarks, load testing
|
|
- **Security Scanning**: Vulnerability scanning, security best practices
|
|
- **Documentation Updates**: Code comments, README updates, changelog entries
|
|
|
|
### Phase 3: Intelligent Resolution Implementation
|
|
|
|
**1. Code Modification Strategy**
|
|
```bash
|
|
# ClaudeForge Intelligent Code Resolution
|
|
# Analyze affected files
|
|
affected_files=$(identify_relevant_files $ISSUE_CONTEXT)
|
|
|
|
# Implement targeted changes
|
|
for file in $affected_files; do
|
|
# Read current implementation
|
|
current_code=$(read_file_content $file)
|
|
|
|
# Generate intelligent modifications
|
|
new_code=$(apply_intelligent_changes $current_code $ISSUE_CONTEXT)
|
|
|
|
# Validate changes
|
|
validate_code_changes $file $new_code
|
|
|
|
# Apply changes
|
|
write_file_content $file $new_code
|
|
done
|
|
|
|
# Update related test files
|
|
test_files=$(identify_test_files $affected_files)
|
|
update_test_suites $test_files $ISSUE_CONTEXT
|
|
```
|
|
|
|
**2. Test-Driven Validation**
|
|
```bash
|
|
# Comprehensive Testing Framework
|
|
# Unit Test Execution
|
|
npm run test:unit -- --coverage --related=$affected_files
|
|
|
|
# Integration Test Execution
|
|
npm run test:integration -- --related=$affected_files
|
|
|
|
# End-to-End Test Validation
|
|
npm run test:e2e -- --spec=$relevant_e2e_tests
|
|
|
|
# Performance Benchmark Validation
|
|
npm run test:performance -- --baseline-comparison
|
|
```
|
|
|
|
**3. Quality Assurance Validation**
|
|
```bash
|
|
# Code Quality Checks
|
|
npm run lint -- --fix
|
|
npm run type-check
|
|
npm run format -- --write
|
|
npm run security:audit
|
|
|
|
# Code Review Automation
|
|
- Automated code review with static analysis
|
|
- Complexity analysis and maintainability scoring
|
|
- Security vulnerability scanning
|
|
- Best practice compliance verification
|
|
```
|
|
|
|
### Phase 4: Strategic Integration & Deployment
|
|
|
|
**1. Git Workflow Integration**
|
|
```bash
|
|
# ClaudeForge Automated Git Integration
|
|
# Stage changes
|
|
git add $affected_files $test_files $documentation_files
|
|
|
|
# Generate intelligent commit message
|
|
commit_message=$(generate_conventional_commit_message \
|
|
--type="fix|feat|perf|security" \
|
|
--scope=$(extract_component_scope $affected_files) \
|
|
--issue=$ISSUE_NUMBER \
|
|
--description=$(summarize_changes $affected_files) \
|
|
--breaking-changes=$(detect_breaking_changes) \
|
|
)
|
|
|
|
# Create commit with attribution
|
|
git commit -m "$commit_message
|
|
|
|
Fixes #$ISSUE_NUMBER
|
|
|
|
Generated with Claude Code
|
|
Co-Authored-By: Claude <noreply@anthropic.com>"
|
|
|
|
# Verify commit quality
|
|
git log -1 --stat
|
|
```
|
|
|
|
**2. Documentation Updates**
|
|
```markdown
|
|
# Automated Documentation Generation
|
|
## CHANGELOG.md Update
|
|
- Automatic version bump calculation
|
|
- Breaking change documentation
|
|
- Migration guide generation (if applicable)
|
|
|
|
## README.md Updates
|
|
- Feature documentation additions
|
|
- Configuration updates
|
|
- Usage examples updates
|
|
|
|
## Code Documentation
|
|
- Inline code comments
|
|
- JSDoc/TypeDoc generation
|
|
- API documentation updates
|
|
```
|
|
|
|
**3. Issue Communication**
|
|
```bash
|
|
# Automated Issue Updates
|
|
gh issue comment $ISSUE_NUMBER \
|
|
--body "✅ Issue resolved with commit: $(git rev-parse --short HEAD)
|
|
|
|
## Changes Implemented
|
|
$(generate_change_summary)
|
|
|
|
## Testing Performed
|
|
$(generate_test_summary)
|
|
|
|
## Next Steps
|
|
$(generate_next_steps)"
|
|
```
|
|
|
|
## Advanced Resolution Strategies
|
|
|
|
### Bug Fix Optimization
|
|
```javascript
|
|
// ClaudeForge Bug Resolution Framework
|
|
const bugResolution = {
|
|
// Root Cause Analysis
|
|
analyzeRootCause() {
|
|
return {
|
|
errorTracking: this.traceErrorOrigin(),
|
|
edgeCaseIdentification: this.identifyEdgeCases(),
|
|
regressionAnalysis: this.checkRegressionHistory(),
|
|
dependencyImpact: this.analyzeDependencyImpact()
|
|
};
|
|
},
|
|
|
|
// Resolution Implementation
|
|
implementFix() {
|
|
return {
|
|
codeCorrection: this.applyCodeFix(),
|
|
edgeCaseHandling: this.addEdgeCaseHandling(),
|
|
errorHandling: this.improveErrorHandling(),
|
|
testCoverage: this.addComprehensiveTests(),
|
|
documentation: this.updateDocumentation()
|
|
};
|
|
}
|
|
};
|
|
```
|
|
|
|
### Feature Implementation Excellence
|
|
```javascript
|
|
// ClaudeForge Feature Resolution Framework
|
|
const featureImplementation = {
|
|
// Requirements Analysis
|
|
analyzeRequirements() {
|
|
return {
|
|
userStories: this.extractUserStories(),
|
|
acceptanceCriteria: this.defineAcceptanceCriteria(),
|
|
technicalSpecs: this.createTechnicalSpecification(),
|
|
integrationPoints: this.identifyIntegrationPoints()
|
|
};
|
|
},
|
|
|
|
// Implementation Strategy
|
|
implementFeature() {
|
|
return {
|
|
coreImplementation: this.developCoreFeature(),
|
|
integrationImplementation: this.integrateWithExistingCode(),
|
|
testingImplementation: this.createComprehensiveTests(),
|
|
documentationImplementation: this.createFeatureDocumentation()
|
|
};
|
|
}
|
|
};
|
|
```
|
|
|
|
### Performance Optimization Strategy
|
|
```javascript
|
|
// ClaudeForge Performance Resolution Framework
|
|
const performanceOptimization = {
|
|
// Performance Analysis
|
|
analyzePerformance() {
|
|
return {
|
|
bottleneckIdentification: this.identifyPerformanceBottlenecks(),
|
|
profilingAnalysis: this.analyzePerformanceProfiles(),
|
|
resourceAnalysis: this.analyzeResourceUtilization(),
|
|
scalabilityAssessment: this.assessScalabilityImpact()
|
|
};
|
|
},
|
|
|
|
// Optimization Implementation
|
|
implementOptimizations() {
|
|
return {
|
|
algorithmOptimization: this.optimizeAlgorithms(),
|
|
cachingStrategies: this.implementCaching(),
|
|
queryOptimization: this.optimizeDatabaseQueries(),
|
|
resourceOptimization: this.optimizeResourceUsage(),
|
|
performanceValidation: this.validatePerformanceImprovements()
|
|
};
|
|
}
|
|
};
|
|
```
|
|
|
|
## Quality Assurance Framework
|
|
|
|
### Pre-Commit Quality Gates
|
|
```bash
|
|
# ClaudeForge Quality Validation Pipeline
|
|
quality_validation() {
|
|
# Code Quality Checks
|
|
run_linting_validation
|
|
run_type_checking
|
|
run_formatting_validation
|
|
run_complexity_analysis
|
|
|
|
# Testing Validation
|
|
run_unit_tests
|
|
run_integration_tests
|
|
run_e2e_tests
|
|
|
|
# Security Validation
|
|
run_security_scanning
|
|
run_dependency_audit
|
|
run_secret_detection
|
|
|
|
# Performance Validation
|
|
run_performance_benchmarks
|
|
run_bundle_size_analysis
|
|
}
|
|
```
|
|
|
|
### Automated Code Review
|
|
```javascript
|
|
// ClaudeForge Code Review Automation
|
|
const codeReviewAutomation = {
|
|
performCodeReview() {
|
|
return {
|
|
qualityMetrics: this.analyzeCodeQuality(),
|
|
securityAnalysis: this.performSecurityReview(),
|
|
performanceAnalysis: this.analyzePerformanceImpact(),
|
|
maintainabilityScore: this.calculateMaintainability(),
|
|
bestPracticeCompliance: this.checkBestPractices()
|
|
};
|
|
}
|
|
};
|
|
```
|
|
|
|
## Integration Capabilities
|
|
|
|
### CI/CD Integration
|
|
```yaml
|
|
# ClaudeForge CI/CD Issue Resolution Pipeline
|
|
issue-resolution:
|
|
stage: development
|
|
trigger:
|
|
- issue_labeled
|
|
- issue_assigned
|
|
script:
|
|
- claudeforge-issue-fix $ISSUE_NUMBER
|
|
- run-quality-gates
|
|
- create-pull-request
|
|
quality_gates:
|
|
- code_quality: required
|
|
- test_coverage: 80%
|
|
- security_scan: pass
|
|
- performance_impact: acceptable
|
|
```
|
|
|
|
### Monitoring & Alerting
|
|
- **Resolution Tracking**: Automated tracking of issue resolution metrics
|
|
- **Quality Monitoring**: Continuous monitoring of code quality improvements
|
|
- **Performance Monitoring**: Performance impact tracking and validation
|
|
- **Success Metrics**: Resolution time, quality scores, customer satisfaction
|
|
|
|
## Best Practices
|
|
|
|
### Issue Resolution Excellence
|
|
- **Comprehensive Analysis**: Thorough understanding before implementing changes
|
|
- **Minimal Impact**: Targeted changes minimizing side effects and risks
|
|
- **Quality First**: Never compromise on code quality or testing coverage
|
|
- **Documentation**: Complete documentation of changes and decisions
|
|
- **Communication**: Clear communication with stakeholders throughout process
|
|
|
|
### Code Quality Standards
|
|
- **Clean Code**: Readable, maintainable, and well-structured code
|
|
- **Testing Excellence**: Comprehensive test coverage with meaningful tests
|
|
- **Performance Optimization**: Consider performance implications of all changes
|
|
- **Security Awareness**: Security-first approach to all code modifications
|
|
- **Best Practices**: Adherence to project conventions and industry standards
|
|
|
|
## Business Impact Metrics
|
|
|
|
### Resolution Efficiency
|
|
- **Resolution Speed**: 60-70% faster issue resolution with automated workflows
|
|
- **Quality Improvement**: 80-90% reduction in regression bugs and quality issues
|
|
- **Developer Productivity**: 50-60% improvement in developer efficiency
|
|
- **Customer Satisfaction**: 75-85% improvement in issue resolution satisfaction
|
|
|
|
### Quality Enhancement
|
|
- **Code Quality**: 70-80% improvement in code quality metrics
|
|
- **Test Coverage**: 40-50% increase in test coverage
|
|
- **Security Posture**: 85-90% improvement in security compliance
|
|
- **Documentation Quality**: 90-100% improvement in documentation completeness
|
|
|
|
---
|
|
|
|
## Execution Excellence
|
|
|
|
When resolving GitHub issue: **$ARGUMENTS**
|
|
|
|
Execute the ClaudeForge GitHub Issue Resolution Framework:
|
|
|
|
1. **Issue Analysis**: Comprehensive issue understanding and context gathering
|
|
2. **Impact Assessment**: Risk evaluation and affected component identification
|
|
3. **Solution Planning**: Strategic resolution design with quality gates
|
|
4. **Implementation**: Intelligent code changes with comprehensive testing
|
|
5. **Quality Validation**: Automated quality assurance and review
|
|
6. **Integration**: Git workflow integration with proper attribution
|
|
7. **Communication**: Stakeholder updates and documentation
|
|
8. **Verification**: Final validation and success metrics
|
|
|
|
**ClaudeForge Strategic Impact**: Every issue resolution delivers enhanced quality, accelerated development, improved customer satisfaction, and strengthened code maintainability that transforms issue management from reactive support into strategic development excellence catalyst.
|
|
|
|
---
|
|
|
|
**Note**: Use `gh` CLI for all GitHub interactions. Ensure all quality gates pass before finalizing the resolution. Maintain comprehensive documentation and clear communication throughout the resolution process.
|