wps-i18n

wps-i18n is a skill for Claude Code from Bwkyd/wps-skills. It costs 103 tokens per session (1,345 once invoked), scanned A, original, MIT.

A Chinese-English document tool that turns Chinese content into a parallel bilingual version. It can place the languages one after another, in two columns, in paired table columns, or produce an English-only version.

In plain words
What is it for?
Use it for bilingual documents used by international companies, export businesses and cross-border partnerships.
Why use it?
It avoids manually translating and reformatting contracts, reports and presentations for readers who use different languages.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it for bilingual documents used by international companies, export businesses and cross-border partnerships.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bwkyd/wps-skills/wps-i18n
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 Bwkyd/wps-skills --skill wps-i18n
Clone the repo
git clone --depth 1 https://github.com/Bwkyd/wps-skills

Made for: Claude Code.

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 wps-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-i18n/github.svg)](https://agentmods.dev/skills/bwkyd/wps-skills/wps-i18n)
Your own site
<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-i18n"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-i18n/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 wps-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-i18n"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00103 $0.01345
Opus 5 $0.00051 $0.00673
Sonnet 5 $0.00021 $0.00269
Haiku 4.5 $0.00010 $0.00135

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

Security

Grade A, and why

wps-i18n scanned grade A with 0 findings 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 11d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wps-i18n/SKILL.md · 169 lines

How it starts

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

文档中英双语工具

中文文档 → 中英双语对照版。外企、外贸、国际合作必备。

When to Use

  • 需要中英文对照版本的文档
  • 合同/报告需要英文版
  • 需要双语排版(左中右英)
  • 用户说"做个双语版""中英文对照"

When NOT to Use

  • 纯翻译(不需要排版)→ 直接对话翻译
  • 校对中文文档 → 使用 wps-proofread

双语排版模式

[1] 段落对照 → 中文段落下方紧跟英文翻译
[2] 左右分栏 → 左列中文 右列英文
[3] 表格对照 → 中文列 | 英文列
[4] 替换模式 → 生成纯英文版本

工作流程

Step 1: 读取源文档

from docx import Document
from docx.shared import Pt, Cm, Inches
from docx.enum.text import WD_ALIGN_PARAGRAPH
from docx.oxml.ns import qn
import os

def read_document_text(doc_path):
    """读取文档段落"""
    doc = Document(doc_path)
    paragraphs = []
    for para in doc.paragraphs:
        if para.text.strip():
            paragraphs.append({
                'text': para.text,
                'style': para.style.name,
                'alignment': para.alignment,
            })
    return paragraphs

Step 2: 生成双语文档

def create_bilingual_doc(original_paras, translations, mode='段落对照',
                         output_path=None):
    """生成双语文档"""
    doc = Document()

    section = doc.sections[0]
    section.top_margin = Cm(2.54)
    section.bottom_margin = Cm(2.54)

    def set_font(run, name, size, bold=False, italic=False):
        run.font.size = Pt(size)
        run.font.name = name
        run._element.rPr.rFonts.set(qn('w:eastAsia'), name)
        run.bold = bold
        run.italic = italic

    if mode == '段落对照':
        for orig, trans in zip(original_paras, translations):
            # 中文段落
            p = doc.add_paragraph()
            if 'Heading' in orig.get('style', ''):
                run = p.add_run(orig['text'])
                set_font(run, '黑体', 14, True)
            else:
                p.paragraph_format.first_line_indent = Pt(24)
                run = p.add_run(orig['text'])
                set_font(run, '宋体', 12)

            # 英文翻译
            p = doc.add_paragraph()
            if 'Heading' in orig.get('style', ''):
                run = p.add_run(trans)
                set_font(run, 'Times New Roman', 14, True, True)
            else:
                p.paragraph_format.first_line_indent = Pt(24)
                run = p.add_run(trans)
                set_font(run, 'Times New Roman', 11, italic=True)
                from docx.shared import RGBColor
                run.font.color.rgb = RGBColor(0x55, 0x55, 0x55)

            doc.add_paragraph()  # 段间空行

    elif mode == '表格对照':
        table = doc.add_table(rows=1, cols=2)
        table.style = 'Table Grid'

        # 表头
        table.cell(0, 0).text = '中文'
        table.cell(0, 1).text = 'English'

        for orig, trans in zip(original_paras, translations):
            row = table.add_row()
            row.cells[0].text = orig['text']
            row.cells[1].text = trans

    if not output_path:
        output_path = '双语文档.docx'
    doc.save(output_path)
    return os.path.abspath(output_path)

Read the full file on GitHub · 169 lines

Files

What ships with it

1 file 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. 11d ago First seen · 169 lines · 103 tokens per session scan A fa4bb3bda47c

Subscribe to this mod's changes

wps-i18n is a skill published in the GitHub repository Bwkyd/wps-skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 103 tokens to every session and 1,345 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

punct-master

A punctuation checker and fixer focused mainly on Chinese text, with separate rules for prose, technical documents, bilingual writing, and social posts.

taxueseek/say-it-human · 153 tokens

punct-polish

A Chinese punctuation checker and fixer for prose, technical documents, mixed Chinese-English text, and social media posts.

taxueseek/say-it-human · 164 tokens

chinese-typography

A Chinese typography guide for websites, articles, social-media posts, PDFs, Word documents, and presentations. It explains spacing, fonts, line height, punctuation, and line breaking for Chinese text.

sanhuang520-ship-it/awesome-chinese-ai-tools · 94 tokens

arabic-word-production

Use when creating or repairing Microsoft Word DOCX files that are Arabic-first, bilingual Arabic-English, RTL, mixed-direction, or render differently in Word than in preview.

Bannovich/arabic-word-production · 38 tokens

docx-template-translator

Adaptive conversion of LaTeX, PDF, or Markdown sources into a complete Word .docx that follows a user-supplied .docx template. Use when pandoc --reference-doc alone is not enough — for thesis, dissertation, report, or institutional Word formatting that needs cover pages, declarations, TOC, heading numbering, captions…

zouchenzhen/docx-template-translator-skill · 87 tokens

法律文件脱敏处理

A browser-based and Python tool for removing sensitive details from legal Word documents and restoring them later. It can replace information such as names, dates, prices, bank accounts and case numbers while preserving document formatting.

moyupeng0422/legal-doc-redactor · 128 tokens