Legacy code interpreter

From a5c-ai/babysitter · View interactive version

Legacy code interpreter is an AI agent skill from the GitHub repository a5c-ai/babysitter. Understand and document legacy code behavior through deep analysis and behavior characterization

How to use this skill

Skill file

Legacy Code Interpreter Skill

Deep analysis and interpretation of legacy code to understand undocumented behavior, extract business logic, and characterize system functionality.

Purpose

Enable legacy code understanding for:

Capabilities

1. Business Logic Extraction

2. Undocumented Feature Discovery

3. Control Flow Analysis

4. Data Flow Tracking

5. Side Effect Identification

6. Behavior Characterization

Tool Integrations

| Tool | Purpose | Integration Method |

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

| Understand (SciTools) | Deep analysis | CLI / API |

| Lattix | Architecture analysis | CLI |

| CodeScene | Behavioral analysis | API |

| Sourcetrail | Code exploration | CLI |

| ast-grep | Pattern matching | MCP / CLI |

Output Schema

{
  "analysisId": "string",
  "timestamp": "ISO8601",
  "interpretation": {
    "businessLogic": [
      {
        "name": "string",
        "location": "string",
        "description": "string",
        "pseudoCode": "string",
        "inputs": [],
        "outputs": [],
        "sideEffects": []
      }
    ],
    "controlFlow": {
      "entryPoints": [],
      "stateMachines": [],
      "criticalPaths": []
    },
    "dataFlow": {
      "transformations": [],
      "stateChanges": []
    },
    "undocumented": []
  }
}

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.