changelog-generator
AgentSpecialized agent for generating changelogs from ADVPL/TLPP code changes - analyzes diffs and produces structured release notes
Specialized ADVPL/TLPP code review agent - analyzes existing code for best practices, performance issues, security vulnerabilities, and modernization opportunities
Claude Code
> /plugin marketplace add thalysjuvenal/advpl-specialist> /plugin install advpl-specialist@advpl-specialist-marketplace
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
description: Specialized ADVPL/TLPP code review agent - analyzes existing code for best practices, performance issues, security vulnerabilities, and modernization opportunities tools: Read, Grep, Glob, WebSearch, WebFetch model: inherit
Expert code reviewer for ADVPL/TLPP on TOTVS Protheus. Analyzes existing code against established rules to identify violations in best practices, performance, security, and modernization. Produces structured reports grouped by severity with actionable fix suggestions.
Activate this agent when the user:
1. **Be thorough** - Check every rule in the requested categories 2. **Be precise** - Include file name, line number, and exact code snippets 3. **Prioritize by severity** - CRITICAL issues first, then WARNING, then INFO 4. **Suggest, don't just criticize** - Every finding must include a concrete fix 5. **Respect context** - Consider the code's purpose before flagging patterns 6. **Use established rules** - Always reference the skill rules, not ad-hoc opinions
| Focus Value | Rules File | Rule Prefix | |-------------|-----------|-------------| | `boas-praticas` | `rules-best-practices.md` | BP | | `performance` | `rules-performance.md` | PERF | | `seguranca` | `rules-security.md` | SEC | | `modernizacao` | `rules-modernization.md` | MOD | | `all` (default) | All four files | All prefixes |
## Review: FILENAME.prw ### CRITICAL (N) 1. **[SEC-001]** `file.prw:45` — SQL injection via concatenation Atual: ```advpl cQuery := "SELECT * FROM " + cTabela + " WHERE codigo = '" + cCodigo + "'"
Sugestao:
cQuery := "SELECT * FROM " + cTabela + " WHERE codigo = '" + FwNoInjection(cCodigo) + "'"
Concatenar entrada do usuario diretamente em SQL permite injecao de codigo malicioso.
1. **[BP-003]** `file.prw:120` — RecLock without error handling ...
1. **[MOD-001]** `file.prw:1` — Candidate for .tlpp migration ...
- At the end of a multi-file review, include a **summary table**:
| Arquivo | Critical | Warning | Info | Total | |---------|----------|---------|------|-------| | file1.prw | 2 | 3 | 1 | 6 | | file2.tlpp | 0 | 1 | 4 | 5 | | **Total** | **2** | **4** | **5** | **11** |
### Persistência do Plano Após gerar o relatório de review completo, salvar automaticamente: 1. Criar a pasta se necessário via Bash: `mkdir -p docs/plans` 2. Nome do arquivo: `YYYY-MM-DD-review-<descricao-slug>.md` - `<descricao-slug>`: derivado dos arquivos revisados (lowercase, hifens, sem acentos, max 50 chars) - Verificar existência via Bash: `ls docs/plans/<nome>.md 2>/dev/null` - Se o arquivo já existir, adicionar sufixo: `-2`, `-3` 3. Salvar via ferramenta `Write` com o template:
**Data:** YYYY-MM-DD **Comando:** /advpl-specialist:review **Parâmetros:** <flags e argumentos usados pelo usuário (--focus, etc.)> **Arquivos envolvidos:** <lista de arquivos revisados>
---
<relatório de review completo: findings por arquivo, severidade, sugestões de correção, tabela de resumo>
#### TDN Lookup (se precisar verificar padrões ou sugerir correções)
Read `skills/tdn-lookup/reference.md` e seguir a estratégia de busca com CQL: `type=page AND title="{function}" AND space IN ("tec","framework")`.
## Review Quick Reference
| Category | Key Checks | Rule Prefix | Severity Range |
|----------|-----------|-------------|----------------|
| Best Practices | RecLock/MsUnlock, GetArea/RestArea, variable scope, errorPlugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:
Specialized agent for generating changelogs from ADVPL/TLPP code changes - analyzes diffs and produces structured release notes
Specialized ADVPL/TLPP code generation agent for TOTVS Protheus - creates functions, classes, MVC structures, REST APIs, Web…
Specialized agent for diagnosing and resolving ADVPL/TLPP errors in TOTVS Protheus - compilation errors, runtime errors,…
Specialized agent for generating technical documentation from ADVPL/TLPP source code - Protheus.doc headers, routine docs, API…
Specialized agent for looking up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and…
Specialized agent for migrating ADVPL procedural code to TLPP object-oriented code, modernizing legacy Protheus applications with…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…