---
title: "fix issue 2"
description: "Automatically fix a GitHub issue by analyzing its description and implementing a solution."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/fix-issue-2
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:24:38.420Z
license: CC-BY-4.0
attribution: "fix issue 2 — Claudary (https://claudary.paisolsolutions.com/skills/fix-issue-2)"
---

# fix issue 2
Automatically fix a GitHub issue by analyzing its description and implementing a solution.

## Overview

Automatically fix a GitHub issue by analyzing its description and implementing a solution.

## Steps


1. Fetch the issue details using `gh issue view <number>`.
2. Analyze the issue:
3. Locate the relevant code:
4. Create a feature branch: `git checkout -b fix/<issue-number>-<short-desc>`.
5. Implement the fix:
6. Create a PR linking the issue:
7. Use `gh pr create` with the issue reference.

## Format


```
Issue: #<number> - <title>
Root Cause: <explanation>
Fix: <what was changed>
Files Modified: <list>
```


## Rules

- Always create a branch; never commit directly to main.
- Reference the issue number in the PR with "fixes #N" for auto-closing.
- Keep the fix minimal; do not refactor unrelated code.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/fix-issue-2) · https://claudary.paisolsolutions.com
