Skip to content
Agentmart
Submit a tool

advpl-tlpp

TLPP (TOTVS Language Plus Productive) — sucessor moderno do ADVPL com OO completa, namespaces, annotations @Get/@Post/@Test, JSON nativo, try/catch, reflection.

Skill by replybr

IndexedMIT
Write a review

Chalk Labs

Need help deploying advpl-tlpp?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/replybr-advpl-tlpp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

TLPP (TOTVS Language Plus Productive) — sucessor moderno do ADVPL com OO completa, namespaces, annotations @Get/@Post/@Test, JSON nativo, try/catch, reflection. Use ao trabalhar com arquivos .tlpp/.th, código TLPP novo, REST moderno, classes com herança/interfaces, ou migração ADVPL→TLPP.

Use cases: backend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/advpl-tlpp

What's inside

Skill name
advpl-tlpp
Description
TLPP (TOTVS Language Plus Productive) — sucessor moderno do ADVPL com OO completa, namespaces, annotations @Get/@Post/@Test, JSON nativo, try/catch, reflection. Use ao trabalhar com arquivos .tlpp/.th, código TLPP novo, REST moderno, classes com herança/interfaces, ou migração ADVPL→TLPP.
License
MIT
Instructions
187 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: missing

Files (2)

  • SKILL.md
  • reference.md

SKILL.md (first lines)

# advpl-tlpp — TLPP (TOTVS Language Plus Productive)

**TLPP** é a evolução moderna do ADVPL lançada pela TOTVS para suportar paradigmas atuais: orientação a objetos completa, namespaces, annotations, exceções estruturadas, JSON nativo, reflection. Coexiste com ADVPL no mesmo RPO/tlpp.rpo — código TLPP chama ADVPL e vice-versa.

## Quando usar

- Edit/criação de arquivos `.tlpp` ou `.th` (header TLPP).
- Endpoints REST com annotations (`@Get`, `@Post`, `@Put`, `@Delete`).
- Classes com herança, interfaces, modificadores de acesso (`public`/`protected`/`private`).
- Testes unitários com PROBAT (`@Test`, `@Before`, `@After`).
- Migração ADVPL → TLPP.
- Uso de `JsonObject`, `try`/`catch`/`finally`, `throw`.

## Extensões e includes

- `.tlpp` — fonte TLPP (compilado para `tlpp.rpo`).
- `.th` — header TLPP (substitui `.ch` do ADVPL).
- Includes essenciais:
  - `#include "tlpp-core.th"` — features básicas (try/catch, JsonObject, annotations).
  - `#include "tlpp-rest.th"` — annotations REST.
  - `#include "tlpp-object.th"` — classes/interfaces.

## Tipagem opcional e parâmetros nomeados

```tlpp
function processOrder(string cNumero, numeric nValor := 0.00, boolean lEmite := .T.) as logical
    return .T.
endfunction
```

Tipos: `string`, `numeric`, `boolean`, `date`, `array`, `object`, `codeblock`, `json`, `character`, `logical`.

## Namespaces

```tlpp
namespace custom.mvc.customer

class Customer
    public data cCodigo as string
    method New() constructor
    method save() as logical
endclass
```

`using namespace custom.mvc.customer` no consumidor. Convenção: minúsculo, dot-separated, começa pelo cliente.

## Orientação a objetos completa

```tlpp
class Vehicle
    public  data cPlate    as string
    private data nMileage  as numeric
    protected data dService as date

    public method New(cPlate) constructor
    public method getInfo() as string
    protected method updateService(dDate) as logical
endclass

method New(cPlate) class Vehicle
    self:cPlate := cPlate
endmethod

method getInfo() class Vehicle
return "Vehicle: " + self::cPlate
```

- Herança: `class Car from Vehicle`.
- Interfaces: `interface IPrintable` + `class Foo implements IPrintable`.
- Métodos estáticos: `static method utility() class Foo`.

## Annotations

```tlpp
@Get(endpoint="/v1/customer/:id", description="Get customer by id")
@Auth(roles="admin,seller")
user function getCustomer()
    local cId := oRest:GetUrlParam("id")
    // ...
return .T.
```

Annotations customizadas via reflection:

```tlpp
@MyAnnotation(value="x")
function foo()
    // descobrível via FwReflection
endfunction
```

## REST moderno (FWRest)

```tlpp
namespace custom.api.customer
using namespace tlpp.web

class CustomerApi from FWRest
    @Get(endpoint="/v1/customers")
    method list() as json

    @Post(endpoint="/v1/customers")
    method create() as json
endclass
```

Resposta JSON nativa, sem `oRest:SetResponse(cString)` manual.

## try/catch/finally + throw

```tlpp
try
    if Empty(cId)
        throw ErrorClass():New("400", "ID obrigatório")
    endif
    // ...
catch oErr
    conout("Erro: " + oErr:getDescription())
    oRest:SetStatusCode(500)

From replybr/plugadvpl, MIT.

More from replybr/plugadvpl

Signals

Stars
0
Forks
5
Open issues
0
Last commit (this folder)
May 11, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from replybr

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get advpl-tlpp running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying advpl-tlpp?

CallGet help
Cite this page

advpl-tlpp skill. Agent Mart. https://agentmart.dev/skills/replybr-advpl-tlpp (last updated 2026-10-24)