Skip to main content
Glama
code_refactoring.yamlโ€ข1.55 kB
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

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/carlosduplar/multi-agent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server