关于 excel
面向 Excel 工作簿制作与审查的 Skill,强调公式计算、独立假设单元格、格式规范和交付前审计,并介绍用 Pandas 分析、用 Openpyxl 格式化。
主要功能
- 01用公式计算派生值
- 02将输入集中在假设单元格
- 03规范单位和数字格式
- 04使用 Pandas 分析并用 Openpyxl 格式化
- 05重新计算并审计工作簿
适用场景
- 01构建财务或分析模型
- 02统一工作簿输出格式
- 03交付前检查公式
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ igorwarzocha/ opencode-workflows --skill excel安装后在 Claude Code 中输入/excel确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/artifact_tool_spreadsheet_formulas.mdartifact_tool_spreadsheets_api.mdspreadsheet.mdreferences/examples/create_basic_spreadsheet.pycreate_spreadsheet_with_styling.pyread_existing_spreadsheet.pystyling_spreadsheet.pyreferences/examples/features/change_existing_charts.pycite_cells.pycreate_area_chart.pycreate_bar_chart.pycreate_doughnut_chart.pycreate_line_chart.pycreate_pie_chart.pycreate_tables.pyset_cell_borders.pyset_cell_fills.pyset_cell_width_height.pyset_conditional_formatting.pyset_font_styles.pyset_merge_cells.pyset_number_formats.pyset_text_alignment.pyset_wrap_text_styles.pyscripts/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