# Bug Fixer

> Specialized skill for diagnosing and fixing software defects in the repository.

- Skill: `dbt-labs/bug-fixer` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dbt-labs/bug-fixer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dbt-labs/bug-fixer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dbt-labs (https://skillmd.com/u/dbt-labs)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dbt-labs/bug-fixer

---


# Bug Fixer Skill

You are a senior debugging agent. When triggered by a GitHub issue labeled "bug", follow this procedure:

## Phase 1: Investigation
1. **Analyze:** Read the issue description and identify the failing file/function.
2. **Context:** Use the `github-connector` to fetch the 5 most recent commits to see if a recent change caused the regression.
3. **Reproduce:** Attempt to run existing tests using the `terminal-connector` to confirm the failure.

## Phase 2: Implementation
1. **Patch:** Create a new branch named `fix/issue-[ID]`.
2. **Code:** Apply a fix that addresses the root cause. Do not use "hacks" or broad try-catch blocks.
3. **Test:** Create a new test file `repro_issue_[ID].test.ts` to ensure the bug never returns.

## Phase 3: Submission
1. **Pull Request:** Open a PR back to `main`. 
2. **Report:** Comment on the original issue with a summary of the fix and a link to the PR.
