advpl-refactoring

Community

Refactor ADVPL with safe, targeted patterns.

AuthorJoniPraia
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps you improve legacy ADVPL/TLPP code by identifying common refactoring opportunities and providing safe, production-focused before/after transformations.

Core Features & Use Cases

  • Six high-impact refactor patterns: DbSeek loop to embedded SQL, repeated Posicione(), hardcoded IF chains to configuration tables or central functions, AxCadastro/Modelo2/Modelo3 to MVC, string concatenation in loops to buffered arrays, and unsafe RecLock usage replaced with Begin Transaction.
  • Refactor workflow with guardrails: guidance to inspect architecture, callers, and lint findings before changing code, and to reindex + lint after changes.
  • Encoding safety for .prw (cp1252): explicit stage/commit steps to avoid UTF-8/byte corruption and compile-time failures.

Quick Start

Ask the AI: "Refatore o arquivo FATA050.prw aplicando apenas os padrões indicados pelo lint e respeitando o fluxo de stage/commit para cp1252."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: advpl-refactoring
Download link: https://github.com/JoniPraia/plugadvpl/archive/main.zip#advpl-refactoring

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.