/plugadvpl:edit-prw
CommunitySafely edit cp1252 .prw with Claude.
System Documentation
What problem does it solve?
It prevents accented characters from being corrupted when editing TOTVS ADVPL/TLPP .prw files encoded in cp1252 using Claude Code Read/Edit, which operate as UTF-8 only.
Core Features & Use Cases
- Safe stage/commit workflow for cp1252: Converts
.prwcp1252 → UTF-8 for Claude editing, then converts UTF-8 → cp1252 for compilation, preserving accents via a.bakround-trip strategy. - Encoding diagnostics: Detects whether a file matches the expected encoding and fails fast on mismatch using
check. - Editing without destructive writes: Lets you view staged content as UTF-8 via
opento verify before committing.
Use case: You need to refactor a .prw file like Customizados/LJ7016_PE.PRW containing accented strings; you stage it for Claude, perform edits, and then commit so the original cp1252 byte-level accents are restored for successful compilation.
Quick Start
Use the command plugadvpl edit-prw stage <fonte.prw> before asking the AI to read/edit the file, then finish with plugadvpl edit-prw commit <fonte.prw> after the changes.
Dependency Matrix
Required Modules
None requiredComponents
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: /plugadvpl:edit-prw Download link: https://github.com/JoniPraia/plugadvpl/archive/main.zip#plugadvpl-edit-prw Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.