Skip to content
Back to skills

Fix Issue

ASecurity

Fix a GitHub issue following project coding standards. Creates branch, implements fix with TDD, and prepares PR.

  • 8 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 22, 2026
ai-agentsbashtestinggit

Works with

  • claude code

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add joris887/exosuit --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/joris887-fix-issue/badge)](https://www.skillsdirectory.com/skills/joris887-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
version: 2.4.0
description: Fix a GitHub issue following project coding standards. Creates branch, implements fix with TDD, and prepares PR.
trigger: manual
depends-on: []
references: []
disable-model-invocation: true
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Edit, Write
argument-hint: "<issue-number>"
---
______________________________________________________________________

## fix-issue

Fix GitHub issue **$ARGUMENTS** following project coding standards.

## 1. Get Issue Details

```bash
gh issue view $ARGUMENTS
```

## 2. Understand the Problem

- Read the issue description carefully
- Check for related issues or PRs
- Identify acceptance criteria

## 3. Create Feature Branch

Detect the default branch dynamically:

```bash
DEFAULT_BRANCH=$(grep -oP '^\- \*\*Default branch:\*\* \K\S+' CLAUDE.md 2>/dev/null)
if [ -z "$DEFAULT_BRANCH" ]; then
    DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
fi
if [ -z "$DEFAULT_BRANCH" ]; then
    for branch in main master develop; do
        if git show-ref --verify --quiet "refs/heads/$branch"; then DEFAULT_BRANCH="$branch"; break; fi
    done
fi
git checkout $DEFAULT_BRANCH
git pull origin $DEFAULT_BRANCH
git checkout -b fix/issue-$ARGUMENTS
```

**Note:** This skill is a standalone quick-fix flow (issue → branch → TDD fix → PR). For fixes that are part of an active sprint, use `/story-cycle` instead — it integrates with the sprint branch and quality gates.

## 4. Search for Relevant Code

- Use Glob and Grep to find related files
- Understand the current implementation
- Identify what needs to change
- <IF condition="docs/adr/ contains accepted ADR files">Check `docs/adr/` for accepted decisions that constrain the fix approach — the fix must respect existing architectural decisions</IF>

## 5. Implement Fix (TDD)

1. Write a failing test that reproduces the issue
1. Verify the test fails for the right reason
1. Implement the minimal fix
1. Verify the test passes
1. Run full test suite (use project's test command from CLAUDE.md)

## 6. Verify Fix

- Ensure code passes linting and type checking
- Review changes for quality

## 7. Commit and Push

```bash
git add .
git commit -m "$(cat <<'EOF'
fix: resolve issue #$ARGUMENTS

[Description of what was fixed and how]

Closes #$ARGUMENTS

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
git push -u origin fix/issue-$ARGUMENTS
```

## 8. Create PR

```bash
gh pr create --title "fix: resolve issue #$ARGUMENTS" --body "$(cat <<'EOF'
## Summary
Fixes #$ARGUMENTS

## Changes
- [List of changes made]

## Testing
- Added test to reproduce issue
- All tests passing

## Checklist
- [x] Issue reproduced with failing test
- [x] Fix implemented
- [x] All tests pass
- [x] Code follows project standards

Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
```

Output the PR URL when complete.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.