About advpl-code-review
A code review skill for existing ADVPL and TLPP projects, aimed at developers assessing quality, security, performance, and modernization. Findings include rule IDs, severity, location, issue details, and suggested fixes, with optional mapping to the TOTVS SonarQube quality gate.
Key features
- 01Best-practice checks
- 02Performance and security reviews
- 03Modernization assessment
- 04Rule IDs and severity levels
- 05TOTVS SonarQube rule mapping
Use cases
- 01Reviewing changes before a merge
- 02Checking code before deployment
- 03Auditing a codebase during onboarding
- 04Assessing readiness for TLPP migration
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ thalysjuvenal/ advpl-specialist --skill advpl-code-reviewAfter installing, type/advpl-code-reviewin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
reference.mdrules-best-practices.mdrules-modernization.mdrules-performance.mdrules-security.mdsonarqube-rules-catalog.mdDetails
From the project READMEADVPL/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 file | Read when |
|---|---|
| reference.md | Always -- review categories, output format, severity levels, review process, rule ID prefixes |
| rules-best-practices.md | Checking RecLock/MsUnlock pairing, variable scope, area management, error handling, documentation (BP-* rules) |
| rules-performance.md | Checking Embedded SQL efficiency, loop efficiency, string operations, index usage (PERF-* rules) |
| rules-security.md | Checking SQL injection, input validation, credential exposure, sensitive data logging (SEC-* rules) |
| rules-modernization.md | Checking TLPP migration candidates, namespace usage, OOP patterns, modern UI frameworks (MOD-* rules) |
| sonarqube-rules-catalog.md | Aligning findings with the official TOTVS SonarQube ruleset (groups G1-G5, CA/BG/CS codes) |