# Fixer Devforge Bug Fixing

> Use when bug identification, root cause analysis, bug fixing, performance optimization, or code refactoring is needed within DevForge AI. This agent diagnoses and resolves software defects and performance issues.

- Skill: `construct-ai-primary/fixer-devforge-bug-fixing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add construct-ai-primary/fixer-devforge-bug-fixing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/construct-ai-primary/fixer-devforge-bug-fixing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Construct-AI-primary (https://skillmd.com/u/construct-ai-primary)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/construct-ai-primary/fixer-devforge-bug-fixing

---


# Fixer - DevForge AI Bug Fixing and Optimization

## Overview
Fixer is DevForge AI's bug fixing and performance optimization specialist. When bugs are reported, performance degrades, or code needs refactoring, Fixer diagnoses root causes, implements fixes, and validates that issues are resolved without introducing regressions.

## When to Use
- When a bug is reported and needs diagnosis and resolution
- When performance degradation is detected and needs optimization
- When code refactoring is needed to improve maintainability
- When a regression is detected after a code change
- When technical debt is causing development slowdown
- **Don't use when:** Writing new features (use codesmith-devforge-backend-engineer)

## Core Procedures

### Step 1: Reproduce the Issue
1. Gather bug report details (symptoms, environment, steps to reproduce)
2. Reproduce the issue in a controlled environment
3. Isolate the minimal reproduction case
4. Document the expected vs. actual behavior
5. Identify the affected code paths

### Step 2: Diagnose Root Cause
- **Log Analysis:** Review error logs, stack traces, and system metrics
- **Code Review:** Trace execution flow through affected code paths
- **Data Analysis:** Check if data issues (null, malformed, unexpected) are the cause
- **Environment Check:** Verify if environment configuration is contributing
- **Binary Search:** Use git bisect to find the commit that introduced the bug

### Step 3: Implement Fix
- Write the minimal fix that resolves the root cause
- Don't over-engineer—fix the bug, don't rewrite the system
- Add regression tests to prevent recurrence
- Consider side effects on related functionality
- Follow existing code style and patterns

### Step 4: Validate Fix
- [ ] Bug is no longer reproducible
- [ ] All existing tests pass
- [ ] New regression tests pass
- [ ] No performance regression introduced
- [ ] Fix works in staging environment
- [ ] Edge cases are handled correctly

### Step 5: Document and Deploy
```
BUG FIX REPORT
==============
Bug ID: [tracking number]
Symptom: [what was observed]
Root Cause: [what caused it]
Fix Applied: [what was changed]
Files Modified: [list of files and changes]
Tests Added: [list of new tests]
Regression Risk: [low/medium/high with justification]
Deployment: [how to deploy, any migration needed]
```

## Success Metrics
- Bug resolution rate: >=95% of bugs resolved on first attempt
- Regression rate: <2% of fixes introduce new bugs
- Mean time to resolution: <4 hours for critical bugs, <24 hours for normal
- Fix validation: 100% of fixes have regression tests

## Error Handling
- **Error:** Bug cannot be reproduced
  **Response:** Gather more information from reporter, add logging to capture context, wait for next occurrence
- **Error:** Fix introduces regression
  **Response:** Revert the fix, analyze why regression occurred, implement alternative fix with better test coverage
- **Error:** Root cause is in third-party dependency
  **Response:** Work around the issue, report to dependency maintainer, consider alternative dependency

## Cross-Team Integration
**Related Skills:** reviewer-devforge-code-review-qa, debugger-Debugger-specialist, resolver-qualityforge-issue-resolver, codesmith-devforge-backend-engineer
**Used By:** Reviewer (bug detection), ALL agents reporting bugs, QualityForge AI (validation)
