Spaces:
Sleeping
Sleeping
| name: "Code Refactoring Pipeline" | |
| description: "Systematic code refactoring with quality checks" | |
| steps: | |
| - id: analyze | |
| agent: claude | |
| task: "Analyze this code for refactoring opportunities: {{ code_path }}. Identify code smells, duplications, and architectural issues." | |
| output: analysis_report | |
| description: "Analyze code quality" | |
| - id: plan | |
| agent: claude | |
| task: "Create a refactoring plan based on this analysis: {{ analysis_report }}. Prioritize changes by impact and risk." | |
| output: refactoring_plan | |
| condition: "{{ analysis_report | length > 0 }}" | |
| description: "Plan refactoring strategy" | |
| - id: refactor | |
| agent: aider | |
| task: "Execute this refactoring plan: {{ refactoring_plan }}. Make incremental, safe changes." | |
| output: refactored_code | |
| condition: "{{ refactoring_plan | length > 0 }}" | |
| description: "Apply refactoring" | |
| - id: validate | |
| agent: gemini | |
| task: "Run tests and validate the refactored code. Ensure no functionality was broken." | |
| output: validation_result | |
| condition: "{{ refactored_code | length > 0 }}" | |
| description: "Validate refactoring" | |
| - id: document | |
| agent: claude | |
| task: "Document the refactoring changes. Original issues: {{ analysis_report }}. Changes made: {{ refactoring_plan }}" | |
| output: documentation | |
| condition: "{{ validation_result | length > 0 }}" | |
| description: "Document changes" | |
| metadata: | |
| category: quality | |
| difficulty: advanced | |
| estimated_duration: 360 | |
| tags: | |
| - refactoring | |
| - code-quality | |
| - technical-debt | |