tongwen

tongwen is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 74 tokens per session (5,346 once invoked), scanned A, original, MIT.

A local-first translation suite for engineering CAD and BIM drawings in DWG format. It extracts drawing text, helps translate it with project terminology, and writes the translation back into AutoCAD files.

In plain words
What is it for?
It is for translating AutoCAD 2019–2026 drawings, checking for missing or inconsistent translations, managing project terminology, and processing multiple files from the command line.
Why use it?
It removes the need to translate drawing text manually while preserving the original fonts, styles, layers, positions, and layout. Local storage also keeps the drawing data on the user's computer.

Skill for Claude CodeCodex

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

Good fit It is for translating AutoCAD 2019–2026 drawings, checking for missing or inconsistent translations, managing project terminology, and processing multiple files from the command line.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/tongwen"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/tongwen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,346 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.00074 $0.05346
Opus 5.5 $0.00030 $0.02138
Sonnet 5.5 $0.00015 $0.01069
Haiku 4.5 $0.00007 $0.00535

Measured 12d ago against content hash 58905d35bdd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tongwen 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.

cad/tongwen/SKILL.md · 300 lines

How it starts

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

产品定位: 商业软件(非开源),面向工程图纸的本地优先 CAD/BIM 无损翻译套件

项目地址: 不适用(专有商业软件,产品官网详见下方)

产品官网: https://shandianweihu.com/

上游文档: https://znlgis.github.io/cad/TongWen/

许可证: 专有商业软件

CAD 平台: AutoCAD 2019—2026

概述

同文(Tongwen)是一套面向工程图纸的 CAD/BIM 无损翻译套件,解决工程建设领域多语言图纸翻译的核心痛点。与传统人工翻译或通用机器翻译不同,同文直接解析 DWG 文件中的文字实体,提供术语库驱动的专业翻译工作流,最终将译文无损回写至原图纸,保持图纸格式、布局和图层信息完全不变。

核心能力

能力 说明
图纸文字提取 从 DWG 提取文字实体(单行/多行文字、块属性、标注等),支持整图或框选
翻译工作区 Studio 内分屏对照,原文/译文并排编辑,风险实时展示
翻译知识体系 CM 校正记忆 > TM 翻译记忆 > Glossary 术语表 > LLM 四层优先级级联
术语库管理 以 CSV 为载体的全局/项目术语表,可用 Excel 编辑,支持多表按序加载
图纸回写 译文回写 DWG,策略三选一:新建译文图层 / 覆盖原文 / 双语对照
质量检查 占位符、术语、长度溢出三类验证器,四级风险分级;阻断级会阻止回写
AutoCAD 插件 22 个 TW_ 前缀命令,在 CAD 环境内完成提取—翻译—回写
批量处理 Tongwen.Runner.BatchCli 无头递归批处理,另有 Review 报告与 Server 接口
本地优先 项目数据、术语表、翻译记忆均本地存储(SQLite / 本地文件)

版本支持

同文按 AutoCAD 的插件框架分别出包,官方文档明确列出的是四档(不是连续区间):

AutoCAD 版本 插件框架
AutoCAD 2019 .NET Framework 4.7+
AutoCAD 2021 .NET 6.0
AutoCAD 2025 .NET 8.0
AutoCAD 2026 .NET 8.0

装其中任一即可;同时装多版时启动器会自动检测并让用户选择启动哪个。AutoCAD LT 完全不支持——核心功能依赖完整 .NET API,LT 不提供。


环境准备

前置条件

项 要求
操作系统 仅 64 位 Windows:Win10 版本 1809(Build 17763)及以上、Win11 21H2 及以上;不支持 Win7/8/8.1、32 位系统,无 macOS/Linux 原生版
CAD 上表任一受支持 AutoCAD(非 LT)
运行时 AutoCAD 2019 插件需 .NET Framework 4.7.2+;2021 插件需 .NET 6.0 桌面运行时;2025/2026 插件与 Studio 主程序需 .NET 8.0 桌面运行时
权限 本地管理员权限(企业受控机器可能需 IT 协助)

检查与安装

# 1. 确认系统版本与位数
winver

# 2. 确认桌面运行时是否齐备(要同时看到 WindowsDesktop.App 条目)
dotnet --list-runtimes

# 3. 确认 .NET Framework 4.7.2+:Release ≥ 461808
reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" /v Release

# 4. 下载并校验安装包(官网下载页 → Tongwen_Setup_vX.X.X.msi)
Get-FileHash -Path ".\Tongwen_Setup_vX.X.X.msi" -Algorithm SHA256

缺 .NET 6.0 / 8.0 桌面运行时时从微软官网下载 "Windows → Desktop Runtime → x64",两者安装顺序不限。安装为 WixSharp 构建的 MSI,支持静默安装与日志,便于企业批量部署;安装向导中需接受 EULA,安装完成后再配置 AutoCAD 插件并首次启动验证。

Read the full file on GitHub · 300 lines

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 Changed · -3 tokens per session 58905d35bdd7
  2. 13d ago Changed · +107 lines · +22 tokens per session 0e5da8ec24ae
  3. 1mo ago Changed fb1c26724719
  4. 1mo ago First seen · 193 lines · 55 tokens per session scan A 5c67e7d5e158

Subscribe to this mod's changes

tongwen is a skill published in the GitHub repository znlgis/opengis-skills (75 stars, last pushed 7d ago), licensed MIT. It adds 74 tokens to every session and 5,346 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

Other skills, from other repositories

solidworks-automation

An automation skill for SolidWorks, a computer-aided design program used to create 3D parts, assemblies, and engineering drawings. It covers verified CAD operations and marks less-tested operations for human review.

wzyn20051216/solidworks-automation-skill · 56 tokens

autocad-automation

An automation skill for AutoCAD, a computer-aided design program commonly used for 2D technical drawings. It works with drawing formats such as DWG and DXF and can use Windows automation or other supported scripting routes.

wzyn20051216/solidworks-automation-skill · 151 tokens

solidworks-fillet-chamfer-cnc

A SolidWorks skill for creating CNC parts with multiple rounded edges and chamfers, which are angled or softened edges used in manufacturing. It includes parameter checks, edge selection, and evidence after rebuilding the model.

wzyn20051216/solidworks-automation-skill · 107 tokens

solidworks-threaded-holes

A SolidWorks skill for creating and checking ISO metric internal threaded holes, such as M6, in new parts. It covers supported blind and through holes, chamfers, thread direction, and delivery evidence.

wzyn20051216/solidworks-automation-skill · 150 tokens

solidworks-vibecad

A planning guide for turning natural-language mechanical design requests into structured, parameterized SolidWorks plans that can be reviewed before execution.

wzyn20051216/solidworks-automation-skill · 96 tokens

solidworks-engineering-drawing

A SolidWorks skill for creating and reviewing engineering drawings, which are manufacturing documents showing views, measurements, holes, parts lists, and title-block information.

wzyn20051216/solidworks-automation-skill · 58 tokens