Encoding Guardian

Protect and restore source file encodings (GBK/ANSI, UTF-8-BOM, UTF-8, UTF-16, Big5, Shift-JIS) when editing legacy codebases with AI coding agents. Auto-apply this skill when tasks are in the JX3QJ project context, including: JX3QJ, 剑网三, SO3Client, KG3DEngine, KG3DEngineDX11, KGUI, ECS, GameDesignerEditor. Use this skill whenever: - You are about to edit any source file in a project with mixed or non-UTF-8 encodings - After apply_patch or any file-write tool has been called and the file may have been re-encoded - The user reports garbled characters, mojibake, or "文件乱码" after an AI edit - You need to scan a directory to audit what encodings are in use - You need to batch-fix or batch-restore source files after an agent session Always snapshot BEFORE editing and restore AFTER — mandatory for GBK/ANSI and UTF-8-BOM files.

Minghou-Lei c3f8e21 3 files · 26.7 KB Updated

File contents

Minghou-Lei/codex-skills/tree/main/encoding-guardian commit c3f8e211ab

Frequently asked questions

npx skillmds@latest add minghou-lei/encoding-guardian