advpl-code-generation

advpl-code-generation is a skill for Claude Code from thalysjuvenal/advpl-specialist. It costs 156 tokens per session (694 once invoked), scanned A, original, MIT.

A code-generation guide for ADVPL and TLPP, programming languages used by TOTVS Protheus business software. It provides rules and patterns for creating functions, classes, screens, web services, reports, jobs, and workflows.

In plain words
What is it for?
Use it when creating new .prw or .tlpp files, including User Functions, MVC screens, REST or SOAP services, entry points, reports, and batch jobs.
Why use it?
It helps produce new Protheus code that follows the required structure, naming rules, limits, and error-handling conventions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the advpl-specialist plugin — 18 skills, 14 commands, 2 hooks shipped together

Good fit Use it when creating new .prw or .tlpp files, including User Functions, MVC screens, REST or SOAP services, entry points, reports, and batch jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thalysjuvenal/advpl-specialist/advpl-code-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thalysjuvenal/advpl-specialist --skill advpl-code-generation
Clone the repo
git clone --depth 1 https://github.com/thalysjuvenal/advpl-specialist

Made for: Claude Code.

Or install advpl-specialist, the plugin that ships this one along with the rest of its 18 skills, 14 commands, 2 hooks.

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-code-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/thalysjuvenal/advpl-specialist/advpl-code-generation/github.svg)](https://agentmods.dev/skills/thalysjuvenal/advpl-specialist/advpl-code-generation)
Your own site
<a href="https://agentmods.dev/skills/thalysjuvenal/advpl-specialist/advpl-code-generation"><img src="https://agentmods.dev/badge/skills/thalysjuvenal/advpl-specialist/advpl-code-generation/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-code-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/thalysjuvenal/advpl-specialist/advpl-code-generation"><img src="https://agentmods.dev/badge/skills/thalysjuvenal/advpl-specialist/advpl-code-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 694 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.00156 $0.00694
Opus 5 $0.00078 $0.00347
Sonnet 5 $0.00031 $0.00139
Haiku 4.5 $0.00016 $0.00069

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

Security

Grade A, and why

advpl-code-generation 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 9d 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-code-generation/SKILL.md · 29 lines

What it actually says

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 file Read when
reference.md Always -- overview, naming conventions, mandatory User Function structure, namespace rules, identifier length limits, common mistakes
templates-classes.md Generating a TLPP class (data, methods, constructor)
patterns-mvc.md Generating an MVC screen (ModelDef/ViewDef/MenuDef)
patterns-rest.md Generating a REST API endpoint (WsRestFul or TLPP @Get/@Post annotations)
patterns-soap.md Generating a SOAP Web Service
patterns-treport.md Generating a TReport-based report with embedded SQL
patterns-pontos-entrada.md Generating a legacy (non-MVC) entry point (ponto de entrada)
patterns-pontos-entrada-mvc.md Generating an MVC-based entry point
patterns-workflow.md Generating a Protheus workflow routine
patterns-jobs.md Generating a scheduled/background job
patterns-fwmsprinter.md Generating a coordinate-based PDF report with FWMsPrinter
patterns-fwformbrowse.md Generating a browse screen with FWFormBrowse
catalogo-top-50-pes.md Looking up existing well-known entry points before creating a duplicate
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. 9d ago First seen · 29 lines · 156 tokens per session scan A b520b3e36544

Subscribe to this mod's changes

advpl-code-generation is a skill published in the GitHub repository thalysjuvenal/advpl-specialist (186 stars, last pushed 19d ago), licensed MIT. It adds 156 tokens to every session and 694 once invoked, about $0.0008 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

advpl-dev

Especialista em desenvolvimento ADVPL/TLPP para o ecossistema TOTVS Protheus. Use esta skill para auxiliar com: escrita e revisão de código ADVPL e TLPP, criação de pontos de entrada (convencional e MVC), desenvolvimento de APIs REST, consultas SQL/Embedded SQL, acesso a tabelas do Protheus, criação de classes OO…

jaylson/claude-skill-advpl · 211 tokens

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

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