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 rojim666/SztuCode --skill tencent-local-office-editgit clone --depth 1 https://github.com/rojim666/SztuCodeWrote 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/rojim666/sztucode/tencent-local-office-edit)<a href="https://agentmods.dev/skills/rojim666/sztucode/tencent-local-office-edit"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/tencent-local-office-edit/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/rojim666/sztucode/tencent-local-office-edit"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/tencent-local-office-edit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00233 | $0.03896 |
| Opus 5.5 | $0.00093 | $0.01558 |
| Sonnet 5.5 | $0.00047 | $0.00779 |
| Haiku 4.5 | $0.00023 | $0.00390 |
Grade A, and why
tencent-local-office-edit 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.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
本地 editor_sdk MCP 应用
面向本机磁盘文档,通过本地
editor_sdk进程的 MCP 服务读写。支持编辑的格式按三个品类归类:
- doc:
.doc.dot.wps.wpt.docx.dotx.docm.dotm- sheet:
.xls.xlt.xlsx.xltx.xlsm.xltm.csv.tsv- slide:
.ppt.pps.pot.pptx.ppsx.potx.pptm.ppsm.potm打开时按文件内容(magic bytes)自动识别品类,扩展名仅作兜底。 ⚠️ 这是本地 Office/WPS 文件操作通道,只操作本机磁盘上的文件。
格式限制
- 新建文件:
create_doc/create_sheet/create_slide使用内置空白模板,分别新建.docx/.xlsx/.pptx。 - 含宏格式:
.docm.dotm.xlsm.xltm.pptm.ppsm.potm可按对应品类打开和编辑文档结构,但宏不执行,剥离宏后可能导致数据或样式差异。 - 不支持的 WPS 专属格式:
.et.ett.dps.dpt当前不支持;需要先用 WPS 客户端另存为.xlsx或.pptx后再处理。 - 不属于本 Skill 的编辑范围:
.xmind有独立 Mind Editor 但本目录未暴露 mind MCP 工具;.pdf/.ofd仅查看,不提供编辑工具。
前置
python3- 本地
editor_sdk服务已运行(默认从端口 39099 起探测) - 所有调用都通过本目录的
edsdk.py封装脚本完成(HTTP 直连 MCP 端点):python3 edsdk.py list # 验通:能列出工具即 OK未设置
editor_sdk_port时,按顺序探测39099到39108共 10 个端口;命中后复用该端点。 如需固定端口:editor_sdk_port=40001 python3 edsdk.py list(设置后只访问指定端口)。 如服务启用鉴权,设置editor_sdk_token。
🚧 强制流程(违反将导致参数错误 / 调用失败)
对任何 doc_* / sheet_* / slide_* 编辑工具:渐进式按需查询,不要一次性拉全量 schema。流程:
- 读子文档:如果是Word类任务,必须先读取doc.md。
- 选工具:从子文档(doc.md / sheet.md / slide.md)的一句话清单里挑出要用的工具——这一步不需要命令,清单就是索引。
- 只查该工具 schema:
python3 edsdk.py schema <工具名>,直接得到必填项与各字段说明(内部只取这一个工具,不会全量打印):python3 edsdk.py schema doc_insert_text - 调用:确认
[✓]必填项与各字段语义后再调。
用到一个才查一个,没用到的工具不要预先查。未经
schema查询直接拼参数调用,属于流程违规。
调用前自检(缺一不可):
- ☐ 已对本次要用的工具跑过
edsdk.py schema <工具名> - ☐ 已确认全部
[✓]必填字段 - ☐ 已确认位置 / 坐标 / 单位约定(如 doc 的 UTF-16 偏移、slide 的磅(pt))
- ☐ 【仅
sheet_*写值工具】 调sheet_set_range_value/sheet_set_range_value_by_csv/sheet_set_cell_value前,已用sheet_get_used_range探明真实已用区域边界 —— 不得用肉眼观察、文件预览或上一次读取的行数去猜边界 - ☐ 【仅
sheet_*】 已按用户意图选对分支(二者选一,见sheet.mdHARD RULE):- 新增(用户表达「新增 / 添加 / 再加 / 插入 / 追加」行或列)→
已先调
sheet_insert_dimension腾出空间,确认目标区域为空后再写,而不是直接覆盖已用区域 - 修改(用户明确表达「修改 / 替换 / 更正 XX」)→
已先
sheet_get_cell_data读回目标区域,确认要覆盖的内容与用户意图一致后再写
- 新增(用户表达「新增 / 添加 / 再加 / 插入 / 追加」行或列)→
已先调
What ships with it
4 files 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.
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.
- 2mo ago First seen · 143 lines · 233 tokens per session scan A 787615017dfa
tencent-local-office-edit is a skill published in the GitHub repository rojim666/SztuCode (110 stars, last pushed 19d ago), licensed MIT. It adds 233 tokens to every session and 3,896 once invoked, about $0.0009 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-09-12.
tencent-local-office-edit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tencent-local-office-editrojim666/SztuCode | Skill | 110 | 19d ago | MIT | A | 233 | Claude Code, Codex |
| xlsx-officialevoelsewhere/evoflux | Skill | 13 | 26d ago | Apache-2.0 | A | 151 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 33 | Claude Code, Codex |
| office-documentsTencentCloud/Octop | Skill | 13k | yesterday | MIT | A | 44 | Claude Code, Codex |
| xlsxHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 20 | Claude Code, Codex |
| spreadsheetsHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 17 | Claude Code, Codex |
| browser4-web-minerplatonai/Browser4 | Skill | 1.2k | yesterday | Apache-2.0 | A | 57 | Claude Code, Codex |