agentsclimarketplace

Advpl code review

Skill thalysjuvenal/advpl-specialist/skills/advpl-code-review

Use when the user asks to review, audit, or check the quality of ADVPL/TLPP code for TOTVS Protheus before merge or deploy -- covering best practices (RecLock/MsUnlock pairing, variable scope, area management, error handling), performance bottlenecks, security vulnerabilities (SQL injection, credential exposure), and modernization opportunities (TLPP migration readiness). Also triggers on Portuguese phrasing like "revisar codigo", "revisar fonte", "auditar rotina", "checar boas praticas", "code review advpl", or requests to apply the official TOTVS SonarQube ruleset (CA/BG/CS codes).From its SKILL.md

Install
npx -y skills add thalysjuvenal/advpl-specialist --skill advpl-code-review

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.4 KB, as published. Nobody here has run it

ADVPL/TLPP Code Review

This skill provides a systematic code review methodology for existing ADVPL/TLPP code, producing findings tagged with a rule ID (BP-*, PERF-*, SEC-*, MOD-*), a severity (CRITICAL/WARNING/INFO), the file/line, the issue, and the fix. It covers four review categories: best practices, performance, security, and modernization, and can map findings to the official TOTVS SonarQube quality gate.

Activate this skill when the user wants existing code inspected for quality, compliance, security, or performance issues -- e.g. before a merge, before a deploy, during an onboarding audit, or when assessing migration readiness from .prw to .tlpp. It does not cover generating new code (see advpl-code-generation), diagnosing a specific runtime/compilation error (see advpl-debugging), restructuring code without adding features (see advpl-refactoring), or performing the actual .prw to .tlpp conversion (see advpl-to-tlpp-migration).

Reference fileRead when
reference.mdAlways -- review categories, output format, severity levels, review process, rule ID prefixes
rules-best-practices.mdChecking RecLock/MsUnlock pairing, variable scope, area management, error handling, documentation (BP-* rules)
rules-performance.mdChecking Embedded SQL efficiency, loop efficiency, string operations, index usage (PERF-* rules)
rules-security.mdChecking SQL injection, input validation, credential exposure, sensitive data logging (SEC-* rules)
rules-modernization.mdChecking TLPP migration candidates, namespace usage, OOP patterns, modern UI frameworks (MOD-* rules)
sonarqube-rules-catalog.mdAligning findings with the official TOTVS SonarQube ruleset (groups G1-G5, CA/BG/CS codes)

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.