Spaces:
Running
Running
File size: 1,552 Bytes
8b02e7c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 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
|