Refactoring assistant

From a5c-ai/babysitter · View interactive version

Refactoring assistant is an AI agent skill from the GitHub repository a5c-ai/babysitter. Suggest and guide application of refactoring patterns to improve code quality

How to use this skill

Skill file

Refactoring Assistant Skill

Suggests appropriate refactoring patterns and guides their application to improve code quality, maintainability, and migration readiness.

Purpose

Enable guided refactoring for:

Capabilities

1. Extract Method/Class Suggestions

2. Move Method Recommendations

3. Rename Refactoring

4. Inline Refactoring

5. Pull Up/Push Down Member

6. Design Pattern Application

Tool Integrations

| Tool | Purpose | Integration Method |

|------|---------|-------------------|

| IDE Refactoring | Automated refactoring | CLI / API |

| Sourcery | AI-powered suggestions | CLI |

| Sourcegraph Cody | Code intelligence | API |

| IntelliJ IDEA | Java refactoring | CLI |

| VS Code | Multi-language | Extension API |

Output Schema

{
  "analysisId": "string",
  "timestamp": "ISO8601",
  "suggestions": [
    {
      "type": "extract-method|move-method|rename|inline|design-pattern",
      "priority": "high|medium|low",
      "target": {
        "file": "string",
        "element": "string",
        "line": "number"
      },
      "description": "string",
      "rationale": "string",
      "steps": ["string"],
      "estimatedImpact": {
        "complexity": "string",
        "maintainability": "string",
        "testability": "string"
      },
      "risks": ["string"]
    }
  ],
  "patterns": {
    "applicable": ["string"],
    "opportunities": []
  }
}

Integration with Migration Processes

Related Skills

Related Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.