translate-pseudocn

translate-pseudocn is a skill for Claude Code, Codex from Kihara777/NixKits. It costs 69 tokens per session (1,828 once invoked), scanned A, original, MIT.

A pseudo-Chinese localization method that removes Japanese kana while keeping Japanese kanji and much of the original wording. Kana are Japanese phonetic characters; kanji are Japanese characters based on Chinese writing.

In plain words
What is it for?
Use it to produce pcn documentation from Japanese source text, including translated headings, language labels, and protected code blocks.
Why use it?
It creates a consistent visual localization for documentation without treating the result as ordinary Chinese translation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to produce pcn documentation from Japanese source text, including translated headings, language labels, and protected code blocks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kihara777/nixkits/translate-pseudocn
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 Kihara777/NixKits --skill translate-pseudocn
Clone the repo
git clone --depth 1 https://github.com/Kihara777/NixKits

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 translate-pseudocn

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kihara777/nixkits/translate-pseudocn"><img src="https://agentmods.dev/badge/skills/kihara777/nixkits/translate-pseudocn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,828 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. 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.00069 $0.01828
Opus 5 $0.00034 $0.00914
Sonnet 5 $0.00014 $0.00366
Haiku 4.5 $0.00007 $0.00183

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

Security

Grade A, and why

translate-pseudocn 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 12d 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/translate-pseudocn/SKILL.md · 161 lines

How it starts

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

伪中国语翻译

为 NixKits 文档体系提供 pcn(伪中国语)语言。

自动发现契约

write-project-docs / write-maintenance-log 通过扫描 skills/translate-*/SKILL.md frontmatter 自动发现:

字段 用途
language_code pcn 目录名、文件扩展名
display_name 偽中国語 语言切换器标签
base_language ja 源语言

设计原则

伪中国语是日语文本剥离假名后的视觉结果,不是中文翻译。

  • 基于智能体自然语言理解进行转换,不使用自动化脚本/正则替换。理解句子结构后再做转换。
  • 语序转换为中文语序(SOV → SVO)
  • 日文汉字名词保持原样
  • 片假名外来语优先查词典映射为日本汉字,未命中则剥离
  • 禁止使用简体中文或繁体中文汉字(如「软件」「安装」「模块」)

替换规则

1. 剥离假名

去除所有平假名(あ-ん)。片假名(ア-ン)按以下优先级处理:

  1. dictionary.md 映射为日本汉字
  2. 未命中 → 剥离(仅保留上下文中的日文汉字)

2. 保留日文汉字

日文汉字名词原样保留,包括:

示例 保留形式 说明
開発 開発 日文汉字,非「开发」
環境 環境 日文汉字
管理 管理 日文汉字
提供 提供 日文汉字
設定 設定 日文汉字
情報 情報 日文汉字

3. 保留日语语序

日语 SOV 语序转换为中文 SVO 语序(主-动-宾)。

4. 助词转换(最小化)

助词适当保留以增加文本丰富性,仅剥离无实义的语法标记:

日文 変換 条件
所有/所属
并列连接
方向/目标
手段/场所
から 起点
まで 终点
(剥离) 主题标记,无实义
(剥离) 主语标记,无实义
(剥离) 宾语标记,无实义

5. 标点

日文标点保持原样( 不转换)。

6. 代码块保护

  • Nix 代码块:仅翻译 # 注释行
  • Bash 代码块:全部不动
  • 先按 ``` 边界提取代码块,仅对非代码区域应用规则

验证

翻译完成后,使用以下脚本检查输出文件是否残留假名:

import re

def check_kana(path):
    with open(path) as f:
        text = f.read()
    blocks = re.split(r'```', text)
    outside = ''.join(blocks[i] for i in range(0, len(blocks), 2))
    kata = re.findall(r'[\u30A0-\u30FF]{2,}', outside)
    hira = re.findall(r'[\u3040-\u309F]{2,}', outside)
    if kata: print(f'残片假名: {kata}')
    if hira: print(f'残平假名: {hira}')

词典

片假名→日本汉字映射见 dictionary.md。仅包含有对应日本汉字词的片假名外来语。

注意事项

  • 伪中国语是视觉伪本地化,外观是「汉字+符号」的日文文本
  • 禁止使用简体中文汉字(如「软件」「安装」「模块」「设置」)
  • 语言切换器生成:从日文源提取路径逐个精确构造
  • 日本語[日本語](加链接),自身标签 偽中国語(纯文本)
  • 验证发现的残留片假名应立即翻译并加入 dictionary.md,然后重新生成所有 pcn 文档

常见陷阱与修复(实战经验)

1. 片假名词典映射必须优先于剥离

所有片假名在剥离前必须先查词典。常见遗漏项及对应日文汉字:

Read the full file on GitHub · 161 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. 12d ago First seen · 161 lines · 69 tokens per session scan A 4d94af0aa026

Subscribe to this mod's changes

translate-pseudocn is a skill published in the GitHub repository Kihara777/NixKits (25 stars, last pushed yesterday), licensed MIT. It adds 69 tokens to every session and 1,828 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

china-translate

A Chinese-English translation and localisation guide for technical text and product interfaces. Localisation means adapting wording and cultural references so they sound natural to users in the target language.

dongsheng123132/u-claw · 32 tokens

content-translator

Translate text content between languages with high quality and natural phrasing. Covers document translation, content localization, and multi-language research support for teams working across language barriers.

sandbaseai/sandbase-skills · 36 tokens

translator

Translate text between 100+ languages with automatic source detection. Use when: the user asks to translate text, detect a language, or work with multilingual content. NOT for: translating code/documentation in bulk, summarization, or rewriting text in the same language.

ericwang915/PythonClaw · 55 tokens

video-subtitles

Generate SRT subtitles from video/audio with translation support. Transcribes Chinese (FunASR/Whisper), English (Whisper), Hebrew (ivrit.ai), translates between languages, burns subtitles into video. Use for creating captions, transcripts, or hardcoded subtitles.

xyva-yuangui/XyvaClaw · 58 tokens

why

Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics…

alyraffauf/hoenn · 89 tokens

technical-writing

Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.

alyraffauf/hoenn · 52 tokens