/fix-issue
Identify and resolve code issues
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/fix-issue
Context preview
What this command does when you run it.
Identify and resolve code issues
Command definition
fix-issue.mdFix Issue Command
Identify and resolve code issues
Instructions
Follow this structured approach to analyze and fix issues: **$ARGUMENTS**
1. **Issue Analysis**
- Use `gh issue view $ARGUMENTS` to get complete issue details
- Read the issue description, comments, and any attached logs/screenshots
- Identify the type of issue (bug, feature request, enhancement, etc.)
- Understand the expected vs actual behavior
2. **Environment Setup**
- Ensure you're on the correct branch (usually main/master)
- Pull latest changes: `git pull origin main`
- Create a new feature branch: `git checkout -b fix/issue-$ARGUMENTS`
3. **Reproduce the Issue**
- Follow the steps to reproduce described in the issue
- Set up the development environment if needed
- Run the application/tests to confirm the issue exists
- Document the current behavior
4. **Root Cause Analysis**
- Search the codebase for relevant files and functions
- Use grep/search tools to locate the problematic code
- Analyze the code logic and identify the root cause
- Check for related issues or similar patterns
5. **Solution Design**
- Design a fix that addresses the root cause, not just symptoms
- Consider edge cases and potential side effects
- Ensure the solution follows project conventions and patterns
- Plan for backward compatibility if needed
6. **Implementation**
- Implement the fix with clean, readable code
- Follow the project's coding standards and style
- Add appropriate error handling and logging
- Keep changes minimal and focused
7. **Testing Strategy**
- Write or update tests to cover the fix
- Ensure existing tests still pass
- Test edge cases and error conditions
- Run the full test suite to check for regressions
8. **Code Quality Checks**
- Run linting and formatting tools
- Perform static analysis if available
- Check for security implications
- Ensure performance isn't negatively impacted
9. **Documentation Updates**
- Update relevant documentation if needed
- Add or update code comments for clarity
- Update changelog if the project maintains one
- Document any breaking changes
10. **Commit and Push**
- Stage the changes: `git add .`
- Create a descriptive commit message following project conventions
- Example: `fix: resolve issue with user authentication timeout (#$ARGUMENTS)`
- Push the branch: `git push origin fix/issue-$ARGUMENTS`
11. **Create Pull Request**
- Use `gh pr create` to create a pull request
- Reference the issue in the PR description: "Fixes #$ARGUMENTS"
- Provide a clear description of the changes and testing performed
- Add appropriate labels and reviewers
12. **Follow-up**
- Monitor the PR for feedback and requested changes
- Address any review comments promptly
- Update the issue with progress and resolution
- Ensure CI/CD checks pass
13. **Verification**
- Once merged, verify the fix in the main branch
- Close the issue if not automatically closed
- Monitor for any related issues or regressions
Remember to communicate clearly in both code and comments, and always prioritize maintainable solutions over quick fixes.
Read more
Fix Issue Command
Identify and resolve code issues
Instructions
Follow this structured approach to analyze and fix issues: **$ARGUMENTS**
1. **Issue Analysis**
- Use `gh issue view $ARGUMENTS` to get complete issue details
- Read the issue description, comments, and any attached logs/screenshots
- Identify the type of issue (bug, feature request, enhancement, etc.)
- Understand the expected vs actual behavior
2. **Environment Setup**
- Ensure you're on the correct branch (usually main/master)
- Pull latest changes: `git pull origin main`
- Create a new feature branch: `git checkout -b fix/issue-$ARGUMENTS`
3. **Reproduce the Issue**
- Follow the steps to reproduce described in the issue
- Set up the development environment if needed
- Run the application/tests to confirm the issue exists
- Document the current behavior
4. **Root Cause Analysis**
- Search the codebase for relevant files and functions
- Use grep/search tools to locate the problematic code
- Analyze the code logic and identify the root cause
- Check for related issues or similar patterns
5. **Solution Design**
- Design a fix that addresses the root cause, not just symptoms
- Consider edge cases and potential side effects
- Ensure the solution follows project conventions and patterns
- Plan for backward compatibility if needed
6. **Implementation**
- Implement the fix with clean, readable code
- Follow the project's coding standards and style
- Add appropriate error handling and logging
- Keep changes minimal and focused
7. **Testing Strategy**
- Write or update tests to cover the fix
- Ensure existing tests still pass
- Test edge cases and error conditions
- Run the full test suite to check for regressions
8. **Code Quality Checks**
- Run linting and formatting tools
- Perform static analysis if available
- Check for security implications
- Ensure performance isn't negatively impacted
9. **Documentation Updates**
- Update relevant documentation if needed
- Add or update code comments for clarity
- Update changelog if the project maintains one
- Document any breaking changes
10. **Commit and Push**
- Stage the changes: `git add .`
- Create a descriptive commit message following project conventions
- Example: `fix: resolve issue with user authentication timeout (#$ARGUMENTS)`
- Push the branch: `git push origin fix/issue-$ARGUMENTS`
11. **Create Pull Request**
- Use `gh pr create` to create a pull request
- Reference the issue in the PR description: "Fixes #$ARGUMENTS"
- Provide a clear description of the changes and testing performed
- Add appropriate labels and reviewers
12. **Follow-up**
- Monitor the PR for feedback and requested changes
- Address any review comments promptly
- Update the issue with progress and resolution
- Ensure CI/CD checks pass
13. **Verification**
- Once merged, verify the fix in the main branch
- Close the issue if not automatically closed
- Monitor for any related issues or regressions
Remember to communicate clearly in both code and comments, and always prioritize maintainable solutions over quick fixes.
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Other commands on claude-command-suite.
- /boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Open command - /boundary-detect
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Open command - /boundary-heatmap
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Open command - /boundary-risk-assess
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Open command - /boundary-safe-bridge
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Open command - /optimize-prompt
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
Open command

