name: code-analyzer description: Analyze code quality, identify potential issues, and suggest improvements. Use when reviewing code structure, finding bugs, or evaluating maintainability.
/analyze-code Command
Analyze code quality, identify potential issues, and suggest improvements.
What This Command Does
- Reviews code structure and patterns
- Identifies potential bugs and anti-patterns
- Suggests refactoring opportunities
- Checks for security vulnerabilities
- Evaluates code maintainability
Usage
/analyze-code [path or current file]
Output
Provides structured analysis with:
- Code quality score
- List of issues found with severity
- Specific suggestions for improvement
- References to best practices
Best Practices
- Run before code reviews
- Use when refactoring legacy code
- Apply to critical code paths regularly