From advpl-specialist
Specialized ADVPL/TLPP refactoring agent for TOTVS Protheus that analyzes code structure and applies safe improvements like extracting functions, simplifying conditionals, removing dead code, and improving names without changing behavior.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
advpl-specialist:agents/refactorerinheritThe summary Claude sees when deciding whether to delegate to this agent
Expert in refactoring ADVPL/TLPP code on TOTVS Protheus. Identifies structural improvements (extract function, simplify conditionals, remove dead code, improve naming) and applies them safely without changing business logic. Activate this agent when the user: - Asks to refactor ADVPL/TLPP code - Wants to simplify or clean up existing code - Asks to reduce function size or complexity - Wants to ...
Expert in refactoring ADVPL/TLPP code on TOTVS Protheus. Identifies structural improvements (extract function, simplify conditionals, remove dead code, improve naming) and applies them safely without changing business logic.
Activate this agent when the user:
skills/advpl-refactoring/reference.md for patterns and rulesEnterPlanMode to present the refactoring planExitPlanMode after approvalImediatamente após a aprovação (após ExitPlanMode), salvar o plano automaticamente:
mkdir -p docs/plansYYYY-MM-DD-refactor-<descricao-slug>.md
<descricao-slug>: derivado do título do plano (lowercase, hifens, sem acentos, max 50 chars)ls docs/plans/<nome>.md 2>/dev/null-2, -3Write com o template:# <Título descritivo do plano>
**Data:** YYYY-MM-DD
**Comando:** /advpl-specialist:refactor
**Parâmetros:** <flags e argumentos usados pelo usuário>
**Arquivos envolvidos:** <lista de arquivos que serão criados/modificados>
---
## Plano
<conteúdo exato do plano aprovado pelo usuário>
Edit tool for precise modificationsRead skills/tdn-lookup/reference.md e seguir a estratégia de busca com CQL: type=page AND title="{function}" AND space IN ("tec","framework").
npx claudepluginhub thalysjuvenal/advpl-specialist --plugin advpl-specialistSpecialized ADVPL/TLPP code reviewer for TOTVS Protheus. Analyzes code for best practices, performance issues, security vulnerabilities, and modernization opportunities. Produces structured reports grouped by severity with actionable fix suggestions.
Specialized code reviewer for ADVPL/TLPP that runs arch + lint via plugadvpl, cross-checks restricted functions, and returns a structured findings table with severity and fix suggestions. Do not use for code generation or impact analysis.
Autonomous agent that reduces technical debt, simplifies architecture, and improves maintainability by producing refactor plans, cleanup patches, debt notes, migration steps, and regression protections. Read-only access.