translate-pseudocn

translate-pseudocn is a skill for Claude Code, Codex from Kihara777/NixKits. It costs 69 tokens per session (3,796 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. Also seen: mentions AGENTS.md; mentions OpenCode.

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 3,796 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.03796
Opus 5.5 $0.00028 $0.01518
Sonnet 5.5 $0.00014 $0.00759
Haiku 4.5 $0.00007 $0.00380

Measured 2mo ago against content hash ee9c0d31710d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 258 lines

How it starts

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

伪中国语翻译

为一套多语言文档体系提供 pcn(伪中国语)语言支持。本技能不绑定任何 具体项目——任何采用「基准语言 + 扩展语言」结构、且需要 pcn 的文档体系, 都可通过下面的自动发现契约接入。

自动发现契约

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

扫描路径取决于技能装在哪:仓库内为 skills/translate-*/;已安装到助手目录 时同级为 <助手目录>/skills/translate-*/(如 ~/.opencode/skills/)。当前 cwd 不是技能源仓库时,前者扫不到任何语言——发现结果为空应退回读取仓库现有语言 清单,而不是判定"没有扩展语言"。

字段 值 用途
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。仅包含有对应日本汉字词的片假名外来语。

Read the full file on GitHub · 258 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. 2mo ago Changed · +29 lines ee9c0d31710d
  2. 2mo ago Changed · +68 lines 2182241e6048
  3. 3mo 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 (30 stars, last pushed 4d ago), licensed MIT. It adds 69 tokens to every session and 3,796 once invoked, about $0.0003 per session on Opus 5.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

translate-pseudocn compared with skills from other repositories

translate-pseudocn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
translate-pseudocnKihara777/NixKitsSkill304d agoMITA69Claude Code, Codex
content-translatorsandbaseai/sandbase-skillsSkill2138d agoApache-2.0A36Claude Code
translatorericwang915/PythonClawSkill482d agoMITA55Claude Code, Codex
video-subtitlesxyva-yuangui/XyvaClawSkill213mo agoMITA58Claude Code, Codex
translationxyva-yuangui/XyvaClawSkill213mo agoMITA54Claude Code, Codex
whyalyraffauf/hoennSkill2352mo agoGPL-3.0A89Claude Code, Codex
technical-writingalyraffauf/hoennSkill2352mo agoGPL-3.0A52Claude Code