1.0 KiB
1.0 KiB
description, argument-hint
| description | argument-hint |
|---|---|
| Get intelligent suggestions for code improvements | [file_path or feature description] |
Analyze the code and provide intelligent improvement suggestions.
Analysis Areas:
-
Refactoring Opportunities
- Extract repeated code into functions
- Simplify complex logic
- Remove dead code
- Improve naming
-
Design Improvements
- Better separation of concerns
- More appropriate design patterns
- Cleaner interfaces
- Reduced coupling
-
Performance Optimizations
- Algorithm improvements
- Caching strategies
- Lazy loading
- Database query optimization
-
Code Modernization
- Use newer language features
- Update deprecated APIs
- Modern best practices
-
Maintainability
- Better error handling
- Improved logging
- More comprehensive tests
- Enhanced documentation
For each suggestion:
- Explain WHY it's better
- Show BEFORE/AFTER code examples
- Estimate the impact and effort
Prioritize suggestions by importance and ease of implementation.