# Fix Issue

> Use when the user wants to fix a GitHub issue by number, resolve a bug report, or close an issue.

- Skill: `majiayu000/fix-issue-11` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/fix-issue-11`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/fix-issue-11/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/fix-issue-11

---


Fix GitHub issue **#$ARGUMENTS**.

## Steps

1. **Fetch the issue**
   ```
   gh issue view $ARGUMENTS
   ```

2. **Understand requirements** — read the issue title, description, labels, and comments

3. **Create a branch**
   ```
   git checkout -b fix/issue-$ARGUMENTS
   ```

4. **Find relevant code** — use Grep and Glob to locate files related to the issue

5. **Read the code** — understand the current behavior and why it's wrong

6. **Implement the fix** — make the minimum changes needed

7. **Write/update tests** — ensure the fix is tested

8. **Run tests** — verify nothing is broken
   ```
   [test command from CLAUDE.md or package.json]
   ```

9. **Commit** with conventional message:
   ```
   git add [specific files]
   git commit -m "fix: [description] (#$ARGUMENTS)"
   ```

10. **Show summary** — what was changed, why, and what tests cover it

## If issue doesn't exist

Tell the user the issue was not found.

<!-- Skill by Huzefa Nalkheda Wala | github.com/huzaifa525 | claude-code-optimizer -->

