← 返回
未分类

Ledger Monthly Report

Generate monthly ledger statistics in CNY with amount and ratio by tag/category, top expense breakdown, and labeled charts. Use when user asks to统计收支, 看占比, 画...
生成月度账本统计(人民币),包含金额、按标签/类别占比、主要支出明细及带标签图表。用户询问统计收支、查看占比或绘图时使用。
shing19
未分类 clawhub v1.0.0 1 版本 99726 Key: 无需
★ 0
Stars
📥 364
下载
💾 0
安装
1
版本
#latest

概述

Ledger Monthly Report

Use this skill for monthly financial summaries and charts.

Required rules

  1. Always convert/aggregate using amount_cny (RMB baseline).
  2. Report must include:
    • expense by tag: amount + ratio
    • expense by major category: amount + ratio
    • top expense heads
    • income/expense totals and ratio
  3. Charts must include:
    • tag bar chart
    • tag pie chart
    • major-category chart
    • income/expense ratio chart
  4. All charts must display numeric amount labels.
  5. Send charts to user, then delete local chart files if requested.
  6. Generated chart files must stay ignored by git (reports/*.png already ignored).

Command

IMPORTANT: Get current date on entry to determine the default month.

# Get current year-month in Asia/Taipei timezone
CURRENT_MONTH=$(TZ='Asia/Taipei' date +%Y-%m)

If user does not specify a month, use $CURRENT_MONTH as default.

Use project script (all paths relative to workspace root):

. projects/.venv-chart/bin/activate
python projects/scripts/monthly_report_cny.py \
  --data-root projects/data \
  --month "$CURRENT_MONTH" \
  --out-dir projects/reports

Outputs (under projects/reports/):

  • projects/reports/_summary_cny.json
  • projects/reports/_expense_by_tag_cny.png
  • projects/reports/_expense_by_tag_pie_cny.png
  • projects/reports/_expense_by_major_cny.png
  • projects/reports/_income_expense_ratio_cny.png

Reply template

  • 总收入(CNY)
  • 总支出(CNY)
  • 净额(CNY)
  • 按标签支出(金额+占比)
  • 按大类支出(金额+占比)
  • 大头支出 Top N
  • 收支占比(收入 vs 支出)

Then send charts.

Cleanup

If user says charts can be removed after sending:

  • delete the generated reports/*.png files for that month.
  • keep summary json unless user asks to remove it too.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 13:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Designer

shing19
通过收集需求,帮助用户从零设计 OpenClaw agent skill。逐步收集目标、输入、输出、过程控制,确认后输出完整的 skill 包(SKILL.md + 安装指南)。产出为文件,不代为安装。当用户说“创建 skill”“做一个技
★ 1 📥 477

Feishu Wechat Publish

shing19
读取用户可访问的飞书文档,将内容发送至 feishu.shing19.cc,由其发布到微信公众号草稿箱。
★ 0 📥 465

Ledger Image Entry

shing19
通过图像识别 receipt、订单或发票,提取商家、日期、金额和商品明细,转换为可入账的结构化记录。
★ 0 📥 410