# Encoding

> Encoding is an open-source agent skill for developer tools. Keeps Sankhya Addon Studio source files in ISO-8859-1 and detects lost accents. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/snk-devcenter/addon-studio/tree/main/plugins/addon-studio/skills/encoding
- **Repository:** https://github.com/snk-devcenter/addon-studio
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** encoding
- **Collection:** https://github.com/snk-devcenter/addon-studio
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/encoding)
- [License: MIT](https://github.com/snk-devcenter/addon-studio/tree/HEAD/plugins/addon-studio/skills/encoding)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Sankhya utils](https://ai-powered.com/skills/sankhya-utils): Sankhya utils is an open-source agent skill for developer tools.
- [Data dictionary](https://ai-powered.com/skills/data-dictionary): Data dictionary is an open-source agent skill for developer tools.
- [Entity](https://ai-powered.com/skills/entity): Entity is an open-source agent skill for developer tools.
- [Test](https://ai-powered.com/skills/test-snk-devcenter): Test is an open-source agent skill for developer tools.
- [Macros](https://ai-powered.com/skills/macros): Macros is an open-source agent skill for developer tools.
- [Jsp](https://ai-powered.com/skills/jsp): Jsp is an open-source agent skill for developer tools.
- [Sankhya js](https://ai-powered.com/skills/sankhya-js): Sankhya js is an open-source agent skill for developer tools.
- [Editorconfig](https://ai-powered.com/skills/editorconfig): Editorconfig is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/encoding
