| name | fix-issue |
| description | Analyze a GitHub issue and propose or implement a fix |
| argument-hint | <issue number> |
| disable-model-invocation | true |
Workflow for fixing GitHub issue #$ARGUMENTS:
- Fetch issue details: gh issue view $ARGUMENTS
- Read all comments: gh api repos/{owner}/{repo}/issues/$ARGUMENTS/comments
- Understand the problem:
- What is the expected behavior?
- What is the actual behavior?
- What components are affected?
- Search the codebase for relevant code using Grep and Glob
- Identify the root cause
- Present a fix plan to the user โ do NOT implement without approval
- After user approval:
- Create a feature branch: git checkout -b fix/issue-$ARGUMENTS
- Implement the fix
- Build and test: cd build && cmake .. && make -j$(nproc) && ctest
- Commit with "Fixes #$ARGUMENTS" in the message
- Offer to create a PR