财务运营 · 技能模板
BudgetTrackingSkill
汇总预算计划、实际支出与项目指标,通过脚本自动生成差异分析、预警信号与管理建议,帮助财务与业务团队对齐预算执行情况。
Skill 结构概览
- 指令层:强调差异阈值、输出格式与应对策略提醒。
- 资源层:包含预算表、成本中心说明与历史风险案例。
- 工具层:Python 脚本自动计算偏差、趋势与关键指标。
推荐资源
- data/budget_plan.xlsx —— 年度预算计划表。
- data/actual_spending.csv —— 实际支出明细。
- scripts/gap_analysis.py —— 差异分析与预警脚本。
示例 SKILL.md 片段
---
name: BudgetTrackingSkill
description: >
Compare planned budgets with actual spending, highlight significant gaps, and suggest corrective actions.
version: 1.0.1
visibility: team
tags:
- finance
- analytics
entrypoint:
command: review_budget
label: Review budget variance
---
## When Claude should load this skill
- Launch during monthly or quarterly variance analysis, finance business partner reviews, or budget vs. actual standups.
- Use when datasets contain cost centers, projects, or programs that require variance commentary and escalation guidance.
## Core workflow
1. Consult `instructions/budget-guidelines.md` for variance thresholds, commentary prompts, and approval routing.
2. Run `python scripts/gap_analysis.py` to emit `VARIANCE_SUMMARY` with variance totals and over-threshold alerts.
3. Draft management updates using `templates/variance-brief.md`, documenting mitigation actions for each owner.
## Linked resources
- `data/budget_plan.xlsx` — Planned spend by cost center, account, and month.
- `data/actual_spending.csv` — Actual transactions pulled from ERP or BI exports.
- `instructions/budget-guidelines.md` — Narrative guidance for interpreting favorable/unfavorable variances.
- `templates/variance-brief.md` — Markdown outline for presenting findings to budget owners.
- `data/risk_register.csv` — Optional list of high-risk programs requiring additional commentary.
gap_analysis.py 样例
import pandas as pd
THRESHOLD = 0.1
plan = pd.read_excel("data/budget_plan.xlsx")
actual = pd.read_csv("data/actual_spending.csv")
merged = plan.merge(actual, on=["cost_center", "month"], how="left")
merged["gap"] = (merged["actual"] - merged["plan"]) / merged["plan"]
alerts = merged[merged["gap"].abs() > THRESHOLD]
summary = {
"total_variance": float(merged["gap"].sum()),
"centers_over_threshold": alerts[["cost_center", "month", "gap"]].to_dict("records"),
}
print("VARIANCE_SUMMARY=", summary)
1
上线流程
面向财务业务伙伴的部署步骤。
步骤 1: 导入预算与实际数据,确认字段映射与权限隔离。
步骤 2: 在沙箱测试差异阈值,调整预警条件与输出格式。
步骤 3: 启用通知流程,将报告发送至成本负责人与财务主管。
成功指标建议
-50%
预算偏差识别时间
+25%
预算调整响应率
95%
项目覆盖率