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.
npx skills add znlgis/opengis-skills --skill tongwengit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote 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.
[](https://agentmods.dev/skills/znlgis/opengis-skills/tongwen)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.02520 |
| Opus 5 | $0.00028 | $0.01260 |
| Sonnet 5 | $0.00011 | $0.00504 |
| Haiku 4.5 | $0.00006 | $0.00252 |
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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 193 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 文件中智能提取所有文字实体(单行文字、多行文字、属性、标注等) |
| 翻译工作区 | 分屏对照翻译界面,支持原文/译文并排编辑 |
| 术语库管理 | 项目级术语库,确保翻译一致性和专业性 |
| 图纸回写 | 翻译结果无损回写至原 DWG,保留字体、样式、图层、位置 |
| 质量检查 | 自动检测漏译、术语不一致、文字溢出等 8+ 项质量指标 |
| AutoCAD 插件 | 内置 AutoCAD 插件,支持在 CAD 环境中直接操作 |
| 批量处理 | 命令行模式支持多文件批量翻译处理 |
| 本地优先 | 所有数据本地存储,无需联网,保护工程图纸数据安全 |
版本支持
- AutoCAD 2019 / 2020 / 2021 / 2022 / 2023 / 2024 / 2025 / 2026
技术架构
技术栈
| 层面 | 技术选型 |
|---|---|
| 运行时 | .NET Framework 4.8 / .NET 8+ |
| 语言 | C# |
| UI | WPF + MVVM |
| CAD 互操作 | AutoCAD .NET API(ObjectARX) |
| 翻译引擎 | 支持接入多种 LLM/MT 翻译 API |
| 数据存储 | SQLite(术语库、项目数据库) |
| 文件处理 | DWG 直接读写(RealDWG 兼容层) |
核心模块
| 模块 | 功能 |
|---|---|
| Studio 桌面工作台 | 项目管理、文件导入、全局配置 |
| DWG 解析器 | 文字实体提取、样式属性收集、上下文识别 |
| 翻译编辑器 | 分屏对照、术语高亮、搜索替换、批量操作 |
| 术语库引擎 | 项目术语库、全局术语库、模糊匹配、术语验证 |
| 回写引擎 | 文字替换、样式适配、图层保持、属性同步 |
| 质量检查器 | 漏译检测、术语一致性、文字溢出、格式完整性 |
| AutoCAD 插件 | 在 AutoCAD 内部直接调用翻译功能 |
| 命令行工具 | 无头模式批量处理、CI/CD 集成 |
典型工作流
标准翻译流程(7 步)
- 创建项目 — 在 Studio 桌面工作台新建翻译项目
- 导入图纸 — 加载待翻译的 DWG 文件
- 配置术语库 — 选择或创建项目术语库,导入已有术语
- 提取文字 — 自动提取图纸中所有文字实体
- 翻译编辑 — 在翻译工作区中翻译(支持机器翻译辅助 + 术语提示)
- 质量检查 — 运行质量检查工具,修复所有问题
- 回写图纸 — 将翻译结果写回 DWG,生成目标语言图纸
AutoCAD 插件工作流(轻量模式)
对于只需翻译少量图纸的场景,可直接在 AutoCAD 内使用插件:
TONGWEN命令启动插件面板- 选择当前图纸或打开项目
- 提取文字 → 翻译 → 回写,全程在 AutoCAD 内完成
批量处理工作流(CI 集成)
TongWen.CLI.exe --project "项目路径" --source-dir "源图纸目录" --output-dir "输出目录" --lang en --termbase "术语库路径" --qc-report "qa-report.json"
关键命令(AutoCAD 插件)
| 命令 | 功能 |
|---|---|
| TONGWEN | 启动同文插件主面板 |
| TONGWEN_EXTRACT | 提取当前图纸所有文字 |
| TONGWEN_TRANSLATE | 打开翻译工作区 |
| TONGWEN_WRITEBACK | 将翻译结果回写图纸 |
| TONGWEN_QC | 运行质量检查 |
| TONGWEN_TERMBASE | 管理术语库 |
| TONGWEN_SETTINGS | 打开设置面板 |
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.
- 9d ago Changed fb1c26724719
- 12d ago First seen · 193 lines · 55 tokens per session scan A 5c67e7d5e158
tongwen is a skill published in the GitHub repository znlgis/opengis-skills (61 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 2,520 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.
Other skills, from other repositories
localization-testing
Internationalization (i18n) and localization (l10n) testing for global products including translations, locale formats, RTL languages, and cultural appropriateness. Use when launching in new markets or building multi-language products.
i18n-manager
An internationalization tool for managing text in software for different languages and regions. It extracts strings, finds missing translations, creates locale files, and reports coverage.
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.
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.
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.
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.