ADVPL to TLPP Migrator

•
13
•

Automates the deterministic migration of legacy ADVPL code to modern TLPP syntax with safety gates and auto-validation.

This skill provides a robust, pipeline-driven approach to migrating Protheus ADVPL (.prw) files to the modern TLPP (.tlpp) format. Inspired by the ts-migrate workflow, it applies 11 specialized recipes in a canonical order to handle encoding conversion (CP1252 to UTF-8), extension renaming, and syntax modernization like try/catch blocks and named arguments. It features advanced safety mechanisms, including automatic backups, git status verification, and a three-level rollback system triggered by failed compilations, ensuring developers can modernize Protheus codebases with high confidence and minimal manual effort.

Key Features

01Integrated validation using the plugadvpl compile tool for post-migration checks.
02Automatic character encoding conversion from CP1252 to UTF-8.
03Three-level safety rollback system (Backup, Git checkout, and Abort) on failure.
0413 GitHub stars
05Deterministic pipeline with 11 specialized ADVPL-to-TLPP transformation recipes.
06Automated debt tracking with @plugadvpl-todo markers for manual review requirements.

Use Cases

01Auditing large scale projects to identify migration candidates and effort scores.
02Modernizing legacy Protheus ERP codebases from ADVPL to modern TLPP standards.
03Performing safe, batch encoding and extension updates across complex directory structures.