officecli skillA
officecli is agent-read markdown (skill) from 834063245-creator/lantaiagent: 用内置 office 域工具读写 Word/Excel/PPT(.docx/.xlsx/.pptx)——创建、读取、结构化查询、修改、模板批量填充、渲染截图、载入逐格式构建指南。当用户要产出或修改 Office 文档、从既有文档取内容或查格式问题、把研究结果交付成 Office 文件时用。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# office 域(OfficeCLI)——兰台一等工具的操作手册
兰台内置 **`office` 域工具**(`office(action, …)`),底层是 OfficeCLI 单二进制 Office 套件
(.docx/.xlsx/.pptx 读写 + 内置渲染/公式/透视引擎)。**执行面在强制层(Rust)**:命令由那边
拼装(二进制定位 + 引号 + 环境钉扎),经 `process_cap` 的 `office_exec` 动作在 os_sandbox 里
spawn;权限**只审你声明的目标文件**(`file` / `out`)——项目内直接放行,项目外或敏感路径才问
用户。plan 模式按动作分读写。
**你不需要写命令行**——动作与参数由工具层交成 argv,引号、路径、二进制定位都不归你管。
本手册讲的是"用哪个动作 + 参数怎么写才不出错"。
## 1. 动作面(12 个)
| 动作 | 干什么 | 关键参数 |
|---|---|---|
| `view` | 读数:`mode` = text / annotated / outline / stats / issues / html / svg / forms | `file` `mode` `page` `json` |
| `get` | 取某元素及其子节点 | `file` `path` `depth` `json` |
| `query` | CSS 式选择器查元素 | `file` `selector` `json` |
| `validate` | OpenXML schema 校验 | `file` |
| `create` | 建空白文件(类型由扩展名决定) | `file` |
| `set` | 改元素属性 | `file` `path` `props` |
| `add` | 加元素(可 `parent`/`type`) | `file` `parent` `type` `props` |
| `remove` | 删元素 | `file` `path` |
| `batch` | **≥3 处改动走它**:一次开关 + 原子回滚 | `file` `items` |
| `merge` | 模板 `{{key}}` 批量填充 | `file` `out` `data` |
| `screenshot` | 渲染成 PNG(页/整册) | `file` `out` `page` 或 `grid` |
| `playbook` | 载入逐格式构建指南(见 §6) | `playbook` |
…Read the whole file at its exact version.
How to install
mdr add 834063245-creator/lantaiagent/officecli@git:20260915.de4f7d7mdr add 834063245-creator/lantaiagent/officecli@sha256:6619760f00458218Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_irhnpv6ov6o52ire)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260915.de4f7d7 latest | 2026-09-15 | de4f7d7 | 15,215 B | A | view · diff |
| git:20260915.ef036e2 | 2026-09-15 | ef036e2 | 14,662 B | A | view · diff |
| git:20260915.4412ce8 | 2026-09-15 | 4412ce8 | 14,464 B | A | view · diff |
| git:20260913.2d54081 | 2026-09-13 | 2d54081 | 13,181 B | B | view · diff |
| git:20260913.09b0924 | 2026-09-13 | 09b0924 | 19,197 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (15215 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
834063245-creator/lantaiagent · 25 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_irhnpv6ov6o52ire GET https://markdownregistry.com/api/v1/resolve?ref=834063245-creator/lantaiagent/officecli GET https://markdownregistry.com/api/v1/blob/6619760f004582188f0c97af95098d090f079630c94ad43ca40cedbb83696771
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from 834063245-creator/lantaiagent
Every file in 834063245-creator/lantaiagent