Skip to content

About

Official SimpleLocalize plugin for Claude Code: agent skills for the CLI, REST API and project setup, plus the hosted MCP server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SimpleLocalize Agent Skill

A Claude Code skill that teaches an AI agent how to work with SimpleLocalize — the CLI, the REST API, the Translation Hosting CDN, file formats, and the framework integrations around them.

Give an agent this skill and it can set up a localization workflow, wire an i18n library to a project, write CI pipelines, and call the API correctly — without guessing at flags or inventing endpoints.

What it covers

Area Contents
CLI Every command and flag (from the v2.12.0 sources), simplelocalize.yml, key extraction, CI/CD, troubleshooting
REST API Auth, rate limits, response envelope, worked examples, plus a full endpoint reference generated from the OpenAPI spec
Translation Hosting CDN URL structure, environments, publishing, tag- and customer-scoped resources
File formats All 34 formats, framework → format mapping, per-format gotchas
Options Every import/export/auto-translation option flag
Concepts Keys, namespaces, tags, customers, languages, ICU plurals, universal placeholders, glossary
Integrations i18next, next-intl, vue-i18n, Angular, Android, iOS, Flutter, Spring, over-the-air SDKs for iOS and Android, Chrome extension, VS Code, IntelliJ, Figma
Automation GitHub App, GitHub Action, webhooks, in-platform automations, MCP server and its prompts
Recipes 12 end-to-end workflows: onboarding, CI, migration, cross-platform, recovery
Setup simplelocalize-setup skill: connect a repository to a project end to end — detect the stack, import existing files, write simplelocalize.yml, wire the app, auto-translate

Install

As a Claude Code plugin (recommended)

The plugin bundles this skill with the hosted SimpleLocalize MCP server, so Claude can both know how SimpleLocalize works and act on your project:

/plugin marketplace add simplelocalize/simplelocalize-agent-plugin
/plugin install simplelocalize@simplelocalize

The MCP server is hosted at https://api.simplelocalize.io/mcp, so nothing runs locally. On first use, run /mcp in Claude Code, choose simplelocalize and sign in with your SimpleLocalize account. Access is a regular Personal Access Token you can revoke anytime in Security settings.

Then open your repository and run /simplelocalize:simplelocalize-setup, or just ask "set up SimpleLocalize in this project".

The MCP server also ships three prompts, which Claude Code lists as slash commands: setup-project, localize-component (takes the component) and add-language (takes the language).

Codex

codex plugin marketplace add simplelocalize/simplelocalize-agent-plugin

Then open Codex, go to /plugins, choose the SimpleLocalize marketplace and install the simplelocalize plugin. It brings the same skills and the hosted MCP server; sign in when Codex asks you to connect it.

Gemini CLI

gemini extensions install https://github.com/simplelocalize/simplelocalize-agent-plugin

Restart Gemini CLI, then run /mcp auth simplelocalize to sign in. The skills in skills/ are loaded automatically.

As a standalone skill

Claude Code discovers skills in ~/.claude/skills/ (personal) or .claude/skills/ (project):

git clone https://github.com/simplelocalize/simplelocalize-agent-plugin
cp -r simplelocalize-agent-plugin/skills/simplelocalize ~/.claude/skills/
cp -r simplelocalize-agent-plugin/skills/simplelocalize-setup ~/.claude/skills/   # needs the one above

The agent loads SKILL.md when a task mentions SimpleLocalize, and pulls in individual reference files only as needed.

Quick start

Open your repository in Claude Code and paste this prompt. In SimpleLocalize, an empty project's AI agent option gives you the same prompt with your project token and languages filled in:

Set up SimpleLocalize in this repository.
Project: "My App" (project token: <your project token>)
Source language: en. Target languages: de, fr.

Use the SimpleLocalize MCP tools, and the simplelocalize-setup skill if it is installed:
1. Detect the framework and i18n library. If there is none, propose one and ask before installing it.
2. Find the existing translation files and pick the matching SimpleLocalize file format.
3. Import the source language first, then the existing translations, into the project.
4. Create simplelocalize.yml without an API key. The CLI reads it from the SIMPLELOCALIZE_API_KEY environment variable; never write the key to a file.
5. Ask whether to load translations from the CDN or keep bundled files, then wire it up.
6. Ask before auto-translating, publishing to _production, deleting files or overwriting existing translations.
Finish with a summary of what changed and what is left for me to do.

The agent imports your files through the MCP server. Later syncs run through the CLI, which needs the project API key: export SIMPLELOCALIZE_API_KEY yourself (project → Settings → Credentials) rather than pasting it into the chat.

Layout

.claude-plugin/
  plugin.json                        Claude Code plugin manifest
  marketplace.json                   Claude Code marketplace listing this repo as a plugin
.codex-plugin/plugin.json            Codex plugin manifest
.agents/plugins/marketplace.json     Codex marketplace listing this repo as a plugin
gemini-extension.json                Gemini CLI extension manifest
.mcp.json                            hosted MCP server, shared by Claude Code and Codex
skills/simplelocalize/
  SKILL.md                           entry point: decision rules, credentials, common tasks
  references/
    cli.md                           commands, flags, config file, extraction, troubleshooting
    rest-api.md                      API guide with worked curl examples
    rest-api-endpoints.md            generated endpoint reference (66 operations)
    translation-hosting.md           CDN, environments, publishing
    file-formats.md                  all formats + framework mapping
    options.md                       import/export/auto-translation flags
    concepts.md                      domain model, ICU plurals, universal placeholders
    integrations.md                  per-framework wiring
    automation.md                    GitHub App/Action, webhooks, automations, MCP
    recipes.md                       end-to-end workflows
  scripts/
    generate_api_reference.py        regenerate the endpoint reference from OpenAPI
    slapi.sh                         authenticated curl wrapper
  assets/
    simplelocalize.yml               annotated CLI config template
    simplelocalize-github.yml        annotated GitHub App config template
    openapi.json                     vendored OpenAPI spec
skills/simplelocalize-setup/
  SKILL.md                           step-by-step setup of SimpleLocalize in a repository
  evals/                             test cases (claude plugin eval)

Each skill lives in its own folder under skills/; a plugin ignores a SKILL.md at the repository root once a skills/ folder exists.

Keeping it current

The endpoint reference is generated, not hand-written:

cd skills/simplelocalize
python3 scripts/generate_api_reference.py --fetch   # download a fresh spec and rebuild
python3 scripts/generate_api_reference.py           # rebuild from the vendored spec

Commit the resulting assets/openapi.json and references/rest-api-endpoints.md together.

The prose references were written against the docs at simplelocalize.io/docs/, CLI v2.12.0, and OpenAPI spec 362fa2c_2026-08-27. When the platform changes, update the affected reference file — SKILL.md should stay small.

Notes on accuracy

Where the docs site and the OpenAPI spec disagree, the skill follows the spec and says so. Known drift, both flagged in SKILL.md:

  • The auto-translation guide documents /api/v1/jobs/..., while the spec, the CLI and the MCP server use /api/v2/jobs/auto-translate, /api/v2/jobs, /api/v2/jobs/{jobId}. The v1 paths still respond, so nothing is broken — the skill recommends v2 for new code.
  • The spec's uploadFormat/downloadFormat enums omit several supported formats (XLIFF, ARB, markdown, CSV, xcloc and others). references/file-formats.md carries the complete 34-value list, taken from the server's FileFormat enum and cross-checked against the public GET /api/v1/file-formats endpoint.

Using the API helper

export SIMPLELOCALIZE_API_KEY=...
./skills/simplelocalize/scripts/slapi.sh GET  /api/v2/translations 'language=en&textStatus=EMPTY'
./skills/simplelocalize/scripts/slapi.sh POST /api/v1/translation-keys '' '{"key":"HELLO_WORLD"}'

export SIMPLELOCALIZE_PERSONAL_TOKEN=...
SL_AUTH=personal ./skills/simplelocalize/scripts/slapi.sh GET /api/v2/projects

The project API key grants write access. Keep it in an environment variable or a CI secret — never in client-side code or a committed file. End-user reads belong on the CDN, which needs no credential.

Links

License

MIT

About

Official SimpleLocalize plugin for Claude Code: agent skills for the CLI, REST API and project setup, plus the hosted MCP server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages