genoffice
它能做什么
这项技能运行 GenOffice 命令行工具,在你的电脑上制作、转换和检查 Office 文件。适合经常处理演示文稿、电子表格、Word 文档和 PDF 的人。
适用场景
- ✓当你想根据简要说明或数据制作新的演示文稿、电子表格或 Word 文档时。
- ✓当你需要在 PDF、Word、Excel、PowerPoint、Markdown、HTML 或 CSV 之间转换文件格式时。
- ✓当你想读取现有 Office 文件的结构和文字,以便智能体进行检查的时候。
技能链接
https://github.com/genspark-ai/genoffice/blob/main/skills/genoffice/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这份 Markdown 报告转换为 Word 文档,然后再转换为 PDF。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会运行 genoffice 命令。该命令无需打开窗口,直接使用 GenOffice 自带的引擎工作。大部分处理都在你的电脑上完成,当程序需要读取结果时,智能体会要求输出 JSON 格式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
genoffice — GenOffice from the terminal
genoffice is installed with GenOffice. Run genoffice --version first. If the command is not found, GenOffice writes the launcher directory to ~/.genoffice/launcher (Windows: %USERPROFILE%\.genoffice\launcher) on every start: read that one line and run "<dir>/genoffice" from bash or "<dir>\genoffice.cmd" from PowerShell / cmd, quoted, in place of genoffice below. Default locations when that file is missing: macOS /Applications/GenOffice.app/Contents/Resources/cli, Windows %LOCALAPPDATA%\Programs\GenOffice\resources\cli, Linux /opt/GenOffice/resources/cli. Every command runs headless on the app's own engines; only search, image and media send data off the machine, to the provider configured in GenOffice.
Always add --json when a program reads the output: one JSON object on stdout, { "status": "ok" | "partial", "command", "summary", "output_path"?, "warnings"?, "detail"? } (partial: an apply with --best-effort / --stop-on-error wrote the file but lost ops) or { "status": "error", "code", "error", "message", "suggestion"?, "detail"? }. Exit codes: 0 ok, 1 usage or rejected ops, 2 file not found / output exists / file open in GenOffice, 3 conversion failed, 4 app not available. error is the machine-readable reason (table under "When a command fails"), suggestion the next step in one sentence, including did you mean "…"? when a command, option, op name, element id or sheet name is one typo away. detail carries facts as fields (failures[] with index, op, error, reason, valid_range, available, supported, usage; sheets, options, commands); never parse message.
Commands
| Command | What it does |
|---|
常见问题
我的数据会离开我的电脑吗?
大部分不会。该技能说明,只有搜索、图片和媒体命令才会把数据发送到你在 GenOffice 中设置的服务商。
如果找不到 genoffice 命令怎么办?
该技能会说明如何找到 GenOffice 每次启动时生成的启动器文件夹,并从那里运行该命令。
如果输出文件正在打开会怎样?
对于在 GenOffice 中已打开或已存在的文件,工具会返回错误代码,智能体可以把它报告给你。
详情
作者的原始描述
Create, convert, read and edit Office documents locally with GenOffice's command line. Build a new presentation (pptx) from a brief through a checked outline, per-page spec and render pipeline, a new spreadsheet (xlsx) from CSV or JSON data with formulas, a new Word document (docx) from Markdown or HTML, or a PDF; convert between pdf, docx, xlsx, pptx, md, html and csv; read the structure and text of an existing file (including the user's own docx / xlsx / pptx as source material) and apply structured edits to it. Use whenever the user asks for a slide deck, presentation, spreadsheet, workbook
repo: genspark-ai/genoffice
热度
- GitHub 星标
- 12k
- 排名
- #11588
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
brand-copy
12k帮你的智能体为一款产品撰写多个版本的宣传语、卖点和品牌故事,面向目标受众,并以 Markdown 格式提供。
budget-planner
12k帮你的智能体把商业计划或项目支出转换为预算工作簿,包含科目行、月度金额、汇总和假设表。
business-plan
12k帮你的智能体撰写一份完整的商业计划书,涵盖市场、产品、商业模式、竞争对手、财务预测和团队,并以 Word 文档形式提供。
business-report
12k帮你的智能体用固定结构撰写 Word 商业报告,从执行摘要到建议,所有数字均有可追溯的来源。