xlsx

数据 社区
  • 作者仓库星标 0
  • 许可证 Proprietary. LICENSE.txt has complete terms
  • 作者更新于 2026年8月22日 01:10
解读按原文结构重写,命令、链接、术语均保留;右侧可核对作者原始 SKILL.md

xlsx 是给生成 / 修改 Excel 文件的指南——它把「行业级 financial model」的所有不成文规则成文:字体一致、零公式错误、保留既有模板、严格的颜色编码、数字格式标准、公式构造规则。核心戒律:每份交付的 Excel 必须 #REF! / #DIV/0! / #VALUE! / #N/A / #NAME?

通用要求

  • 专业字体:除非用户另说,全部用一致的专业字体(Arial / Times New Roman)
  • 零公式错误:任何 #REF! 之类直接判废
  • 保留既有模板:修改文件时严格按既有 format / style / convention,不要把"标准化"强加到已有模式上——既有 template 永远 override 这份指南

Financial model 的颜色编码(行业标准)

  • 蓝色文字 (RGB 0,0,255):硬编码 input、用户会改的情景数字
  • 黑色文字 (RGB 0,0,0):所有公式与计算
  • 绿色文字 (RGB 0,128,0):本工作簿内跨 sheet 的链接
  • 红色文字 (RGB 255,0,0):外部文件链接
  • 黄色背景 (RGB 255,255,0):关键假设 / 需要更新的单元格

数字格式标准

  • 年份:当文本("2024" 而非 "2,024")
  • 货币$#,##0,header 必须标单位("Revenue ($mm)")
  • :用数字格式让所有 0 显示成 "-",含百分比($#,##0;($#,##0);-
  • 百分比:默认 0.0%(一位小数)
  • 倍数0.0x(valuation multiples 如 EV/EBITDA、P/E)
  • 负数:用括号 (123),不用 -123

公式构造规则

  • 假设单元格独立:所有 assumption(增长率、margin、倍数)放独立 cell;公式里用引用而非硬编码——=B5*(1+$B$6) 优于 =B5*1.05
  • 错误防护:核 cell 引用、查 range 的 off-by-one、所有 projection 期间公式一致、用边缘值(0 / 负数)测、查无意中的循环引用
  • 硬编码必须文档化:紧邻 cell 注一行 "Source: [System/Document], [Date], [Specific Reference], [URL if applicable]"

工作流要点

读取 + 分析数据先做;改文件时先看、再仿、再改——不要替别人重新 design。重算公式前确认 calculation mode(automatic / manual)。

适合的场景

  • 生成 / 修改 financial model(DCF / LBO / 三表)
  • 维护既有 Excel 模板,需严格按规范填数
  • 多人协作的财务交付物

不适合

  • 表格只是数据展示(无公式 / 无模型):CSV / 简单 xlsx 写出即可
  • 用 Google Sheets / Numbers:本指南面向 Excel 公式语义

配套

pdf / make-pdf(导出固化为不可编辑的 PDF)、pptx(财务模型搬上 deck)、theme-factory(演示视觉风格)、landing-report(财务输出附在发布说明)。

流狐档案 作者与许可取自来源;运行、权限和网络为流狐检测或估算
流狐分类
数据
作者声明 Agent
未找到明确声明;不据此推断已兼容或已测试
静态检查
94 / 100 · 启发式扫描,不代表运行安全
作者 / 版本 / 许可
@anthropics · Proprietary. LICENSE.txt has complete terms
流狐 Token 估算
低消耗
流狐接入估算
即装即用
是否需要外部 API Key
未发现要求
检测到的系统要求
未声明
底层运行要求
Python
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
检测到的网络行为
仅限本地
安装命令数
无(仅作为资料)

档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。

需要注意: 未限定 allowed-tools,默认拥有全部工具权限。

输出预览 xlsx.preview
# Requirements for every output

- **Professional font** (Arial, Times New Roman) throughout, unless the user says otherwise.
- **Zero formula errors.** Never ship while `recalc.py` reports `errors_found`. If you think an error predates you, prove it: load the *original* with `data_only=True` and look at that cell. An error you introduced looks exactly like one you inherited.
- **Use formulas, never hardcoded results.** Write `sheet['B10'] = '=SUM(B2:B9)'`, not the Python-computed total. The sheet must recalculate when its inputs change.
- **Follow the user's spec literally.** Exact tab names, exact column headers, and the formula they spelled out. A redesign that computes something else fails, however elegant.
- **Document every assumption and hardcoded number** where the reader will see it — a cell comment, or an adjacent cell at a table's end. Cite a real source when one exists (`Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]`); when the number came from the user, say so plainly.
- **A workbook *you create* for someone to fill in** needs a short legend naming which cells to edit, and one example row of realistic values showing the expected format. Never add such a row to a file you were asked to edit.

讨论

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