# Fix Issue

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

- **Type:** Skill
- **Install:** `agentstack add skill-huzaifa525-claude-code-optimizer-fix-issue`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [huzaifa525](https://agentstack.voostack.com/s/huzaifa525)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [huzaifa525](https://github.com/huzaifa525)
- **Source:** https://github.com/huzaifa525/claude-code-optimizer/tree/master/templates/.claude/skills/fix-issue
- **Website:** https://www.npmjs.com/package/claude-code-optimizer

## Install

```sh
agentstack add skill-huzaifa525-claude-code-optimizer-fix-issue
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [huzaifa525](https://github.com/huzaifa525)
- **Source:** [huzaifa525/claude-code-optimizer](https://github.com/huzaifa525/claude-code-optimizer)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/claude-code-optimizer

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-huzaifa525-claude-code-optimizer-fix-issue
- Seller: https://agentstack.voostack.com/s/huzaifa525
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
