tencent-local-office-edit

tencent-local-office-edit is a skill for Claude Code, Codex from rojim666/SztuCode. It costs 233 tokens per session (3,896 once invoked), scanned A, original, MIT.

A local editing skill for opening, changing, creating, and saving Microsoft Office and WPS documents, spreadsheets, and presentations through a local editor service. It supports specified document formats but does not execute macros or edit PDFs.

In plain words
What is it for?
Use it to edit DOC and DOCX documents, XLSX and CSV spreadsheets, and PPTX presentations, including creating new blank files and saving changes.
Why use it?
It lets an agent work with files on the local computer while making the edits visible in the editor. It also states which formats are unsupported or limited.

Skill for Claude CodeCodex

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

Good fit Use it to edit DOC and DOCX documents, XLSX and CSV spreadsheets, and PPTX presentations, including creating new blank files and saving changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rojim666/sztucode/tencent-local-office-edit
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 rojim666/SztuCode --skill tencent-local-office-edit
Clone the repo
git clone --depth 1 https://github.com/rojim666/SztuCode

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 tencent-local-office-edit

README.md
[![agentmods](https://agentmods.dev/badge/skills/rojim666/sztucode/tencent-local-office-edit/github.svg)](https://agentmods.dev/skills/rojim666/sztucode/tencent-local-office-edit)
Your own site
<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.

agentmods 80×15 button for tencent-local-office-edit

Your own site · 80×15
<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>
Per session 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,896 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.
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.00233 $0.03896
Opus 5 $0.00117 $0.01948
Sonnet 5 $0.00047 $0.00779
Haiku 4.5 $0.00023 $0.00390

Measured today against content hash 787615017dfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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

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.

packages/runtime-ts/prompts/workbuddy/skills/tencent-local-office-edit/SKILL.md · 143 lines

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 时,按顺序探测 3909939108 共 10 个端口;命中后复用该端点。 如需固定端口:editor_sdk_port=40001 python3 edsdk.py list(设置后只访问指定端口)。 如服务启用鉴权,设置 editor_sdk_token

🚧 强制流程(违反将导致参数错误 / 调用失败)

对任何 doc_* / sheet_* / slide_* 编辑工具:渐进式按需查询,不要一次性拉全量 schema。流程:

  1. 读子文档:如果是Word类任务,必须先读取doc.md
  2. 选工具:从子文档(doc.md / sheet.md / slide.md)的一句话清单里挑出要用的工具——这一步不需要命令,清单就是索引。
  3. 只查该工具 schemapython3 edsdk.py schema <工具名>,直接得到必填项与各字段说明(内部只取这一个工具,不会全量打印):
    python3 edsdk.py schema doc_insert_text
    
  4. 调用:确认 [✓] 必填项与各字段语义后再调。

用到一个才查一个,没用到的工具不要预先查。未经 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.md HARD RULE):
    • 新增(用户表达「新增 / 添加 / 再加 / 插入 / 追加」行或列)→ 已先调 sheet_insert_dimension 腾出空间,确认目标区域为空后再写,而不是直接覆盖已用区域
    • 修改(用户明确表达「修改 / 替换 / 更正 XX」)→ 已先 sheet_get_cell_data 读回目标区域,确认要覆盖的内容与用户意图一致后再写

Read the full file on GitHub · 143 lines

Files

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.

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. today First seen · 143 lines · 233 tokens per session scan A 787615017dfa

Subscribe to this mod's changes

tencent-local-office-edit is a skill published in the GitHub repository rojim666/SztuCode (64 stars, last pushed yesterday), licensed MIT. It adds 233 tokens to every session and 3,896 once invoked, about $0.0012 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-09-12.

Related

Other skills, from other repositories

google

Gmail, Google Calendar, Drive, Docs, Sheets and Contacts for a connected Google account: read and search mail, send and reply, book and move meetings, find files, read and write Docs and Sheets, look people up. Use whenever the user mentions their email, inbox, calendar, meetings, Drive, a Google Doc or Sheet.

intentic/intentic · 0 tokens

xlsx-official

Use this skill to build, edit, clean, or inspect a spreadsheet file (.xlsx, .xlsm, .xltx, .csv, or .tsv) when that file is the deliverable or the record being changed: financial and operating models, formula-driven summaries, template fills, cell and row patches, messy-data repair, sheet-to-CSV export, and workbook…

evoelsewhere/evoflux · 109 tokens

business-data-structuring

Inspect messy CSV/XLSX tables and create a reviewed clean business dataset with normalized headers, types, dates and amounts. Use for preparing a table; do not operate CRM entities or turn the preparation step into business analysis.

Prompthon-IO/agent-systems-handbook · 50 tokens

spreadsheet-analyst

Use when the user asks to inspect, clean, analyze, transform, calculate, or produce CSV or spreadsheet workbooks. Inspect sheets, schemas, formulas, and available spreadsheet tools first, preserve source data, and validate results with independent totals and rendered or structural checks.

lfyxhappy/lfcode · 59 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

xlsx

Create/edit/analyze/verify spreadsheet workbooks including XLSX/CSV/TSV.

Hmbown/CodeWhale · 20 tokens