advpl-code-generation

Generate ADVPL and TLPP code structures for TOTVS Protheus development.

176|37|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/thalysjuvenal/advpl-specialist --skill advpl-code-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: advpl-code-generation
Source: https://github.com/thalysjuvenal/advpl-specialist/tree/main/skills/advpl-code-generation
Command: npx skills add https://github.com/thalysjuvenal/advpl-specialist --skill advpl-code-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of ADVPL and TLPP code for TOTVS Protheus, significantly speeding up development and ensuring adherence to best practices.

Core Features & Use Cases

  • Code Generation: Create User Functions, TLPP classes, MVC structures, REST APIs, Web Services, and entry points.
  • Standardization: Enforces naming conventions and mandatory structures for cleaner, maintainable code.
  • Use Case: Generate a new User Function for the Faturamento module (FAT) named FATA050 with a single command, ensuring it follows the standard ADVPL structure.

Quick Start

Generate a new ADVPL function named FATA050 for the FAT module.

Frequently Asked Questions about advpl-code-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate ADVPL code for TOTVS Protheus?

To generate ADVPL code, provide a command specifying the function name and module, such as generating a new ADVPL function for the FAT module. This produces standardized code snippets following predefined templates and best practices.

What's the best way to create TLPP classes for Protheus?

Creating TLPP classes is handled by requesting the specific class structure from the generator. It enforces mandatory structures and naming conventions to ensure the TLPP code remains clean and maintainable.

Can I generate MVC structures and REST APIs in ADVPL?

Yes, you can generate MVC structures and REST APIs in ADVPL. The generation process covers these patterns alongside Web Services and entry points, enforcing standard structures for efficient development.

Why should I use an ADVPL code generator instead of writing manually?

Using an ADVPL code generator automates the creation of standard structures, significantly speeding up development. It ensures adherence to best practices and enforces mandatory naming conventions for maintainable code.

Does ADVPL code generation work for specific Protheus modules like Faturamento?

Yes, ADVPL code generation works for specific Protheus modules like Faturamento. You can generate a User Function for the FAT module with a single command, ensuring it follows the standard ADVPL structure.