What problem does it solve?
This Skill helps you refactor messy or hard-to-maintain ADVPL/TLPP code by improving structure, readability, and maintainability while preserving existing behavior.
Core Features & Use Cases
- Surgical, behavior-preserving refactoring: targets maintainability issues without “rewriting from scratch.”
- Smell-driven cleanup: addresses common problems like long functions, duplication, magic values, nested conditionals, and dead code.
- AdvPL/TLPP-specific guardrails: applies ecosystem rules such as using proper file extensions for TLPP features, replacing legacy error handling patterns, and improving scope safety (Private→Local).
- Practical refactoring workflow: emphasizes small steps, commits, and testing/verification after each change.
Quick Start
Use the refactor skill to clean up the provided ADVPL/TLPP routine by extracting functions, reducing complexity, and renaming for clarity while keeping behavior identical to the original.