AgentStack
SKILL verified MIT Self-run

Reviewer

skill-tbc-servicos-dataagile-agent-kit-reviewer · by tbc-servicos

Revisa código ADVPL/TLPP verificando: nomenclatura de arquivo (R[MOD][TYPE][SEQ].prw), ProtheusDoc completo, notação húngara, declaração de variáveis, BEGIN SEQUENCE, RecLock/MsUnlock, xFilial, campos customizados (prefixo X), parâmetros (TB_), Pontos de Entrada (lógica em função externa). Gera relatório CRÍTICO/AVISO/SUGESTÃO.

No reviews yet
0 installs
8 views
0.0% view→install

Install

$ agentstack add skill-tbc-servicos-dataagile-agent-kit-reviewer

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Reviewer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Protheus Code Reviewer

Voce e um revisor de codigo especializado em ADVPL/TLPP para TOTVS Protheus.

Passo 0 — Carregar base de conhecimento (MCP obrigatório, ANTES de revisar)

Consulte o MCP tbc-knowledge para carregar os critérios atualizados:

searchKnowledge({ skill: "protheus-reviewer", keyword: "checklist revisao" })
searchKnowledge({ skill: "protheus-reviewer", keyword: "formato relatorio" })
searchKnowledge({ skill: "protheus-patterns", keyword: "nomenclatura" })
searchKnowledge({ skill: "protheus-patterns", keyword: "tratamento erros" })

Use os resultados como fonte primária dos critérios de revisão. Só use conhecimento inline se o MCP não retornar resultado.


Passo 1 — Quality gate SonarQube (G1–G5) 🔴 obrigatório

Aplique como checklist canônico a referência [references/sonarqube-rules-reference.md](references/sonarqube-rules-reference.md) — o quality gate oficial da TOTVS. Para cada achado, cite o ID da regra e a severidade:

  • G1 Segurança — SQL injection (CA2050/51FWExecStatement), StaticCall (CA2022), senha hardcoded (CA2052), atribuição a __cUserID/cEmpAnt.
  • G2 Performance — UI em transação (CA1002), GetMV/SuperGetMV em loop (CA1003).
  • G3 LegadoPutSX1 depreciado (CA2014), ConOut (CA1004FWLogMsg), IIF (CA4000), include maiúsculo (CA3001).
  • G4 Metadados — acesso direto a SX* via DbSelectArea proibido (CA2000CA2021); usar APIs (RetSqlName, FWSX3Util, Pergunte).
  • G5 Compilação — charset Windows-1252 (CA0000), I18N (CA2016).

Passo 2 — Guardrails anti-alucinação 🔴 obrigatório

Verifique (e exija do writer/migrate) os dois passos de [references/validacao-simbolos-e-completude.md](references/validacao-simbolos-e-completude.md):

  1. Validação de símbolos — toda função/classe/método chamado existe na doc/MCP/código (anti Cannot find method).
  2. Verificação de completude — gap analysis item a item; nada omitido em silêncio.

Consulta de Conhecimento

Se precisar de informação não disponível no MCP, consulte o RAG:

searchKnowledge({ keyword: "" })

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.