mcpField
E
excel

excel

github.com/igorwarzocha文档处理122202 次安装38 周前更新
代码仓库

关于 excel

面向 Excel 工作簿制作与审查的 Skill,强调公式计算、独立假设单元格、格式规范和交付前审计,并介绍用 Pandas 分析、用 Openpyxl 格式化。

主要功能

  1. 01用公式计算派生值
  2. 02将输入集中在假设单元格
  3. 03规范单位和数字格式
  4. 04使用 Pandas 分析并用 Openpyxl 格式化
  5. 05重新计算并审计工作簿

适用场景

  1. 01构建财务或分析模型
  2. 02统一工作簿输出格式
  3. 03交付前检查公式

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/igorwarzocha/opencode-workflows --skill excel

安装后在 Claude Code 中输入/excel确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/
artifact_tool_spreadsheet_formulas.md
artifact_tool_spreadsheets_api.md
spreadsheet.md
references/examples/
create_basic_spreadsheet.py
create_spreadsheet_with_styling.py
read_existing_spreadsheet.py
styling_spreadsheet.py
references/examples/features/
change_existing_charts.py
cite_cells.py
create_area_chart.py
create_bar_chart.py
create_doughnut_chart.py
create_line_chart.py
create_pie_chart.py
create_tables.py
set_cell_borders.py
set_cell_fills.py
set_cell_width_height.py
set_conditional_formatting.py
set_font_styles.py
set_merge_cells.py
set_number_formats.py
set_text_alignment.py
set_wrap_text_styles.py
scripts/
recalc.py

详细介绍

<modeling_standards>

  • 公式错误为零:模型不得包含 #REF!、#DIV/0! 或 #VALUE! 错误。
  • 动态逻辑:不得对推导值进行硬编码。所有计算都必须使用 Excel 公式。
  • 假设:所有输入都必须放在专用的假设单元格中。 </modeling_standards>

<professional_formatting>

  • 标准:在标题中注明单位(“收入($mm)”)。将零显示为“-”。
  • 颜色编码:Agent 应遵循项目的 branding 技能选择颜色。若未定义,Agent 应采用专业标准(例如,硬编码输入使用蓝色,公式使用黑色)。
  • 视觉效果:应使用 artifact_tool 渲染工作表并检查布局。参考:references/artifact_tool_spreadsheets_api.md。 </professional_formatting>

<technical_workflows>

1. 数据分析(Pandas)
  • 处理和汇总大量数据时应使用 Pandas。
  • 最终专业格式设置和公式插入应转换为 Openpyxl。
2. 验证循环(强制)

交付前,必须运行审计脚本:

  • python scripts/recalc.py output.xlsx
  • 必须修复生成的 JSON 摘要中指出的所有错误。 </technical_workflows>

<citation_logic>

  • 引用:对于单元格中的硬编码数据,应在批注中注明来源。
  • 最佳实践:有关跨工作表引用和复杂公式构造的指导,请参阅 references/spreadsheet.md。 </citation_logic>

</excel_professional_suite>

评论

支持 Markdown