Codemod executor

From a5c-ai/babysitter · View interactive version

Codemod executor is an AI agent skill from the GitHub repository a5c-ai/babysitter. Execute automated AST-based code transformations for large-scale refactoring and migration

How to use this skill

Skill file

Codemod Executor Skill

Executes automated code transformations using AST-based tools for large-scale refactoring, framework migrations, and language version upgrades.

Purpose

Enable automated code transformations for:

Capabilities

1. AST-Based Transformations

2. Pattern Matching and Replacement

3. Multi-File Transformations

4. Dry-Run Preview

5. Rollback Support

6. Custom Codemod Creation

Tool Integrations

| Tool | Language | Integration Method |

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

| jscodeshift | JavaScript/TypeScript | CLI |

| ts-morph | TypeScript | Library |

| Rector | PHP | CLI |

| Scalafix | Scala | CLI |

| OpenRewrite | Java | CLI / Maven |

| Bowler | Python | CLI |

| ast-grep | Multi-language | CLI / MCP |

| gofmt -r | Go | CLI |

Output Schema

{
  "executionId": "string",
  "timestamp": "ISO8601",
  "codemod": {
    "name": "string",
    "version": "string",
    "description": "string"
  },
  "results": {
    "filesProcessed": "number",
    "filesModified": "number",
    "filesSkipped": "number",
    "transformations": "number"
  },
  "changes": [
    {
      "file": "string",
      "transformations": [
        {
          "type": "string",
          "line": "number",
          "before": "string",
          "after": "string"
        }
      ]
    }
  ],
  "errors": [],
  "warnings": []
}

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.