Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

skill-i18n

БесплатноБез исполняемых скриптовНе проверен

Translate SKILL.md and README.md files into multiple languages for sharing skills internationally

guo-yuот guo-yu★ 241 звезда на GitHub10 установок в других каталогах

Об этом скилле

Skill i18n

Translate skill documentation files (SKILL.md, README.md) into multiple languages, making it easier to share skills with international users.

Usage

Command Description
/skill-i18n Translate files in current skill directory
/skill-i18n <skill-name> Translate files for specified skill
/skill-i18n config Configure default languages and file types
/skill-i18n --lang zh-CN,ja Translate to specified languages (for integration)
/skill-i18n --files SKILL.md,README.md Translate specified files

Supported Languages

Language Code Output File
简体中文 zh-CN SKILL.zh-CN.md
日本語 ja SKILL.ja.md
한국어 ko SKILL.ko.md
Español es SKILL.es.md
Custom User-defined SKILL.<code>.md

Configuration

All settings are stored in ~/.claude/skill-i18n-config.json:

{
  "default_languages": ["zh-CN", "ja"],
  "default_files": ["SKILL.md"],
  "skills_config": {
    "port-allocator": {
      "languages": ["zh-CN", "ja", "ko"],
      "files": ["SKILL.md", "README.md"]
    }
  }
}

Configuration Fields:

Field Description Default
default_languages Languages to translate by default ["zh-CN", "ja"]
default_files Files to translate by default ["SKILL.md"]
skills_config Per-skill configuration {}

Execution Steps

Command: /skill-i18n

Translate files in current skill directory:

  1. Detect current directory

    # Check if current directory contains SKILL.md
    if [ ! -f SKILL.md ]; then
      echo "Error: SKILL.md not found in current directory"
      exit 1
    fi
    
  2. Load configuration

    # Read config file
    CONFIG=$(cat ~/.claude/skill-i18n-config.json 2>/dev/null || echo '{}')
    
    # Get skill name from directory
    SKILL_NAME=$(basename "$(pwd)")
    
    # Check for skill-specific config
    SKILL_CONFIG=$(echo "$CONFIG" | jq -r ".skills_config[\"$SKILL_NAME\"] // null")
    
  3. First-run selection (if no config)

    If no configuration exists for this skill, show TUI selection:

    {
      "questions": [
        {
          "question": "Which languages should be generated?",
          "header": "Languages",
          "multiSelect": true,
          "options": [
            { "label": "简体中文 (zh-CN)", "description": "Simplified Chinese" },
            { "label": "日本語 (ja)", "description": "Japanese" },
            { "label": "한국어 (ko)", "description": "Korean" },
            { "label": "Español (es)", "description": "Spanish" }
          ]
        },
        {
          "question": "Which files should be translated?",
          "header": "Files",
          "multiSelect": true,
          "options": [
            { "label": "SKILL.md", "description": "Skill documentation (recommended)" },
            { "label": "README.md", "description": "Repository readme" }
          ]
        }
      ]
    }
    
  4. Save configuration

    # Save selection to config for future runs
    jq --arg skill "$SKILL_NAME" \
       --argjson langs '["zh-CN", "ja"]' \
       --argjson files '["SKILL.md"]' \
       '.skills_config[$skill] = {"languages": $langs, "files": $files}' \
       ~/.claude/skill-i18n-config.json > tmp.json && mv tmp.json ~/.claude/skill-i18n-config.json
    
  5. Execute translation

    • For each selected file and language, generate translation
    • See "Translation Rules" section below

Command: /skill-i18n <skill-name>

Translate files for specified skill:

  1. Search skill location

    # Search in common locations
    SKILL_PATH=""
    
    # Check ~/.claude/skills/
    if [ -d ~/.claude/skills/"$SKILL_NAME" ]; then
      SKILL_PATH=~/.claude/skills/"$SKILL_NAME"
    fi
    
    # Check code repository (if configured)
    if [ -z "$SKILL_PATH" ] && [ -d ~/Codes/skills/"$SKILL_NAME" ]; then
      SKILL_PATH=~/Codes/skills/"$SKILL_NAME"
    fi
    
    if [ -z "$SKILL_PATH" ]; then
      echo "Error: Skill '$SKILL_NAME' not found"
      exit 1
    fi
    
  2. Execute translation (same as default command)

Command: /skill-i18n config

Configure default settings:

  1. Show current configuration

    echo "Current configuration:"
    cat ~/.claude/skill-i18n-config.json | jq .
    
  2. Interactive configuration via AskUserQuestion

    {
      "questions": [
        {
          "question": "Select default languages for new skills:",
          "header": "Defaults",
          "multiSelect": true,
          "options": [
            { "label": "简体中文 (zh-CN)", "description": "Simplified Chinese" },
            { "label": "日本語 (ja)", "description": "Japanese" },
            { "label": "한국어 (ko)", "description": "Korean" },
            { "label": "Español (es)", "description": "Spanish" }
          ]
        }
      ]
    }
    
  3. Update configuration file

Command-Line Flags

For integration

Полный SKILL.md на GitHub

Установить skill-i18n в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.claude-plugin/plugin.json.gitignoreSKILL.ja.mdSKILL.zh-CN.md

FAQ

Что делает скилл skill-i18n?

Translate SKILL.md and README.md files into multiple languages for sharing skills internationally

Как установить скилл skill-i18n?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл skill-i18n запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить skill-i18n с