Skip to content
Back to skills

Fix Issue

ASecurity

Fetches a GitHub issue by number, analyzes the requirements, finds the relevant code, implements a fix, and optionally creates a PR. Use when working through your issue backlog.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentsbashgit

Works with

  • cli

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add viknesh20-20/claude-code-tool-kit --skill fix-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Issue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fix Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/viknesh20-20-fix-issue/badge)](https://www.skillsdirectory.com/skills/viknesh20-20-fix-issue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fix-issue
description: "Fetches a GitHub issue by number, analyzes the requirements, finds the relevant code, implements a fix, and optionally creates a PR. Use when working through your issue backlog."
argument-hint: "[issue number]"
allowed-tools: Read, Grep, Glob, Bash, Edit, Write
---

# Fix GitHub Issue

## Fetch Issue Details
!`gh issue view $1 2>/dev/null || echo "Usage: /fix-issue <issue-number> — requires gh CLI authenticated"`

---

## Workflow

### Step 1: Understand the Issue
1. Read the issue title, description, labels, and comments
2. Identify: Is this a **bug fix**, **feature request**, or **enhancement**?
3. Determine acceptance criteria — what does "done" look like?
4. Note any linked issues, PRs, or referenced files

### Step 2: Find Relevant Code
1. Search the codebase for files/functions mentioned in the issue
2. Trace the code path related to the reported behavior
3. If it's a bug: try to reproduce the conditions mentally by reading the code
4. Identify the minimal set of files that need to change

### Step 3: Create a Branch
```
git checkout -b fix/issue-<number>-<short-description>
```

### Step 4: Implement the Fix
1. Make the smallest change that addresses the issue
2. Follow existing code patterns and conventions
3. Add or update tests to cover the fix
4. Ensure no regressions in adjacent functionality

### Step 5: Verify
1. Run existing tests for the affected area
2. Run the new tests
3. Review your own diff: `git diff`
4. Check for unintended changes

### Step 6: Commit and PR
1. Stage changes: `git add <files>`
2. Commit with reference: `git commit -m "fix: <description> (#<issue-number>)"`
3. Push: `git push -u origin <branch>`
4. Create PR: `gh pr create --title "Fix #<number>: <title>" --body "Closes #<number>"`

---

## Rules
- Always reference the issue number in commits and PR
- Don't scope-creep — fix only what the issue describes
- If the issue is unclear, list your assumptions before implementing
- If the fix requires architectural changes, flag it and discuss before proceeding

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…