officecli
Use the optional iOfficeAI/OfficeCLI engine for advanced inspection, validation, copy-on-write editing, template merge, or visual rendering of existing .docx, .xlsx, and .pptx files. Prefer MateClaw's built-in renderDocx/renderXlsx/renderPptx tools for simple new documents. Use this skill when preserving an existing template, modifying complex Office structure, checking formatting issues, validating OpenXML, or rendering a document for visual QA. This integration targets https://github.com/iOfficeAI/OfficeCLI, not the unrelated prompt-generation project with the same name.
- License 许可
- Apache-2.0
- 所属仓库
- mateaix/mateclaw
- 最近更新
- 2026-11-13
- Stars
- ★ 1.2k
- Forks
- 361
01 前言 Front Matter
- name
- officecli
- version
- 1.0.0
- requires
- [ { "key": "officecli", "type": "binary", "check": "officecli", "install": { "linux": "Install a pinned iOfficeAI/OfficeCLI release and verify its SHA256", "macos": "brew install officecli", "windows": "scoop install officecli" }, "description": "iOfficeAI/OfficeCLI executable on the MateClaw server" } ]
- platforms
- [ "macos", "linux", "windows" ]
- description
- Use the optional iOfficeAI/OfficeCLI engine for advanced inspection, validation, copy-on-write editing, template merge, or visual rendering of existing .docx, .xlsx, and .pptx files. Prefer MateClaw's built-in renderDocx/renderXlsx/renderPptx tools for simple new documents. Use this skill when preserving an existing template, modifying complex Office structure, checking formatting issues, validating OpenXML, or rendering a document for visual QA. This integration targets https://github.com/iOfficeAI/OfficeCLI, not the unrelated prompt-generation project with the same name.
- dependencies
- { "tools": [ "office_document" ] }
03 SKILL.md 正文
OfficeCLI advanced Office operations
This skill supplements MateClaw's native Office renderers. It never replaces them.
Routing
| User intent | Use |
|---|---|
| Create a simple new document from Markdown | renderDocx, renderXlsx, or renderPptx |
| Inspect an existing Office file | office_document(action="inspect") |
| Validate OpenXML structure | office_document(action="validate") |
| Apply several structured changes | office_document(action="batch") |
| Fill an existing template's placeholders | office_document(action="merge") |
| Render for visual QA | office_document(action="render") |
Safety contract
batchandmergeoperate on a private copy and never overwrite the source.- The tool only accepts
.docx,.xlsx, and.pptxinputs inside the active workspace or current chat uploads. - Do not install OfficeCLI from inside a chat. If the dependency is missing, explain that an administrator must install it on the MateClaw server.
- Do not fall back to arbitrary shell commands when
office_documentrejects an action. - Return the generated markdown link verbatim so the user can download and preview the result.
Operations
Inspect
Use one of outline, stats, issues, text, or annotated:
office_document(action="inspect", filePath="report.docx", mode="issues")
Validate
office_document(action="validate", filePath="workbook.xlsx")
Batch edit
payload must be a non-empty OfficeCLI batch JSON array. Prefer stable element IDs returned by inspection over positional paths when available.
office_document(
action="batch",
filePath="deck.pptx",
payload="[{\"command\":\"set\",\"path\":\"/slide[1]/shape[@id=42]\",\"props\":{\"text\":\"Updated\"}}]",
outputFilename="deck-updated.pptx"
)
Template merge
payload must be a non-empty JSON object:
office_document(
action="merge",
filePath="invoice-template.docx",
payload="{\"client\":\"Acme\",\"total\":\"$5,200\"}",
outputFilename="invoice-acme.docx"
)
Render
Use html, screenshot, svg, or pdf. Prefer screenshot for visual QA.
office_document(action="render", filePath="deck.pptx", mode="screenshot")
After rendering, inspect the returned preview before claiming that layout or formatting is correct.
04 同仓库更多 Skills
sample
Test fixture for SkillBundleMaterializer.
xhs_note
小红书图文创作 / 笔记 / 种草文案 (xiaohongshu / red note) — 端到端:成文→配图(≥3 张竖版)→去AI化→在线预览打包交付。以图为主、文字辅助:标题四件套 + 碎句正文 + 话题标签,配 3:4 竖版卡片,最少 3 张图。honors user persona & style memory.
x_intel
Read X (Twitter) posts, search, timelines and user profiles via the official xurl CLI.
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
webhook-subscriptions
Webhook subscriptions: event-driven agent runs.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.