Skills2026年5月14日·1 分钟阅读

OfficeCLI — Word/Excel/PPT CLI for Agents

Install OfficeCLI as a single binary and let agents create/edit Word, Excel, and PowerPoint files with live preview—no Microsoft Office required.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Stage only · 17/100Stage only
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Stage only
信任
信任等级:Established
入口
Asset
通用 CLI 安装命令
npx tokrepo install 9907152d-c0b0-5e6e-a674-6a96a4a4f169

简介

用 OfficeCLI 让 AI agent 通过 CLI 创建/修改 Office 文件,并在本地预览结果。

OfficeCLI 提供单二进制的 Word/Excel/PPT 操作能力:让 agent 读写与生成文档并支持本地实时预览,无需安装 Microsoft Office,适合做文档自动化与批量处理。

适合谁: 希望把文档自动化接入 agent 工作流(生成 PPT、修补 DOCX、批量编辑),且不想依赖 Office 安装的开发者

可搭配: macOS/Linux/Windows,安装/下载二进制后直接使用,本地文件路径,支持可选的实时预览服务

上手时间: 约 3–8 分钟(安装脚本 + 首次运行)

关键事实(已验证)

  • GitHub:4,383 stars · 363 forks · 最近更新 2026-05-14。
  • 许可证:Apache-2.0(GitHub API 已验证仓库 URL / 头像等基础信息)。
  • 入口命令(基于 README):curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCLI/main/install.sh | bash

主要内容

  • 让 Office 生成更可控:模板入库,只允许 agent 修改约定的占位符/变量区域。
  • 开发阶段用 watch 快速验证版式,再把流程固化到批量脚本/流水线里。
  • CI 场景把输出集中到 artifacts,并对结构性变更做 diff/回归检查。

README 摘录(来源)

# OfficeCLI

> **OfficeCLI is the world's first and the best Office suite designed for AI agents.**

**Give any AI agent full control over Word, Excel, and PowerPoint — in one line of code.**

Open-source. Single binary. No Office installation. No dependencies. Works everywhere.

**Built-in agent-friendly rendering engine** — agents can *see* what they create, no Office required. Render `.docx` / `.xlsx` / `.pptx` to HTML or PNG, closing the *render → look → fix* loop anywhere the binary runs.

[![GitHub Release](https://img.shields.io/github/v/release/iOfficeAI/OfficeCLI)](https://github.com/iOfficeAI/OfficeCLI/releases)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)

**English** | [中文](README_zh.md) | [日本語](README_ja.md) | [한국어](README_ko.md)

<p align="center">
  <strong>💬 Community:</strong> <a href="https://discord.gg/2QAwJn7Egx" target="_blank">Discord</a>
</p>

<p align="center">
  <img src="assets/ppt-process.gif" alt="OfficeCLI creating a PowerPoint presentation on AionUi" width="100%">
</p>

<p align="center"><em>PPT creation process using OfficeCLI on <a href="https://github.com/iOfficeAI/AionUi">AionUi</a></em></p>

FAQ

Q: 需要安装 Microsoft Office 吗? A: README 描述为单二进制方案,不依赖 Office 安装。

Q: 最快的演示方式? A: 先 create 生成文件,再用 officecli watch 打开实时预览。

Q: 能让 agent 直接用吗? A: 仓库提供了面向 agent 的 SKILL 文件与 CLI 命令;建议从本地文件与最小权限路径开始。

🙏

来源与感谢

来源:https://github.com/iOfficeAI/OfficeCLI > 许可证:Apache-2.0 > GitHub:4,383 stars · 363 forks · 最近更新 2026-05-14

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产