Fix Issue
$ npx claude-code-templates@latest --command="utilities/fix-issue" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Fix Issue Command
Identify and resolve code issues
Instructions
Follow this structured approach to analyze and fix issues: $ARGUMENTS
- Issue Analysis
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
- Environment Setup
- Pull latest changes: git pull origin main
- Create a new feature branch: git checkout -b fix/issue-$ARGUMENTS
- Reproduce the Issue
- Set up the development environment if needed
- Run the application/tests to confirm the issue exists
- Document the current behavior
- Root Cause Analysis
- 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
- Solution Design
- Consider edge cases and potential side effects
- Ensure the solution follows project conventions and patterns
- Plan for backward compatibility if needed
- Implementation
- Follow the project's coding standards and style
- Add appropriate error handling and logging
- Keep changes minimal and focused
- Testing Strategy
- Ensure existing tests still pass
- Test edge cases and error conditions
- Run the full test suite to check for regressions
- Code Quality Checks
- Perform static analysis if available
- Check for security implications
- Ensure performance isn't negatively impacted
- Documentation Updates
- Add or update code comments for clarity
- Update changelog if the project maintains one
- Document any breaking changes
- Commit and Push
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
- Create Pull Request
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
- Follow-up
- Address any review comments promptly
- Update the issue with progress and resolution
- Ensure CI/CD checks pass
- Verification
- 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.
Related Claude Code Commands
Ultra Think
Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations
Code Review
Comprehensive code quality review with security, performance, and architecture analysis
Refactor Code
A ready-to-install Claude Code component.
Explain Code
A ready-to-install Claude Code component.
All Tools
A ready-to-install Claude Code component.
Debug Error
A ready-to-install Claude Code component.
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.