Text encoding

From ModalityDance/PalmClaw · View interactive version

Text encoding is an AI agent skill from the GitHub repository ModalityDance/PalmClaw. Safely inspect and edit Chinese text resources, translation tables, and UI copy without introducing encoding corruption. Use when touching UiPreferences.kt, localized strings, SKILL.md text, README translations, or when terminal output looks garbled.

How to use this skill

Skill file

Text Encoding

Use this skill whenever work involves Chinese copy or when terminal output suggests possible mojibake.

Rules

Verification Workflow

  1. If console output looks garbled, read the file again with explicit UTF-8.
  2. Compare the actual file content, not the terminal rendering.
  3. If the file is truly corrupted, restore from a known-good git revision instead of hand-fixing large mojibake blocks.
  4. After edits, re-read the changed file as UTF-8 and spot-check the exact strings that were touched.

Preferred Recovery

Translation Table Policy

Red Flags

Done Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.