iflytek-translate

iflytek-translate is a skill for Claude Code, Codex from iflytek/iFly-Skills. It costs 65 tokens per session (2,311 once invoked), scanned A, original, Apache-2.0.

A text-translation tool that uses iFlytek's machine-translation service and supports more than 70 language pairs. It can translate text supplied directly, through standard input, or from a file.

In plain words
What is it for?
Translate text or documents, specify language pairs such as Chinese to English, read input from a pipeline, and return either readable output or the raw JSON response.
Why use it?
It removes the need to copy text into a separate translation service or write custom API calls. Source and target languages can be selected for each request.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Translate text or documents, specify language pairs such as Chinese to English, read input from a pipeline, and return either readable output or the raw JSON response.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iflytek/ifly-skills/iflytek-translate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iflytek/iFly-Skills --skill iflytek-translate
Clone the repo
git clone --depth 1 https://github.com/iflytek/iFly-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iflytek-translate

README.md
[![agentmods](https://agentmods.dev/badge/skills/iflytek/ifly-skills/iflytek-translate/github.svg)](https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-translate)
Your own site
<a href="https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-translate"><img src="https://agentmods.dev/badge/skills/iflytek/ifly-skills/iflytek-translate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iflytek-translate

Your own site · 80×15
<a href="https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-translate"><img src="https://agentmods.dev/badge/skills/iflytek/ifly-skills/iflytek-translate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,311 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02311
Opus 5 $0.00032 $0.01156
Sonnet 5 $0.00013 $0.00462
Haiku 4.5 $0.00006 $0.00231

Measured 12d ago against content hash 0d5b4e1d85c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

iflytek-translate scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/translate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **No pip deps**: Uses only Python stdlib (`urllib`, `hmac`, `hashlib`, `json`, etc.)
skills/iflytek-translate/SKILL.md · 242 lines

How it starts

The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ifly-translate

Translate text using iFlytek's Machine Translation API (机器翻译). Supports 70+ language pairs.

Setup

  1. Create an app at 讯飞控制台 with 机器翻译 service enabled
  2. Set environment variables:
    export XFYUN_APP_ID="your_app_id"
    export XFYUN_API_KEY="your_api_key"
    export XFYUN_API_SECRET="your_api_secret"
    

Usage

Basic translation (Chinese → English by default)

python3 scripts/translate.py "你好世界"

Specify source and target language

python3 scripts/translate.py -s en -t cn "Hello world"

Read from stdin

echo "こんにちは" | python3 scripts/translate.py - -s ja -t cn

Read from file

python3 scripts/translate.py -f document.txt -s cn -t en

Options

Flag Short Description
text Text to translate (use - for stdin)
--file -f Read text from a file
--from -s Source language code (default: cn)
--to -t Target language code (default: en)
--verbose -v Show source/target language labels
--raw Output raw JSON response

Common language codes

Code Language Code Language
cn 中文 en English
ja 日语 ko 韩语
fr 法语 de 德语
es 西班牙语 ru 俄语
ar 阿拉伯语 th 泰语
vi 越南语 pt 葡萄牙语
it 意大利语 tr 土耳其语

Aliases are supported: zhcn, chinesecn, englishen, japaneseja, etc.

Full language list: https://www.xfyun.cn/doc/nlp/xftrans/API.html

Examples

# Chinese to English
python3 scripts/translate.py "人工智能改变世界"

# English to Chinese
python3 scripts/translate.py -s en -t cn "Artificial intelligence changes the world"

# Japanese to Chinese
python3 scripts/translate.py -s ja -t cn "おはようございます"

# Verbose output with language labels
python3 scripts/translate.py -v "你好"

# Raw JSON for debugging
python3 scripts/translate.py --raw "测试翻译"

Read the full file on GitHub · 242 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 242 lines · 65 tokens per session scan A 0d5b4e1d85c8

Subscribe to this mod's changes

iflytek-translate is a skill published in the GitHub repository iflytek/iFly-Skills (218 stars, last pushed 2d ago), licensed Apache-2.0. It adds 65 tokens to every session and 2,311 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

scammer

A scam-message checker that analyzes suspicious texts, images, or conversation descriptions. It can identify the likely stage of a scam and suggest what the sender may try next.

naxiaoduo/Scammer.skill · 50 tokens

chinese-traditional-conversion

A language-conversion skill that changes Simplified Chinese into Traditional Chinese used in Taiwan. It also adapts vocabulary and phrasing for Taiwan.

jim60105/copilot-prompt · 125 tokens

chinese-content-writing-guideline

Writing guidelines for producing high-quality Traditional Chinese (zh-TW) content. Use when writing any kind of content. Including blog posts, notes, technical articles, technical writing, chitchat, social media posts, etc., even when you are just sending a text message. Also use when reviewing or editing existing…

jim60105/copilot-prompt · 80 tokens

yida-i18n

A tool for managing the languages and translated text in YiDA applications, including which languages are enabled and the wording shown on pages.

openyida/openyida · 87 tokens

aso-marketing

Optimize App Store and Google Play listings via a 7-phase, plan-approval-gated ASO workflow (keyword strategy, metadata, localization). Don't use for web SEO, paid UA campaigns, or pre-submission compliance audits.

luongnv89/skills · 50 tokens

skill-creator

A guide for creating or improving an agent skill: a SKILL.md file that gives an AI a repeatable workflow for a specific task. It covers the skill’s name, search keywords, instructions, failure handling, and examples where needed.

zhinjs/zhin · 61 tokens