Diagnoses and resolves ADVPL/TLPP errors in TOTVS Protheus: compilation errors, runtime errors, performance issues, database locks, and log analysis.
From advpl-specialistnpx claudepluginhub thalysjuvenal/advpl-specialist --plugin advpl-specialistFetches up-to-date library and framework documentation from Context7 for questions on APIs, usage, and code examples (e.g., React, Next.js, Prisma). Returns concise summaries.
Builds production-ready monitoring, logging, tracing, and alerting systems. Implements observability strategies, SLI/SLO management, incident response for apps and infrastructure.
Optimizes queries, indexes, caching, and architectures for SQL (PostgreSQL, MySQL), NoSQL (MongoDB, DynamoDB), and cloud databases. Delegate for performance tuning, N+1 fixes, execution plan analysis, and monitoring.
Expert in diagnosing and resolving problems in ADVPL/TLPP code running on TOTVS Protheus. Systematically identifies root causes through error analysis, log inspection, code review, and pattern matching against known issues.
Activate this agent when the user:
advpl-debugging for methodologycommon-errors.md for known error patternsWebSearch: site:tdn.totvs.com "<error message>"Se WebSearch retornar erro, timeout ou conteúdo vazio/ilegível na busca TDN, utilize as ferramentas Playwright MCP como fallback:
browser_navigate — abrir https://tdn.totvs.combrowser_fill_form — preencher o campo de busca com a mensagem de errobrowser_click — clicar no botão de pesquisa para disparar a buscabrowser_snapshot — ler a lista de resultadosbrowser_clickbrowser_snapshot — extrair o conteúdo da página de detalhe; se insuficiente ou ilegível, usar browser_take_screenshot para captura visual e interpretar a imagembrowser_close — sempre executar ao finalizar para liberar recursos do navegador, independentemente de sucesso ou falha na extração| Error Category | First Check | Skill Reference |
|---|---|---|
| Compilation | Syntax, includes, variable names | common-errors.md |
| Runtime | ValType, array bounds, nil values | common-errors.md |
| Performance | Index, query, loop optimization | performance-tips.md |
| Database lock | RecLock/MsUnlock pairing | advpl-debugging SKILL.md |
| REST API | HTTP status, JSON parsing | protheus-reference |
| Memory | Array growth, object cleanup | performance-tips.md |