multilingual

GitHub

将 Hyper-Extract YAML 模板转换为多语言支持,自动处理指定字段的翻译与格式调整。

hyperextract-skills/multilingual/SKILL.md yifanfeng97/Hyper-Extract

Trigger Scenarios

用户要求添加翻译 用户提及 multilingual 用户要求转换语言 用户要求支持中文和英文

Install

npx skills add yifanfeng97/Hyper-Extract --skill multilingual -g -y
More Options

Non-standard path

npx skills add https://github.com/yifanfeng97/Hyper-Extract/tree/main/hyperextract-skills/multilingual -g -y

Use without installing

npx skills use yifanfeng97/Hyper-Extract@multilingual

指定 Agent (Claude Code)

npx skills add yifanfeng97/Hyper-Extract --skill multilingual -a claude-code -g -y

安装 repo 全部 skill

npx skills add yifanfeng97/Hyper-Extract --all -g -y

预览 repo 内 skill

npx skills add yifanfeng97/Hyper-Extract --list

SKILL.md

Frontmatter
{
    "name": "multilingual",
    "description": "Convert Hyper-Extract YAML templates to multi-language support.\nUse when user says: \"add translation\", \"multilingual\", \"convert language\", \"support Chinese and English\".\nTrigger: User wants to add Chinese\/English\/Japanese translation to their template.\nSkip: User wants to design a new template (use record-designer or graph-designer instead)."
}

Multilingual Converter

Translatable Fields

The following fields can be translated:

  • description
  • output.description
  • fields[].description
  • guideline.target
  • guideline.rules

Non-Translatable Fields

The following fields should NOT be translated:

  • name, type, tags
  • field names (name in fields)
  • identifiers
  • display

Conversion Modes

Mode 1: Single → Bilingual

# Before (single language)
language: zh
description: '财务报告摘要'

# After (bilingual)
language: [zh, en]  # YAML list format
description:
  zh: '财务报告摘要'
  en: 'Financial Report Summary'

Mode 2: Expand Existing Translation

# Before (has zh only)
description:
  zh: '财务报告摘要'

# After (add en)
description:
  zh: '财务报告摘要'
  en: 'Financial Report Summary'

Mode 3: Add New Language

# Before (zh + en)
# After (add ja)
description:
  zh: '财务报告摘要'
  en: 'Financial Report Summary'
  ja: '財務報告サマリー'

Translation Guidelines

Field Descriptions

Original English Notes
公司名称 Company name Direct
营收金额 Revenue amount Direct
关键词 Keyword/Term Choose based on context

Target/Rules

target:
  zh: '你是一位财务分析师,请从财报中提取关键信息。'
  en: 'You are a financial analyst. Extract key information from financial reports.'

rules:
  zh:
    - '每个字段对应一个独立的信息项'
  en:
    - 'Each field corresponds to an independent information item'

Multi-language Consistency

When translating field values (like enum options), maintain language purity:

Original Chinese Translation English Translation
类型:实体/抽象 类型:实体/抽象 Type: entity/abstract
重要性:高/中/低 重要性:高/中/低 Significance: high/medium/low

Do NOT translate inline: 类型:entity(实体) → wrong!

Translation Checklist

  • Preserve technical terms consistently
  • Maintain same meaning across languages
  • Keep field names in source language
  • Update language field to indicate multi-language (use list format)

Output Format

## Multilingual Conversion Result

language: [zh, en]  # YAML list format

# All translatable fields now have both zh and en

## Translation Mapping

| Field Path | Chinese | English |
|------------|---------|---------|
| description | ... | ... |
| output.description | ... | ... |
| fields[].description | ... | ... |
| guideline.target | ... | ... |
| guideline.rules | ... | ... |

Notes

  • Use professional domain terminology
  • Maintain consistent terminology across fields
  • Keep YAML structure clean and readable
  • Field names (name) should NOT be translated
  • Use YAML list format for language field: language: [zh, en]

Version History

  • e698804 Current 2026-07-25 05:13

Same Skill Collection

hyperextract-skills/brainstorm/SKILL.md
hyperextract-skills/graph-designer/SKILL.md
hyperextract-skills/record-designer/SKILL.md
hyperextract-skills/SKILL.md
hyperextract-skills/template-optimizer/SKILL.md
hyperextract-skills/yaml-validator/SKILL.md

Metadata

Files
0
Version
ecba6c5
Hash
57e1aef7
Indexed
2026-07-25 05:13

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 04:12
浙ICP备14020137号-1 $Гость$