/review
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.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/review
Context preview
What this command does when you run it.
Review ADVPL/TLPP code for best practices, performance, security, and modernization
Command definition
review.mddescription: 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.
/advpl-specialist:review
Review ADVPL/TLPP code for best practices, performance, security, and modernization opportunities.
Usage
/advpl-specialist:review <target> [--focus category]
Focus Categories
| 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) |
Process
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
Examples
# 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
Output
- Findings grouped by file and severity (CRITICAL, WARNING, INFO)
- Each finding includes: rule ID, file:line reference, current code, suggested fix, and explanation
- Summary table with counts per category and severity
- Actionable recommendations prioritized by impact
Read more
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.
/advpl-specialist:review
Review ADVPL/TLPP code for best practices, performance, security, and modernization opportunities.
Usage
/advpl-specialist:review <target> [--focus category]
Focus Categories
| 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) |
Process
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
Examples
# 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
Output
- Findings grouped by file and severity (CRITICAL, WARNING, INFO)
- Each finding includes: rule ID, file:line reference, current code, suggested fix, and explanation
- Summary table with counts per category and severity
- Actionable recommendations prioritized by impact
Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:
Other commands on advpl-specialist.
- /advpr
Gera scripts de automação de testes ADVPR (Advanced Protheus Robot) - TestSuite, TestGroup, TestCase para rotinas MVC, ExecAuto, relatórios, processamento, webservice, Smart View, TOTVS Message e SmartLink
Open command - /diagnose
Diagnose errors and problems in ADVPL/TLPP code - compilation errors, runtime errors, performance issues, and log analysis
Open command - /docs
Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference
Open command - /document
Generate technical documentation from ADVPL/TLPP source code - Protheus.doc headers, routine docs, API docs
Open command - /explain
Explain ADVPL/TLPP code in plain language for developers and functional consultants
Open command - /generate
Generate ADVPL/TLPP code - functions, classes, MVC structures, REST APIs, Web Services, and entry points for TOTVS Protheus
Open command

