LobsterAI is an open-source desktop AI agent that operates files, commands, browsers, documents, spreadsheets, slides, messaging channels, and scheduled jobs in a user's working environment. It supports office work, research, and custom multi-agent workflows, while catalogue add-ons extend the agent with additional skills and workflows.
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 netease-youdao/LobsterAI --skill docxgit clone --depth 1 https://github.com/netease-youdao/LobsterAIWrote 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/netease-youdao/lobsterai/docx)<a href="https://agentmods.dev/skills/netease-youdao/lobsterai/docx"><img src="https://agentmods.dev/badge/skills/netease-youdao/lobsterai/docx/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/netease-youdao/lobsterai/docx"><img src="https://agentmods.dev/badge/skills/netease-youdao/lobsterai/docx.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.00036 | $0.01850 |
| Opus 5.5 | $0.00014 | $0.00740 |
| Sonnet 5.5 | $0.00007 | $0.00370 |
| Haiku 4.5 | $0.00004 | $0.00185 |
Grade A, and why
docx 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 3d 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.
This is a copy
100% identical to docx — 230 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DOCX 文档创建与编辑指南
请全程使用与用户输入一致的语言进行思考、过程说明与最终交付。参考手册路径请基于本技能目录(<skill_dir>)解析。
一、任务路由(按场景选最简方案)
-
编辑已有
.docx(改文字、样式、段落、插表格、选区"修改这里")- 优先使用 LobsterAI 实时编辑工具
word_read+word_edit(若工具未挂载,调用lobster_enable_tools({ capabilities: ["word"] })或已随本技能自动解锁)。 - 修改会在右侧 Word 编辑器实时显示、保留未动部分的原格式并自动保存:
- 先调
word_read({ path })获取revision、各段落id/style/text(表格单元格含table/row/cell)及用户当前selection。 - 再调
word_edit({ path, expectedRevision, edits }),支持replace_text(保留局部 run 样式)、set_text、insert_paragraph(anchor为段落id/"start"/"end",\n分段,可设style)、delete_paragraph、format_text、format_paragraph、insert_table。 - 若报
revision冲突则重新word_read后重试;编辑成功返回的结果即最新内容,无需再次word_read。
- 先调
- 优先使用 LobsterAI 实时编辑工具
-
从零新建
.docx文档- 优先选
python-docx(轻量快速、几乎零依赖折腾,适合绝大多数报告、方案、纪要、合同与含表格/图片的正式文档);若需复杂页眉页脚、多级目录或已有 Node 流水线,也可选用docx(docx-js)(需查具体 API 时再按需局部查阅<skill_dir>/docx-js.md,不要整篇盲读)。 - 写完文档脚本后一次性生成,避免反复试探环境几十步。
- 优先选
-
修订模式(Tracked Changes / 批注 / 法律或他人文档审阅)
- 仅在用户明确要求保留修订痕迹(红线修改)或添加批注时,走 OOXML 修订流程:按需局部查阅
<skill_dir>/ooxml.md的 "Document Library" 与 "Tracked Change Patterns",使用ooxml/scripts/unpack.py、scripts/document.py、ooxml/scripts/pack.py。 - 修订原则:只标记真正改动的最短词组(保留未改动文字的原始
<w:r>与rsid),不要整段删了重写。
- 仅在用户明确要求保留修订痕迹(红线修改)或添加批注时,走 OOXML 修订流程:按需局部查阅
-
读取/提取
.docx文本- 优先用
word_read或python-docx读取段落与表格;若需查看修订痕迹可用pandoc --track-changes=all file.docx -o out.md。
- 优先用
二、中文专业排版与核心避坑
- 页面与字体:
- 中文文档默认 A4 纸张(210mm × 297mm),页边距 2.54cm(1 英寸);统一配色(如深蓝主色
#1F4E79+ 浅灰表头/引用底色#F2F5F9+ 深灰正文#222222)。 - 必须同时指定西文与东亚字体(
w:eastAsia):中文推荐PingFang SC/Microsoft YaHei(或正式公文用SimSun/FangSong),西文数字用Arial/Calibri,避免出现方框乱码或中英字体错位。
- 中文文档默认 A4 纸张(210mm × 297mm),页边距 2.54cm(1 英寸);统一配色(如深蓝主色
- 结构与分页:
- 用规范标题层级(
Heading 1/Heading 2/Heading 3)和段前/段后间距(如段后 6pt、行距 1.3–1.5 倍),不要用连续空行硬撑间距。 - 分页符避坑:
python-docx:使用document.add_page_break()或段落的paragraph_format.page_break_before = True;docx-js:PageBreak必须放在Paragraph的children内,绝不能作为顶层元素,否则 Word 无法打开。
- 目录(TOC)注意:Word 动态域代码目录首次打开前默认不会自动展开页码;如需用户一打开就看到完整结构,推荐在封面后直接生成排版整洁的静态「内容导览 / 目录概览」块(或清晰告知用户可在 Word 中右键更新目录域)。
- 用规范标题层级(
- 表格与列表避坑:
docx-js表格底纹一律用ShadingType.CLEAR(禁止ShadingType.SOLID,会渲染成全黑底!);必须同时提供columnWidths与各单元格宽度,每个单元格至少包含一个Paragraph。python-docx表格显式设置列宽、表头加粗+浅色填充、清晰细边框、单元格内边距与跨页表头重复(w:tblHeader)。- 列表使用标准编号/项目符号样式;段落中不要滥用
\n强制换行,每条独立成段。 docx-js插入ImageRun时必须显式传入type("png"/"jpg"等)。
What ships with it
58 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.
- docx-js.md 17 KB
- LICENSE.txt 1.4 KB
- ooxml.md 23 KB
- ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd 1.9 KB
- ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd 2.5 KB
- ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd 2.8 KB
- ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd 1.3 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd 73 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd 6.8 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd 50 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd 624 B
- ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd 148 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd 1.2 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd 8.7 KB
- ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd 14 KB
- ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd 82 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd 1.2 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd 7.2 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd 6.2 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd 1.2 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd 880 B
- ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd 2.5 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd 3.4 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd 7.3 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd 23 KB
- ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd 1.3 KB
- ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd 237 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd 26 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd 25 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd 535 B
- ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd 5.6 KB
- ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd 3.9 KB
- ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd 167 KB
- ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd 4.5 KB
- ooxml/schemas/mce/mc.xsd 3.1 KB
- ooxml/schemas/microsoft/wml-2010.xsd 26 KB
- ooxml/schemas/microsoft/wml-2012.xsd 3.7 KB
- ooxml/schemas/microsoft/wml-2018.xsd 901 B
- ooxml/schemas/microsoft/wml-cex-2018.xsd 1.7 KB
- ooxml/schemas/microsoft/wml-cid-2016.xsd 1002 B
- ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd 600 B
- ooxml/schemas/microsoft/wml-symex-2015.xsd 745 B
- ooxml/scripts/pack.py 5.5 KB runs code
- ooxml/scripts/unpack.py 1.0 KB runs code
- ooxml/scripts/validate.py 1.9 KB runs code
- ooxml/scripts/validation/__init__.py 336 B runs code
- ooxml/scripts/validation/base.py 39 KB runs code
- ooxml/scripts/validation/docx.py 9.8 KB runs code
- ooxml/scripts/validation/pptx.py 12 KB runs code
- ooxml/scripts/validation/redlining.py 11 KB runs code
- scripts/__init__.py 65 B runs code
- scripts/document.py 49 KB runs code
- scripts/templates/comments.xml 2.6 KB
- scripts/templates/commentsExtended.xml 2.6 KB
- scripts/templates/commentsExtensible.xml 2.7 KB
- scripts/templates/commentsIds.xml 2.6 KB
- scripts/templates/people.xml 147 B
- scripts/utilities.py 13 KB runs code
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.
- 3d ago Changed · -145 lines · -41 tokens per session scan B → A ea1829ce26db
- 1mo ago Changed · +17 lines c08e786a190a
- 3mo ago First seen · 198 lines · 77 tokens per session scan B 6c07fb81bf69
docx is a skill published in the GitHub repository netease-youdao/LobsterAI (6,228 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,850 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to docx, differing in 230 lines, and is treated as a copy.
docx compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docxnetease-youdao/LobsterAI | Skill | 6.2k | yesterday | MIT | A | 36 | Claude Code, Codex |
| ha-data-analyticsshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 106 | Codex |
| feishushiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 189 | Claude Code |
| office-docxshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 64 | Claude Code, Codex |
| office-pptxshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 62 | Claude Code, Codex |
| office-xlsxshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 64 | Claude Code, Codex |
| hive.pdfaden-hive/hive | Skill | 11k | 2d ago | Apache-2.0 | A | 98 | Claude Code, Codex |