Skip to content
Development
Command

/review

Review ADVPL/TLPP code for best practices, performance, security, and modernization

From plugin
advpl-specialist
17613 skills10 agents13 commands2 hooks
Install
> /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.md
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
Read more
Ships withadvpl-specialist

Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:

Get the whole plugin