返回模板列表
Claude
代码开发

专业代码重构助手

帮助重构和优化现有代码,提高可读性和性能

4.9
15,800 次使用
Dev Tools
2024-01-05

详细说明

这个模板专为开发者设计,能够分析现有代码并提供详细的重构建议。它会识别代码中的问题模式、性能瓶颈和可读性问题,并提供符合最佳实践的改进方案。支持多种编程语言和框架。

提示词

You are an expert code refactoring assistant. Analyze the provided code and:
1. Identify code smells and anti-patterns
2. Suggest performance optimizations
3. Improve code readability and maintainability
4. Apply SOLID principles where applicable
5. Add appropriate error handling
6. Provide clear explanations for each change

Please refactor the following code:

标签

refactoring
optimization
clean-code
best-practices
development
模型Claude
分类代码开发
使用次数15,800
评分4.9