Agent skill

Advpl Code Generation

by thalysjuvenal in thalysjuvenal/advpl-specialist

A skill your agent uses when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions, TLPP classes, MVC (Model/View/Controller), REST…

MITAuto-check passedBackend & APIs

Install Advpl Code Generation

skills CLI
$ npx skills add thalysjuvenal/advpl-specialist --skill advpl-code-generation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install thalysjuvenal/advpl-specialist advpl-code-generation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/thalysjuvenal/advpl-specialist.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/advpl-code-generation .claude/skills/advpl-code-generation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
advpl-code-generation
GitHub stars
186
Token cost
~749 tokens
SKILL.md length
271 words
Files
14
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions, TLPP classes, MVC (Model/View/Controller), REST…

  • The user asks to generate
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions
  • Static Functions

What it does

Advpl Code Generation is an agent skill from thalysjuvenal/advpl-specialist. Use when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions, TLPP classes, MVC (Model/View/Controller), REST APIs, SOAP web services, entry points (pontos de entrada), TReport/FWMsPrinter reports, jobs, or workflows. Also triggers on Portuguese phrasing like "gerar codigo", "criar rotina", "criar fonte", "novo ponto de entrada", "criar classe tlpp", "gerar api rest", "criar mvc", or routine name patterns like FATA001/MATA010. Covers naming…

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files (for example `catalogo-top-50-pes.md`, `patterns-fwformbrowse.md` and `patterns-fwmsprinter.md`).

It sits in Backend & APIs, covering REST APIs. The repository describes itself as: Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento TOTVS Protheus. The licence is MIT.

When your agent uses it

  • The user asks to generate
  • Scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions
  • Static Functions
  • MVC (Model/View/Controller)

Example prompts

  • “gerar codigo”
  • “criar rotina”
  • “criar fonte”
  • “/advpl-code-generation”

What it can do on your machine

Read from SKILL.md and the folder at commit d80599b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Advpl Code Generation loads about 749 tokens when it runs. Until then it costs about 166 tokens; SKILL.md has 271 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~166
When it runs · the whole SKILL.md, loaded when a task matches
~749

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from thalysjuvenal/advpl-specialist at commit d80599b, republished under its MIT licence (© thalysjuvenal). 271 words, ~749 tokens.

Download SKILL.mdSave it as .claude/skills/advpl-code-generation/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
advpl-code-generation
description
Use when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions, TLPP classes, MVC (Model/View/Controller), REST APIs, SOAP web services, entry points (pontos de entrada), TReport/FWMsPrinter reports, jobs, or workflows. Also triggers on Portuguese phrasing like "gerar codigo", "criar rotina", "criar fonte", "novo ponto de entrada", "criar classe tlpp", "gerar api rest", "criar mvc", or routine name patterns like FATA001/MATA010. Covers naming conventions, Hungarian notation, namespace rules, identifier length limits, and mandatory User Function/error-handling structure.

ADVPL/TLPP Code Generation

This skill provides patterns, templates, and mandatory structural rules for generating new ADVPL (.prw) and TLPP (.tlpp) code for TOTVS Protheus. It covers naming conventions (module prefixes, Hungarian notation), the mandatory User Function skeleton with Protheus.doc headers and error handling, variable scope rules, TLPP namespace conventions (custom.<agrupador>.<servico>), and the 8/10/255-character identifier length limits per construct type.

Activate this skill whenever the user requests new code creation: a new function, a TLPP class, an MVC screen, a REST endpoint, a SOAP web service, an entry point, a report, a batch job, or any new .prw/.tlpp file. It does not cover reviewing existing code (see advpl-code-review), fixing errors in existing code (see advpl-debugging), improving existing code structure without adding features (see advpl-refactoring), or converting legacy .prw to .tlpp (see advpl-to-tlpp-migration).

The reference and pattern files below hold the concrete templates -- read the specific pattern file that matches the type of code being generated instead of relying on memory.

Reference fileRead when
reference.mdAlways -- overview, naming conventions, mandatory User Function structure, namespace rules, identifier length limits, common mistakes
templates-classes.mdGenerating a TLPP class (data, methods, constructor)
patterns-mvc.mdGenerating an MVC screen (ModelDef/ViewDef/MenuDef)
patterns-rest.mdGenerating a REST API endpoint (WsRestFul or TLPP @Get/@Post annotations)
patterns-soap.mdGenerating a SOAP Web Service
patterns-treport.mdGenerating a TReport-based report with embedded SQL
patterns-pontos-entrada.mdGenerating a legacy (non-MVC) entry point (ponto de entrada)
patterns-pontos-entrada-mvc.mdGenerating an MVC-based entry point
patterns-workflow.mdGenerating a Protheus workflow routine
patterns-jobs.mdGenerating a scheduled/background job
patterns-fwmsprinter.mdGenerating a coordinate-based PDF report with FWMsPrinter
patterns-fwformbrowse.mdGenerating a browse screen with FWFormBrowse
catalogo-top-50-pes.mdLooking up existing well-known entry points before creating a duplicate

© thalysjuvenal, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files in skills/advpl-code-generation of thalysjuvenal/advpl-specialist.

  • SKILL.md
  • catalogo-top-50-pes.md
  • patterns-fwformbrowse.md
  • patterns-fwmsprinter.md
  • patterns-jobs.md
  • patterns-mvc.md
  • patterns-pontos-entrada-mvc.md
  • patterns-pontos-entrada.md
  • patterns-rest.md
  • patterns-soap.md
  • patterns-treport.md
  • patterns-workflow.md
  • reference.md
  • templates-classes.md

Open the folder on GitHubat commit d80599b

Compare with similar skills

Advpl Code Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Advpl Code Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Advpl Code Generation this skillthalysjuvenal/advpl-specialist186—~749Automated safety check: PassMIT
RuView CLI, API and WASMruvnet/RuView97k—~1.2kAutomated safety check: NotesMIT
REST API Contract Reviewdecebals/claude-code-java7511 repos~2.8kAutomated safety check: PassMIT
Io Figmagridaco/grida2.7k—~2.2kAutomated safety check: NotesApache-2.0
Tabz TerminalsGGPrompts/TabzChrome147—~696Automated safety check: PassMIT
Kql ValidatorAzure/azqr795—~703Automated safety check: PassMIT

Similar skills

  • Covers the RuView `wifi-densepose` command line binary, its Axum REST API and the WebAssembly builds for browsers and ESP32, for embedding or scripting RuView.

    97k GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check: notes
  • REST API Contract Review

    decebals/claude-code-java

    Reviews REST API design for correct HTTP verbs, versioning, DTO use, consistent responses and backward compatibility before an API change ships.

    751 GitHub starsUsed in 1 repo~2.8k tokens
    Backend & APIsAuto-check passed
  • Io Figma

    gridaco/grida

    Guides work on the Figma I/O package (@grida/io-figma, packages/grida-canvas-io-figma/).

    2.7k GitHub stars~2.2k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Tabz Terminals

    GGPrompts/TabzChrome

    Spawn and manage terminal tabs via TabzChrome REST API. An agent skill from GGPrompts/TabzChrome.

    147 GitHub stars~696 tokensUpdated 11 days ago
    Backend & APIsAuto-check passed
  • Kql Validator

    Azure/azqr

    Official

    Validate KQL (Kusto Query Language) files used in Azure Quick Review (azqr) against their recommendation definitions.

    795 GitHub stars~703 tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Readme Generator Pro

    beizhi23/README-Generator-Pro

    Generate, modify, and render professional README.md files and project introduction HTML pages using the bundled README Generator Pro FastAPI application.

    113 GitHub stars~472 tokensUpdated 3 mo ago
    Backend & APIsAuto-check: notes

More from thalysjuvenal/advpl-specialist

All 19 skills in this repo
  • Advpl Code Review

    thalysjuvenal/advpl-specialist

    A skill your agent uses when the user asks to review, audit, or check the quality of ADVPL/TLPP code for TOTVS Protheus before merge or deploy -- covering best practices (RecLock/MsUnlock pairing…

    186 GitHub stars~604 tokensUpdated 24 days ago
    Auto-check passed
  • Advpl To Tlpp Migration

    thalysjuvenal/advpl-specialist

    A skill your agent uses when the user asks to migrate, convert, compatibilize, or modernize legacy ADVPL procedural code to TLPP object-oriented classes on TOTVS Protheus -- turning User…

    186 GitHub stars~592 tokensUpdated 24 days ago
    Auto-check passed
  • Advpr Test Automation

    thalysjuvenal/advpl-specialist

    A skill your agent uses when the user wants to write, run, or troubleshoot automated regression tests for Protheus routines with ADVPR (Advanced Protheus Robot) -- covering FWTestHelper API…

    186 GitHub stars~835 tokensUpdated 24 days ago
    Auto-check passed
  • Protheus Business

    thalysjuvenal/advpl-specialist

    A skill your agent uses when the user needs to understand a TOTVS Protheus ERP business process, module workflow, or cross-module integration -- covering Compras (COM), Estoque (EST), Faturamento…

    186 GitHub stars~671 tokensUpdated 24 days ago
    Auto-check passed
  • Protheus Locks Deadlocks

    thalysjuvenal/advpl-specialist

    A skill your agent uses when the user needs to understand, diagnose, or prevent Protheus record locks and deadlocks -- covering RecLock/MsUnlock/SoftLock/LockByName semantics, BeginTran/EndTran…

    186 GitHub stars~553 tokensUpdated 24 days ago
    Auto-check passed
  • Protheus Reference

    thalysjuvenal/advpl-specialist

    A skill your agent uses when the user needs to look up a TOTVS Protheus native function's syntax/parameters/return value, the SX data dictionary structure (SX1-SX9, SIX), REST API endpoint patterns…

    186 GitHub stars~621 tokensUpdated 24 days ago
    Auto-check passed

Questions about Advpl Code Generation

What does Advpl Code Generation do?

A skill your agent uses when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions, TLPP classes, MVC (Model/View/Controller), REST…. Advpl Code Generation is an agent skill from thalysjuvenal/advpl-specialist. Use when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions, TLPP classes, MVC (Model/View/Controller), REST APIs, SOAP web services, entry points (pontos de entrada), TReport/FWMsPrinter reports, jobs, or workflows.

When should I use Advpl Code Generation?

Advpl Code Generation fits situations like: the user asks to generate; scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions; static Functions; MVC (Model/View/Controller).

How do I install Advpl Code Generation in Claude Code?

Run `npx skills add thalysjuvenal/advpl-specialist --skill advpl-code-generation -a claude-code`. Or copy the skill folder (skills/advpl-code-generation in thalysjuvenal/advpl-specialist) into .claude/skills/advpl-code-generation in your project. Claude Code loads it when a task matches its description.

How do I install Advpl Code Generation in Codex?

Run `npx skills add thalysjuvenal/advpl-specialist --skill advpl-code-generation -a codex`. Or copy the skill folder (skills/advpl-code-generation in thalysjuvenal/advpl-specialist) into .agents/skills/advpl-code-generation in your project. Codex loads it when a task matches its description.

Can I use Advpl Code Generation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add thalysjuvenal/advpl-specialist --skill advpl-code-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/advpl-code-generation, .gemini/skills/advpl-code-generation, .github/skills/advpl-code-generation and .opencode/skills/advpl-code-generation in your project.

What does Advpl Code Generation need to run?

SKILL.md names no scripts, command-line tools or credentials: Advpl Code Generation is instructions for the agent only.

Does Advpl Code Generation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Advpl Code Generation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Advpl Code Generation use?

Advpl Code Generation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Advpl Code Generation use?

About 749 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Advpl Code Generation?

Skills that share tags, products or a category with Advpl Code Generation: RuView CLI, API and WASM (ruvnet/RuView, 97k stars), REST API Contract Review (decebals/claude-code-java, 751 stars), Io Figma (gridaco/grida, 2.7k stars) and Tabz Terminals (GGPrompts/TabzChrome, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Advpl Code Generation?

thalysjuvenal (a GitHub user) maintains it in thalysjuvenal/advpl-specialist, which has 186 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on September 14, 2026.

Source: thalysjuvenal/advpl-specialist on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.