Skip to content
Skill

Encoding

Keeps Sankhya Addon Studio source files in ISO-8859-1 and detects lost accents

Encoding is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
7
Last commit
License
MIT
Listing updated

Similar skills

About Encoding

This skill sets a strict rule for Addon Studio 2.0 projects: Java, Kotlin, XML and properties files must be stored in ISO-8859-1 (Latin-1), since the Sankhya Wildfly server and addon compiler expect it. It explains why LLM-generated UTF-8 output breaks accents at runtime and gives the XML header that must be kept.

The workflow checks the current charset with file -i before converting, and only converts files that are actually UTF-8. It also looks for the Unicode replacement character U+FFFD, which signals that an accent was already lost during an edit, and tells the agent to restore the file from git rather than convert it. Conversion commands are given for iconv on Mac and Linux and for Python 3 on Windows, plus a sample fix-encoding.sh script that detects the platform.

It expects a project that uses Addon Studio 2.0 with Java 8 and Gradle, and a shell or Python 3 available for the conversion steps. The skill notes that a Claude Code hook in the plugin handles conversion automatically after writes, so manual conversion is only needed outside that setup.

When your agent uses it

Converte e audita encoding de arquivos-fonte Sankhya (`.java`, `.xml`, `.kt`, `.properties`) para ISO-8859-1 via `iconv` ou Python. Use sempre que conteúdo gerado por LLM tiver sido salvo em UTF-8, ao auditar charset de arquivos do projeto, ao revisar arquivos com caracteres acentuados, quando acento aparece trocado/embaralhado no log, no navegador ou na tela (`Ã`, `?`, `PedidoNAo`), quando o build reclama de caractere inválido ou `unmappable character`, ao diagnosticar erros de build/runtime relacionados a charset, ou quando Sankhya exigir Latin-1.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (10 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the addon-studio plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add snk-devcenter/addon-studio
/plugin install addon-studio@snk-devcenter

Or copy only this skill to ~/.claude/skills/encoding:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/encoding &&
cp -R "$tmp/plugins/addon-studio/skills/encoding" ~/.claude/skills/encoding &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/encoding inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/encoding to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/encoding &&
cp -R "$tmp/plugins/addon-studio/skills/encoding" ~/.agents/skills/encoding &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/encoding inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/encoding to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/encoding &&
cp -R "$tmp/plugins/addon-studio/skills/encoding" ~/.cursor/skills/encoding &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/encoding inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/snk-devcenter/addon-studio.git --path plugins/addon-studio/skills/encoding

Or copy the folder to ~/.gemini/skills/encoding yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/encoding:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/encoding &&
cp -R "$tmp/plugins/addon-studio/skills/encoding" ~/.copilot/skills/encoding &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/encoding inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/snk-devcenter/addon-studio.git

Then copy addon-studio/plugins/addon-studio/skills/encoding into your agent's skills folder as encoding. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Latin-1 storage rule
Defines which file types must be saved in ISO-8859-1 and how to handle accented characters in Java and Kotlin.
Charset audit commands
Shows how to check a file's charset with file -i and convert whole project trees safely.
Lost accent detection
Finds files where accents were destroyed to U+FFFD during an edit so they can be restored from git.
XML header enforcement
Requires the ISO-8859-1 declaration in every XML file the agent creates or changes.
Cross-platform conversion
Provides iconv commands for Mac and Linux and a Python 3 fallback for Windows.

Good for

  • Convert a generated Java file from UTF-8 to ISO-8859-1
  • Audit an Addon Studio project for files with wrong charset
  • Fix accented text that shows garbled characters in a log or screen
  • Diagnose a build error about unmappable characters
  • Make sure XML data dictionary files keep the Latin-1 header

Encoding FAQ

What does Encoding require to run?

It targets Sankhya Addon Studio 2.0 with Java 8, Gradle and ISO-8859-1. Conversion uses iconv on Mac or Linux and python3 on Windows.

Does Encoding convert files automatically?

The skill says a Claude Code hook in the plugin converts files after each write or edit. Outside that hook, conversion must be run by hand with the provided commands.

What happens if a file already contains U+FFFD?

The skill says the accent is already lost and conversion would only hide it with a question mark, so the file should be restored via git first.

Which file types are covered?

Java, Kotlin, XML and properties files are covered by the Latin-1 rule.

How do I install Encoding in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/encoding to use it in all your projects, or to .claude/skills/encoding in one project. Or install the addon-studio plugin, which includes it: /plugin marketplace add snk-devcenter/addon-studio, then /plugin install addon-studio@snk-devcenter.

Does Encoding run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Encoding?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Encoding?

The closest alternatives to Encoding are Sankhya utils, Data dictionary, Entity, Test and Macros.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from snk-devcenter/addon-studio

  1. Adds dynamic search filters to Sankhya entity finders before the query runs

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Guides writing Sankhya commercial business rules with @BusinessRule for sales documents

    • Open source
    • 7 GitHub stars
    • Enterprise it
  3. Lets agents write, review and refactor Sankhya document callbacks with @Callback hooks

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Builds and reviews Sankhya REST endpoints with @Controller, DTOs and transactions

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Sets up global Sankhya exception handlers with rollback, error DTOs and HTTP status

    • Open source
    • 7 GitHub stars
    • Developer tools
  6. Generates Sankhya CRUD screens from table XML in datadictionary/ with no JS or HTML

    • Open source
    • 7 GitHub stars
    • Developer tools