personal-accounting

个人记账技能,支持文字输入和图片账单识别。当用户提到记账、记录花费、添加支出/收入、上传账单图片、查看账单、统计消费时必须使用此技能。用户单独发送图片(无任何文字)时也必须触发此技能,直接看图判断金额并记账,不要等待用户补充说明。所有账单按天存储在 bills/ 文件夹中,同一天的账单累加到同一文件。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "personal-accounting" with this command: npx skills add jzw6/personal-accounting

记账技能 (personal-accounting Skill)

功能概述

  • 文字记账:解析自然语言,提取金额、分类、备注
  • 图片记账:直接看图识别账单金额,由模型判断最终支付金额
  • 按天存储:账单写入 bills/YYYY-MM-DD.md,同一天记录追加到同一文件

目录结构

personal-accounting/
├── SKILL.md
├── bills/                # 账单存储目录(自动创建)
│   └── YYYY-MM-DD.md
├── scripts/
│   └── record_bill.py    # 账单写入/查询
└── references/
    └── categories.md     # 消费分类关键词参考

⚠️ 使用前提

图片记账依赖多模态模型(能看图的模型)。如果你只发图片但模型没有识别,请检查当前使用的模型是否支持图片输入。

推荐模型:Claude 3.5 Sonnet / Claude 3 Opus / GPT-4o 等支持视觉的模型。


使用流程

Step 1:判断输入类型

输入类型处理方式
纯文字直接解析金额、分类、备注
纯图片(无文字)直接看图记账,不询问用户意图
图片+文字看图判断金额,用户文字作为备注或分类提示

Step 2:解析账单信息

提取字段:

字段说明
amount金额(元,保留2位小数)
typeexpense(支出)/ income(收入)
category分类,参考 references/categories.md
note备注(可选)
date日期(默认今天)

文字解析关键词:

  • "花了 / 付了 / 消费 / 支出" → expense
  • "收到 / 收入 / 进账" → income

Step 3:图片识别(如有图片)

直接观察图片内容,按以下优先级判断金额:

  1. 🥇 「实付 / 实收 / 已支付 / 需付 / 支付金额」→ 用户最终付出的钱
  2. 🥈 「合计 / 总计 / 总额 / 应付」→ 订单总价
  3. ❌ 忽略:单品价格、优惠减免、配送费、税额、找零
  4. 若有多个候选,选语义最接近「最终实际支付」的数字
  5. 无法判断时,描述看到的内容并请用户确认金额

Step 4:写入账单文件

python scripts/record_bill.py \
  --amount <金额> \
  --type <expense|income> \
  --category <分类> \
  --note "<备注>" \
  --date <YYYY-MM-DD>   # 可选,默认今天

Step 5:回复用户

✅ 已记录
📅 2024-01-15  🏷️ 餐饮  💸 支出 ¥20.00
📝 备注:外卖黄焖鸡
📊 今日累计支出:¥68.00

账单文件格式

bills/YYYY-MM-DD.md

# 账单 2024-01-15

| 时间 | 类型 | 分类 | 金额 | 备注 |
|------|------|------|------|------|
| 08:30 | 支出 | 餐饮 | ¥15.00 | 早餐 |
| 12:15 | 支出 | 餐饮 | ¥20.00 | 外卖黄焖鸡 |
| 18:00 | 收入 | 工资 | ¥500.00 | 兼职 |

---
**今日支出:¥35.00 | 今日收入:¥500.00 | 净额:+¥465.00**

查询功能

python scripts/record_bill.py --list                        # 今日账单
python scripts/record_bill.py --list --date 2024-01-15     # 指定日期
python scripts/record_bill.py --summary --month 2024-01    # 月度汇总

错误处理

场景处理方式
图片模糊/看不清金额描述看到的内容,请用户确认
图片非账单告知用户并询问是否手动输入
未指定分类根据内容推断,告知用户可纠正

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated