advpr
Gera scripts de automação de testes ADVPR (Advanced Protheus Robot) - TestSuite, TestGroup, TestCase para rotinas MVC, ExecAuto, relatórios, processamento,…
Review ADVPL/TLPP code for best practices, performance, security, and modernization
> /plugin marketplace add thalysjuvenal/advpl-specialist > /plugin install advpl-specialist@advpl-specialist-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/reviewContext preview
What this command does when you run it.
Review ADVPL/TLPP code for best practices, performance, security, and modernization
description: Review ADVPL/TLPP code for best practices, performance, security, and modernization allowed-tools: Read, Glob, Grep, Bash, Agent, WebSearch, WebFetch argument-hint: "<file|directory> [--focus category]"
**IMPORTANT:** Always respond in the same language the user is writing in. If the user writes in Portuguese, respond in Portuguese. If in English, respond in English. Adapt all explanations, error descriptions, and suggestions to the user's language. Code comments may remain in English or match the user's language.
Review ADVPL/TLPP code for best practices, performance, security, and modernization opportunities.
/advpl-specialist:review <target> [--focus category]
| Focus | Description | |-------|------------| | `boas-praticas` | Best practices: variables, locks, error handling, naming | | `performance` | Performance: queries, loops, indexing | | `seguranca` | Security: SQL injection, input validation, credentials | | `modernizacao` | Modernization: ADVPL→TLPP, legacy patterns | | `all` | All categories (default) |
1. **Parse arguments** - Identify target file(s) and optional `--focus` category 2. **Load review reference** - Read `skills/advpl-code-review/reference.md` and read relevant rules files 3. **Delegate to code-reviewer agent** - Pass targets and focus to the code-reviewer agent for systematic analysis 4. **Present findings** - Structured report grouped by severity with actionable fix suggestions
# Review a single source file (all categories) /advpl-specialist:review src/FATA001.prw # Review an entire directory focusing on performance /advpl-specialist:review src/ --focus performance # Review REST endpoints for security issues /advpl-specialist:review src/REST/*.tlpp --focus seguranca # Review current directory for modernization opportunities /advpl-specialist:review . --focus modernizacao # Review specific files for best practices /advpl-specialist:review src/MATA010.prw --focus boas-praticas
Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:
Gera scripts de automação de testes ADVPR (Advanced Protheus Robot) - TestSuite, TestGroup, TestCase para rotinas MVC, ExecAuto, relatórios, processamento,…
Diagnose errors and problems in ADVPL/TLPP code - compilation errors, runtime errors, performance issues, and log analysis
Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference
Generate technical documentation from ADVPL/TLPP source code - Protheus.doc headers, routine docs, API docs
Explain ADVPL/TLPP code in plain language for developers and functional consultants
Generate ADVPL/TLPP code - functions, classes, MVC structures, REST APIs, Web Services, and entry points for TOTVS Protheus