360 Secure SkillHub
360 安全技能中心

Expense Snap

该 Skill 通过 Python 脚本把收据或消费记录写入本地 SQLite 账本,支持按商户、日期、金额、类别和明细行录入,按月份与类别查询,生成月度报表并导出 CSV。数据保存在本地运行时目录,脚本需要 Python 环境。

mehulupase01
mehulupase01
热度 42.27
最近更新 2026-05-11 17:35:35
分类:生活依赖:代码执行 / 读写文件应用场景:个人理财 / 财务 / 报告撰写 / 数据处理 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add expense-snap
Metadata
name
expense-snap
description
Capture receipt details, categorize spending, and generate monthly reports from a local SQLite ledger.
version
0.1.0
metadata
{"openclaw":{"homepage":"https://github.com/Mehulupase01/openclaw-skill-suite/tree/main/skills/expense-snap","requires":{"bins":["python"]}}}

Expense Snap

Use this skill when the user wants to turn a receipt or spending note into structured expense data, review spending by month, or export records to CSV.

When to Use

  • Logging a new receipt from text or an image transcription.
  • Categorizing spending into consistent buckets.
  • Producing monthly summaries with budget comparisons.
  • Exporting receipts for spreadsheets or reimbursement.

Commands

The helper script stores state in {baseDir}/.runtime/expense-snap.db.

Record a receipt

python {baseDir}/scripts/expense_snap.py record --merchant "Cafe Luna" --date 2026-03-22 --total 18.40 --currency EUR --category meals --line-item "Latte|4.50|1|beverages" --line-item "Sandwich|13.90|1|meals"

List receipts

python {baseDir}/scripts/expense_snap.py list --month 2026-03 --category meals

Monthly report

python {baseDir}/scripts/expense_snap.py monthly-report --month 2026-03

Export to CSV

python {baseDir}/scripts/expense_snap.py export-csv --month 2026-03 --output {baseDir}/.runtime/march-expenses.csv

Safety Boundaries

  • Never claim receipt OCR is perfect. Mark ambiguous fields as inferred.
  • Do not fabricate line items that are not visible or provided.
  • Keep currency and totals consistent with the source receipt.
  • If an image is unreadable, explain the uncertainty instead of inventing data.