advpr
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
> /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.
/diagnoseContext preview
What this command does when you run it.
Diagnose errors and problems in ADVPL/TLPP code - compilation errors, runtime errors, performance issues, and log analysis
description: Diagnose errors and problems in ADVPL/TLPP code - compilation errors, runtime errors, performance issues, and log analysis allowed-tools: Read, Glob, Grep, Bash, Agent, WebSearch, WebFetch argument-hint: "<file|error-message> [--log logfile]"
**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.
Diagnose and resolve ADVPL/TLPP errors and problems.
/advpl-specialist:diagnose <target> [options]
| Mode | Input | What It Does | |------|-------|-------------| | File analysis | Path to .prw/.tlpp file | Scans code for potential issues | | Error diagnosis | Error message in quotes | Identifies cause and suggests fix | | Log analysis | --log flag with log file path | Parses log for errors and patterns |
| Flag | Description | |------|------------| | `--log` | Path to Protheus log file for analysis | | `--verbose` | Show detailed diagnosis with explanations |
1. **Identify mode** - File path, error message, or log file 2. **Load debugging reference** - Read `skills/advpl-debugging/reference.md` 3. **Analyze input:**
4. **Report findings** - Clear explanation with severity levels 5. **Suggest fixes** - Specific code changes with examples 6. **Preventive advice** - How to avoid similar issues
# Analyze a source file for issues /advpl-specialist:diagnose src/FATA001.prw # Diagnose a specific error message /advpl-specialist:diagnose "THREAD ERROR ([55889]) Variable does not exist: cCodCli" # Analyze a Protheus log file /advpl-specialist:diagnose --log /var/protheus/console.log # Verbose diagnosis with full explanations /advpl-specialist:diagnose src/FATA001.prw --verbose
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,…
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
Migrate ADVPL procedural code to TLPP object-oriented code with classes, namespaces, and modern patterns