excel-model

GitHub

通过编写并运行openpyxl脚本生成包含实时公式的Excel模型,支持财务、预算等场景。确保输入与计算分离,实现假设变更自动重算,并提供格式化输出及操作指引。

plugins/pm-documents/skills/excel-model/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

构建Excel模型 创建财务模型 制作预算或预测表 生成带活公式的xlsx文件

Install

npx skills add mohitagw15856/pm-claude-skills --skill excel-model -g -y
More Options

Non-standard path

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-documents/skills/excel-model -g -y

Use without installing

npx skills use mohitagw15856/pm-claude-skills@excel-model

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill excel-model -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "excel-model",
    "description": "Build a real, formula-driven Excel (.xlsx) model — not a static table. Use when asked to build an Excel model, a financial model, a budget\/forecast spreadsheet, or any .xlsx with live formulas a user can edit. Produces an actual .xlsx file via a generated openpyxl script: an inputs\/assumptions sheet, calculation sheets with real cell formulas, and formatting — so changing an input recalculates the model. Requires a code-execution environment (Claude Code, the API code tool, or Claude.ai)."
}

Excel Model Skill

A model is only useful if it's live — change an assumption and everything recalculates. A markdown table can't do that; a real .xlsx with cell formulas can. This skill builds an actual Excel workbook by writing and running an openpyxl script: a clean inputs sheet, calculation sheets that reference those inputs with real = formulas, and sensible formatting — so the user gets a file they can drive, not a snapshot.

Environment: this produces a binary file, so it needs a place to run code — Claude Code, the Anthropic API code-execution tool, or Claude.ai (with the analysis/code tool). In the browser playground (no code execution), use the markdown output as the spec instead.

Required Inputs

Ask for these only if they aren't already provided:

  • What the model is — financial model, budget, forecast, pricing model, scenario planner, etc.
  • The inputs/assumptions — the driver variables (and rough values) the user will change.
  • The outputs — what it should compute (revenue, burn, margins, totals, a P&L, etc.).
  • Structure — periods (months/years), tiers/segments, and any required layout.

Process

  1. Design before coding — lay out the sheets (Inputs · Calculations · Output/Summary), and which cells are inputs vs. formulas. Confirm the calculation logic with the user if non-trivial.
  2. Write an openpyxl script that:
    • Puts all driver assumptions on an Inputs sheet (one source of truth), labelled and formatted.
    • Builds calculation cells as real formulas referencing the input cells (e.g. =Inputs!B2*Inputs!B3), never hard-coded results — so the model is live.
    • Adds formatting: headers, number/currency/percent formats, column widths, and light cell styling for readability.
    • Saves to a clearly named .xlsx.
  3. Run it, then state the formulas used and tell the user which cells to change to flex the model.

Output Format

  • The generated .xlsx file (the deliverable).
  • A short README of the model: the sheets, the input cells to change, the key formulas in plain English, and any assumptions.

Quality Checks

  • Calculations are live cell formulas, not pasted static values
  • All driver assumptions live on one Inputs sheet and are referenced, not duplicated
  • Numbers are formatted (currency/percent/thousands) and sheets are readable
  • The script runs cleanly and the file opens in Excel/Sheets/Numbers
  • The user is told exactly which cells to change to drive the model

Anti-Patterns

  • Do not write computed results as static numbers — the whole point is that inputs recalculate
  • Do not hard-code an assumption inside a formula — put it on the Inputs sheet and reference it
  • Do not scatter inputs across sheets — one assumptions sheet, single source of truth
  • Do not skip formatting — an unformatted grid of numbers is hard to trust or use
  • Do not claim a file was produced if there was no code execution — fall back to a clear spec instead

Based On

Financial-modelling best practice (separate inputs from calculations, formula-driven, no hard-codes) implemented with openpyxl.

Programmatic Helper

This skill ships scripts/xlsx_tool.py — a zero-dependency (stdlib zip+XML) tool that produces real .xlsx files, so the model you design can be delivered as a working workbook, not a markdown table:

# Build a workbook from JSON (numbers stay numbers, "=B2*C2" becomes a live formula)
python3 scripts/xlsx_tool.py create model.xlsx --data '{"Model": [["Item","Qty","Price","Total"],["Widget",4,9.5,"=B2*C2"]]}'

# Fill {{placeholders}} in an existing template workbook
python3 scripts/xlsx_tool.py fill template.xlsx out.xlsx --values '{"month":"July","revenue":21000}'

Design the model first (per this skill), then emit the JSON and run create. Honest limits: default styling only, no charts — for formatted finals, open the generated file and style it, or use the playground's Excel export.

Version History

  • a38bc30 Current 2026-07-05 11:16

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md
exports/openclaw/brief-builder/SKILL.md
exports/openclaw/briefing-note/SKILL.md
exports/openclaw/budget-builder/SKILL.md
exports/openclaw/budget-variance-analysis/SKILL.md
exports/openclaw/bug-diagnosis/SKILL.md
exports/openclaw/bug-report/SKILL.md

Metadata

Files
0
Version
471c606
Hash
47a30f83
Indexed
2026-07-05 11:16

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-30 12:28
浙ICP备14020137号-1 $방문자$