Files
2025-11-29 18:18:45 +08:00

45 lines
1.0 KiB
Markdown

---
description: Get intelligent suggestions for code improvements
argument-hint: "[file_path or feature description]"
---
Analyze the code and provide intelligent improvement suggestions.
## Analysis Areas:
1. **Refactoring Opportunities**
- Extract repeated code into functions
- Simplify complex logic
- Remove dead code
- Improve naming
2. **Design Improvements**
- Better separation of concerns
- More appropriate design patterns
- Cleaner interfaces
- Reduced coupling
3. **Performance Optimizations**
- Algorithm improvements
- Caching strategies
- Lazy loading
- Database query optimization
4. **Code Modernization**
- Use newer language features
- Update deprecated APIs
- Modern best practices
5. **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.