๐Ÿ› ๏ธ
QualityShell

ADVPL Refactoring

by thalysjuvenal

ADVPL Refactoring is a Quality skill for Claude Code, published by thalysjuvenal in advpl-specialist.

186 stars37 forkson thalysjuvenal/advpl-specialistAdded 2026/09/06+1% in starsRepository updated 2026/08/21
advpladvpl-projetosadvprclaude-codedevopsiaorientacao-a-objetosprotheussmartxsqltdntirtlpptotvstotvs-protheus
Install in seconds
Install ADVPL Refactoring
Copy ADVPL Refactoring into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/thalysjuvenal/advpl-specialist/tree/main/skills/advpl-refactoring ~/.claude/skills/advpl-refactoring

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/thalysjuvenal/advpl-specialist.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
skills/advpl-refactoring/SKILL.md in thalysjuvenal/advpl-specialist
Installs to
~/.claude/skills/advpl-refactoring
Collection
One of 18 skills cataloged from this repository
Category
Quality โ€” 1745 skills

What ADVPL Refactoring does

ADVPL Refactoring helps restructure existing ADVPL/TLPP code without changing behavior. Use it to extract long functions, simplify nested conditionals, remove dead code, improve naming, and reduce duplication or parameter bloat.

ADVPL Refactoring is cataloged under Quality on DirSkills. ADVPL Refactoring comes from a repository tagged advpl, advpl-projetos, advpr, claude-code and devops.

Documentation

README

ADVPL/TLPP Refactoring

This skill defines safe refactoring patterns (RF-001 through RF-006) for improving ADVPL/TLPP code structure without altering behavior: extract function, simplify conditionals with guard clauses, remove dead code, improve naming to Hungarian notation, eliminate duplication, and reduce function parameter count. It also defines the mandatory process -- analyze, prioritize, present a before/after plan, wait for user approval, apply one change at a time, verify -- and hard safety rules (never change business logic, never rename externally-used symbols without a caller check).

This is the opening of the README. Read the full README on GitHub.

Frequently asked about ADVPL Refactoring

  • What else does thalysjuvenal publish alongside ADVPL Refactoring?

    ADVPL Refactoring is one of 18 skills that DirSkills catalogs from thalysjuvenal/advpl-specialist, the repository it ships in. Its siblings there include ADVPL Code Generation, ADVPL Code Review and ADVPL Debugging. Each one is a separate skill with its own page in this directory, installs the same way ADVPL Refactoring does, and is maintained by thalysjuvenal in that same repository. The rest of the collection is listed on the thalysjuvenal/advpl-specialist page.

  • How does ADVPL Refactoring compare to other Quality skills?

    ADVPL Refactoring ranks #1638 by stars among the 1745 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of ADVPL Refactoring against them. Open each page to compare what they document and how they install.

More from thalysjuvenal/advpl-specialist

ADVPL Refactoring is one of 18 skills cataloged on DirSkills from thalysjuvenal/advpl-specialist.

See all 18 skills โ†’
๐Ÿงฉ
5h ago

ADVPL Code Generation

ADVPL Code Generation generates new ADVPL and TLPP code for TOTVS Protheus, including functions, classes, MVC screens, REST/SOAP services, reports, jobs, and workflows. Use it when creating new .prw or .tlpp files with required naming and structure rules.
AI Engineering
18637
๐Ÿ”
5h ago

ADVPL Code Review

ADVPL Code Review inspects existing ADVPL/TLPP code for best practices, performance, security, and modernization issues. Use it before merge or deploy, or when checking TLPP migration readiness and TOTVS SonarQube rule alignment.
Quality
18637
๐Ÿž
5h ago

ADVPL Debugging

ADVPL Debugging helps diagnose and fix ADVPL/TLPP errors in TOTVS Protheus, including compilation failures, runtime exceptions, locks, slow routines, and AppServer log analysis. Use it when you have an error message, stack trace, or failing routine to investigate.
Quality
18637
๐Ÿ› ๏ธ
5h ago

ADVPL To TLPP Migration

ADVPL To TLPP Migration converts legacy ADVPL procedural routines into TLPP classes for TOTVS Protheus. Use it when migrating User Functions and Static Functions to namespaced classes while preserving backward-compatible wrappers.
AI Engineering
18637
๐Ÿงช
5h ago

ADVPR Test Automation

ADVPR Test Automation helps write, run, and troubleshoot automated regression tests for TOTVS Protheus routines with ADVPR. It covers FWTestHelper, TestSuite setup, headless execution, routine preparation, and common patterns like MVC, ExecAuto, reports, webservices, SmartLink, and Smart View.
Quality
18637
๐Ÿ“
5h ago

Changelog Patterns

Changelog Patterns analyzes ADVPL/TLPP diffs or changed-file lists to generate structured changelogs and delivery notes. It classifies changes, estimates business impact, and detects affected database tables for TOTVS Protheus work.
Writing
18637