refactor
Analyze code to provide specific refactoring suggestions and implementation plans for improving readability, reducing complexity, or extracting functions.
Instructions
【重构建议】分析代码并提供重构建议和实施计划
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 需要重构的代码 | |
| goal | No | 重构目标:improve_readability, reduce_complexity, extract_function 等 |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "需要重构的代码",
"type": "string"
},
"goal": {
"description": "重构目标:improve_readability, reduce_complexity, extract_function 等",
"type": "string"
}
},
"required": [],
"type": "object"
}