refactor_workflow
Initiate a structured refactoring workflow to enhance code quality while preserving functionality. Define the task, scope, and constraints for targeted, verified improvements.
Instructions
Start a structured refactoring workflow to improve existing code without changing functionality
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | Additional context (optional) | |
task | Yes | Description of what you want to refactor |
Input Schema (JSON Schema)
{
"properties": {
"context": {
"description": "Additional context (optional)",
"properties": {
"constraints": {
"description": "Any constraints or requirements",
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"description": "The scope of the refactoring",
"enum": [
"file",
"directory",
"project"
],
"type": "string"
},
"targetFiles": {
"description": "Specific files to refactor",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"task": {
"description": "Description of what you want to refactor",
"type": "string"
}
},
"required": [
"task"
],
"type": "object"
}