xlsx-author
它能做什么
这个技能让 AI 智能体在不打开 Excel 的情况下,制作一个包含输入、公式和检查的新 Excel 文件。适合希望获得可直接使用的工作簿文件的财务人员。
适用场景
- ✓当你需要以 Excel 文件形式交付一个新的财务模型的时候。
- ✓当你希望在电脑上不打开 Excel 的情况下制作工作簿的时候。
- ✓当你希望工作簿包含一个检查表,用于显示数字是否吻合的时候。
技能链接
https://github.com/anthropics/financial-services/blob/main/plugins/agent-plugins/earnings-reviewer/skills/xlsx-author/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我做一个 Excel 模型,包括输入表、简单预测和检查表,并把文件给我?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会编写一段简短的脚本来创建工作簿,把输入集中放在一处,并让每项计算都使用公式。然后它保存文件并报告文件位置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
xlsx-author
Use this skill when running headless (managed-agent / CMA mode) and you need to deliver an Excel workbook as a file artifact rather than editing a live workbook via mcp__office__excel_*.
Output contract
- Write to
./out/<name>.xlsx. Create./out/if it does not exist. - Return the relative path in your final message so the orchestration layer can collect it.
How to build the workbook
Write a short Python script and run it with Bash. Use openpyxl:
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill
wb = Workbook()
ws = wb.active; ws.title = "Inputs"
ws["B2"] = "Revenue"; ws["C2"] = 1_250_000_000
ws["C2"].font = Font(color="0000FF") # blue = hardcoded input
calc = wb.create_sheet("DCF")
calc["C5"] = "=Inputs!C2*(1+Inputs!C3)" # black = formula
wb.save("./out/model.xlsx")
Conventions (mirror audit-xls)
- Blue / black / green. Blue = hardcoded input, black = formula, green = link to another sheet/file.
- No hardcodes in calc cells. Every calculation cell is a formula; every input lives on an Inputs tab.
- Named ranges for any value referenced from a deck or memo.
- Balance checks. Include a Checks tab that ties (BS balances, CF ties to cash, etc.) and surfaces TRUE/FALSE.
- One model per file. Do not append to an existing workbook unless explicitly asked.
When NOT to use
If mcp__office__excel_* tools are available (Cowork plugin mode), use those instead — they drive the user's live workbook with review checkpoints. This skill is the file-producing fallback for headless runs.
常见问题
我需要安装 Excel 吗?
不需要。技能直接生成文件,因此不需要打开 Excel 窗口。
输入和公式如何显示?
技能使用颜色区分:蓝色表示手动输入的数值,黑色表示公式,绿色表示指向其他工作表的链接。
它会添加到现有的工作簿中吗?
除非你要求,否则不会。技能每个文件只制作一个模型。
详情
作者的原始描述
Produce a .xlsx file on disk (headless) instead of driving a live Excel workbook — for managed-agent sessions with no open Office app.
热度
- GitHub 星标
- 41k
- 排名
- #6568
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/28
评论
- …