All skills
Skillintermediate
fix issue 2
Automatically fix a GitHub issue by analyzing its description and implementing a solution.
Claude Code Knowledge Pack7/10/2026
Overview
Automatically fix a GitHub issue by analyzing its description and implementing a solution.
Steps
- Fetch the issue details using
gh issue view <number>. - Analyze the issue:
- Locate the relevant code:
- Create a feature branch:
git checkout -b fix/<issue-number>-<short-desc>. - Implement the fix:
- Create a PR linking the issue:
- Use
gh pr createwith 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.