作者

数据 社区

技能解读

当前原文的自动摘译,尚未人工审校。

产出合约

写信给./out/<name>.xlsx。如果./out/不存在,则创建它。返回最终消息中的相对路径,以便编排层可以收集它。

如何建立工作簿

编写一个简短的 Python 脚本并使用 Bash 运行它。使用openpyxl:

约定(镜像审计-xls)

蓝色/黑色/绿色。蓝色 = 硬编码输入,黑色 = 公式,绿色 = 链接到另一个工作表/文件。计算单元中没有硬编码。每个计算单元都是一个公式;每个输入都位于“输入”选项卡上。从甲板或备忘录中引用的任何值的命名范围。余额检查。包括一个支票选项卡,用于关联(BS 余额、CF 与现金关联等)并显示 TRUE/FALSE。每个文件一个模型。除非明确要求,否则不要附加到现有工作簿。

何时不使用

如果 mcp__office__excel_* 工具可用(Cowork 插件模式),请使用这些工具 - 它们通过检查点来驱动用户的实时工作簿。该技能是无头运行的文件生成后备方案。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
数据
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@anthropics · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
Python
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# 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`:

```python
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.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。