advpl-to-tlpp-migration

advpl-to-tlpp-migration is a skill for Claude Code, Codex from totvs/engpro-advpl-tlpp-skills. It costs 102 tokens per session (2,114 once invoked), scanned A, original, MIT.

A step-by-step guide for moving legacy AdvPL code to TLPP, a newer version of the same programming language with features such as types, namespaces, and structured error handling.

In plain words
What is it for?
Use it to convert .prw or .prx files to .tlpp, adopt newer TLPP features, replace unsupported constructs, prepare REST migrations, and help developers learn the newer language.
Why use it?
It provides a gradual migration path that preserves existing compatible code while identifying syntax and language features that need updating.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Refer to [references/sonarqube-rules-reference.md](../references/sonarqube-rules-reference.md) for the complete SonarQube rules reference..

Good fit Use it to convert .prw or .prx files to .tlpp, adopt newer TLPP features, replace unsupported constructs, prepare REST migrations, and help developers learn the newer language.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/totvs/engpro-advpl-tlpp-skills
agentmods
npx agentmods add skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for advpl-to-tlpp-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration/github.svg)](https://agentmods.dev/skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration)
Your own site
<a href="https://agentmods.dev/skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration"><img src="https://agentmods.dev/badge/skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for advpl-to-tlpp-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration"><img src="https://agentmods.dev/badge/skills/totvs/engpro-advpl-tlpp-skills/advpl-to-tlpp-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.02114
Opus 5 $0.00051 $0.01057
Sonnet 5 $0.00020 $0.00423
Haiku 4.5 $0.00010 $0.00211

Measured 12d ago against content hash c51a7db175a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

advpl-to-tlpp-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/advpl-tlpp/advpl-to-tlpp-migration/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AdvPL-to-TLPP Migration

Overview

Migrate legacy AdvPL source files (.prw, .prx) to modern TLPP (.tlpp) incrementally and safely. TLPP is an evolution of AdvPL that introduces modern language features while maintaining full backward compatibility with existing AdvPL constructs. This skill provides a structured migration path that can be applied gradually — no forced rewrite is required.

When to Use

Use this skill when:

  • Modernizing legacy AdvPL code to TLPP
  • Converting .prw files to .tlpp
  • Adopting TLPP-exclusive features (typing, try-catch, namespace, etc.)
  • Replacing prohibited constructs (e.g., StaticCall) in TLPP sources
  • Preparing code for TLPP REST migration from WsRESTful
  • Onboarding developers transitioning from AdvPL to TLPP

Feature Comparison: AdvPL vs. TLPP

For the complete feature-by-feature comparison table (19 features covering scoping, control structures, typing, namespaces, Try-Catch, JSON inline, class modifiers, REST, and StaticCall status), see advpl-tlpp-feature-comparison.md.


Migration Process

MANDATORY RULE — File Extension: Any source file that includes #include "tlpp-core.th" or uses TLPP-exclusive features must use the .tlpp extension. If a .prw or .prx file is being migrated or modified to adopt TLPP constructs, rename it to .tlpp as part of the same change. The AdvPL compiler silently ignores TLPP directives in .prw/.prx files, which leads to hard-to-diagnose failures. Always change the extension first.

The migration involves 15 steps, each addressing a specific AdvPL → TLPP transformation:

  1. File Extension and Includes.prw.tlpp, add #include "tlpp-core.th"
  2. Add Namespace — Organize code with Namespace company.module.feature
  3. Add Type Annotations — Variables, parameters, return values (as Type)
  4. Replace ErrorBlock with Try-Catch — Modern exception handling
  5. Replace StaticCall — Use FWLoadMenuDef, FWLoadModel, namespace calls
  6. Use Long Identifier Names — TLPP removes the 10-char limit
  7. Use Named Parameters — Improve readability at call sites
  8. Use JSON Inline — Replace JsonObject():New() chains
  9. Add Class Access ModifiersPrivate, Protected, Public
  10. Migrate WsRESTful to TLPP REST — Annotation-based @Get, @Post, etc.
  11. Fix Incorrect InheritanceLongNameClass (not LongClassName)
  12. Remove ISAM Driver Usage — Migrate to FWTemporaryTable
  13. Migrate Console APIs to FWLogMsg — Replace ConOut, OutErr, ?
  14. Remove IIF Usage — Replace with If/Else/EndIf
  15. Migrate FormCommit Override to FWModelEvent — Use FWFormCommit(oModel)

Read the full file on GitHub · 147 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 147 lines · 102 tokens per session scan A c51a7db175a3

Subscribe to this mod's changes

advpl-to-tlpp-migration is a skill published in the GitHub repository totvs/engpro-advpl-tlpp-skills (131 stars, last pushed 28d ago), licensed MIT. It adds 102 tokens to every session and 2,114 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens

axiom-concurrency

Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 43 tokens