/advpl-specialist:advpl-to-tlpp-migrationfrom advpl-specialist
Migrates procedural ADVPL (.prw) code to TLPP classes with namespaces, keeping backward-compatible wrappers. Useful when modernizing legacy TOTVS routines.
Ships in advpl-specialist. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill guides the conversion of legacy .prw procedural code (User Functions, Static Functions, Private/Public variables) into modern .tlpp classes with namespace declarations, data properties, and public/private methods -- following the official TOTVS naming conventions (lowercase dot-separated namespaces, PascalCase classes, camelCase methods, no underscores). It defines the migration workflow (analyze -> identify -> map to class design -> user approval -> generate -> checklist -> validate) and mandates keeping the original .prw User Function as a thin backward-compatible wrapper delegating to the new class.
Activate this skill when the user wants an existing procedural routine converted to TLPP, needs help deciding a namespace, or is modernizing multiple #Include directives to .th includes. It does not cover generating brand-new TLPP code that has no ADVPL predecessor (see advpl-code-generation), behavior-preserving cleanup of code that stays in ADVPL (see advpl-refactoring), auditing code quality before migration (see advpl-code-review), or fixing errors encountered during or after migration (see advpl-debugging).
| Reference file | Read when |
|---|---|
| reference.md | Always -- overview, migration strategy flow, core conversion rules table, TLPP naming conventions, full before/after example, key migration decisions, common mistakes |
| migration-rules.md | Needing the complete mapping of every ADVPL construct (preprocessor directives, database operations, error handling, UI elements) to its TLPP equivalent |
| migration-checklist.md | Verifying a completed migration is thorough before declaring it done |
| gap-report.md | Planning or delivering any migration (ADVPL to TLPP, Smart X, Smart View) -- mandatory gap report template, checklist of what usually gets lost, filled example |
AIs without hooks (Copilot, Cursor, Gemini CLI and others) must verify the file themselves, in this order, before delivering. Paths are relative to this skill folder; the scripts belong to the named skills.
advpl-code-review skill's scripts/advpl-lint.sh (../advpl-code-review/scripts/advpl-lint.sh --scope all <file>). Exit 1 means errors..advpl-specialist-ignore (rule <ID>, path <glob>, field <FIELD>, function <NAME>).advpl-code-generation skill's scripts/convert-encoding.sh (../advpl-code-generation/scripts/convert-encoding.sh <file>, strict). On failed: ... (incompatible char), remove or replace the character; or re-run with --translit and tell the user which characters became ?. Do not edit the file after converting: a tool that assumes UTF-8 corrupts the accents. If it needs another edit, convert it back with --to-utf8 first and repeat steps 1 to 3..ps1 twins with pwsh -NoProfile -ExecutionPolicy Bypass -File (or powershell -NoProfile -ExecutionPolicy Bypass -File on Windows PowerShell 5.1)./advpl-specialist:validate to lint whole files on demand.What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/advpl-code-generationGenerate or scaffold ADVPL/TLPP code - User Functions, TLPP classes, MVC, REST, SOAP, entry points, reports, jobs. "gerar codigo", "criar rotina", "novo ponto de entrada", "criar classe tlpp", "gerar api rest"./advpl-code-reviewReview or audit ADVPL/TLPP code for best practices, performance, security and SonarQube rules (CA/BG/CS). "revisar codigo", "auditar rotina", "checar boas praticas", "code review advpl"./advpl-debuggingDebug ADVPL/TLPP errors - compilation, runtime (NIL, type mismatch), slow queries, locks, AppServer logs and stack traces. "erro de compilacao", "travou o lock", "performance lenta", "analisar log".npx claudepluginhub thalysjuvenal/advpl-specialist --plugin advpl-specialistOther plugins' skills for the same job