Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:18:45 +08:00
commit ffd78e2aea
13 changed files with 644 additions and 0 deletions

44
commands/suggest.md Normal file
View File

@@ -0,0 +1,44 @@
---
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.