advpl-code-generation
Use when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions,…
Use when the user needs to understand a TOTVS Protheus ERP business process, module workflow, or cross-module integration -- covering Compras (COM), Estoque (EST), Faturamento (FAT), Financeiro (FIN), Contabilidade (CTB), Fiscal (FIS), PCP, and Manutencao de Ativos (MNT),
Claude Code
$ npx -y skills add thalysjuvenal/advpl-specialist --skill protheus-business --agent claude-code
Codex
$ npx skills add thalysjuvenal/advpl-specialist --skill protheus-business -a codex -y
Cursor
$ npx skills add thalysjuvenal/advpl-specialist --skill protheus-business -a cursor -y
Gemini CLI
$ npx skills add thalysjuvenal/advpl-specialist --skill protheus-business -a gemini-cli -y
GitHub Copilot
$ npx skills add thalysjuvenal/advpl-specialist --skill protheus-business -a github-copilot -y
OpenCode
$ npx skills add thalysjuvenal/advpl-specialist --skill protheus-business -a opencode -y
Windsurf
$ npx skills add thalysjuvenal/advpl-specialist --skill protheus-business -a windsurf -y
name: protheus-business description: Use when the user needs to understand a TOTVS Protheus ERP business process, module workflow, or cross-module integration -- covering Compras (COM), Estoque (EST), Faturamento (FAT), Financeiro (FIN), Contabilidade (CTB), Fiscal (FIS), PCP, and Manutencao de Ativos (MNT), including their main routines (e.g. MATA110, MATA460), tables/fields, and business rules. Also triggers on Portuguese phrasing like "processo de negocio", "modulo de compras/estoque/faturamento/financeiro/fiscal/contabilidade/pcp/manutencao", "como funciona o ciclo de compras", or questions about integration between modules.
This skill is a reference guide for TOTVS Protheus ERP business processes across eight modules: Compras, Estoque, Faturamento, Financeiro, Contabilidade, Fiscal, PCP, and Manutencao de Ativos. For each module it documents the main tables and fields, the key routines (e.g. MATA110, MATA460, MATA103), step-by-step business flows, and how the module integrates with others.
Activate this skill when the user asks how a business process works, which tables/fields a routine touches, or how two modules integrate (e.g. Compras feeding Estoque and Financeiro). Look up the module first in the local reference files; if the answer isn't found locally, fall back to a TDN web search as described in the lookup strategy.
It does not cover native function syntax (see `protheus-reference`), writing the SQL to query these tables (see `embedded-sql`), or generating/reviewing code that implements these processes (see `advpl-code-generation`, `advpl-code-review`).
| Reference file | Read when | |---|---| | reference.md | Always -- module index, lookup strategy (local first, then TDN), and response format per query type | | modulo-compras.md | Questions about Compras (COM): solicitacoes, cotacoes, pedidos de compra, liberacao, entrada de NF | | modulo-estoque.md | Questions about Estoque (EST): movimentacoes, saldos, armazens, inventario | | modulo-faturamento.md | Questions about Faturamento (FAT): pedidos de venda, notas fiscais de saida, faturamento | | modulo-financeiro.md | Questions about Financeiro (FIN): titulos a pagar/receber, baixas, fluxo de caixa | | modulo-contabilidade.md | Questions about Contabilidade (CTB): lancamentos contabeis, plano de contas, integracao contabil | | modulo-fiscal.md | Questions about Fiscal (FIS): apuracao de impostos, SPED, documentos fiscais | | modulo-pcp.md | Questions about PCP: ordens de producao, estrutura de produtos, MRP | | modulo-manutencao.md | Questions about Manutencao de Ativos (MNT): ordens de manutencao, ativos, planos de manutencao |
Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:
Use when the user asks to generate, create, or scaffold ADVPL/TLPP code for TOTVS Protheus -- User Functions, Static Functions,…
Use when the user asks to review, audit, or check the quality of ADVPL/TLPP code for TOTVS Protheus before merge or deploy --…
Use when the user asks to debug, diagnose, or fix an ADVPL/TLPP error on TOTVS Protheus -- compilation errors (syntax, missing…
Use when the user asks to refactor, clean up, or restructure existing ADVPL/TLPP code on TOTVS Protheus without changing its…
Use when the user asks to migrate, convert, compatibilize, or modernize legacy ADVPL procedural code to TLPP object-oriented…
Use when the user wants to write, run, or troubleshoot automated regression tests for Protheus routines with ADVPR (Advanced…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.