refactor
Analyzes code structure to provide refactoring suggestions, step-by-step guidance, and risk assessment, supporting goals like readability, complexity reduction, or performance improvement.
Instructions
当用户需要重构代码、改善代码结构时使用。分析代码结构,提供重构建议、重构步骤和风险评估
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 要重构的代码 | |
| goal | No | 重构目标:improve_readability(可读性)、reduce_complexity(复杂度)、performance(性能)。可选 |