← Back to Skills Marketplace
230
Downloads
2
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install billcat-save-my-money
Description
使用 BillCat API 从自然语言中提取并保存记账信息到乖猫记账 App,并支持删除账单、账单统计、账本与资产列表查询。适合当用户想把一句中文消费/收入描述转成结构化账单、按 billId 删除账单、按时间范围统计收入支出,或查看账本/资产汇总时使用。
README (SKILL.md)
\r \r
BillCat Save My Money\r
\r
通过 BillCat 的 extractbill 与 skill 接口,把自然语言账单描述提取成结构化 JSON 并实际保存到 乖猫记账 App 中,同时支持按 billId 删除账单、按日期范围统计收入支出,以及查询账本和资产汇总。\r
\r
获取 API Key\r
\r
- 下载 乖猫记账 App。\r
- 在 App 内给 OpenClaw 发送一条消息 "openclaw"。\r
- 返回内容里可拿到
BILLCAT_API_KEY。\r \r
配置方式\r
\r
方式 1:环境变量\r
\r
# Windows PowerShell\r
$env:BILLCAT_API_KEY="你的 key"\r
\r
# macOS / Linux\r
export BILLCAT_API_KEY="你的 key"\r
```\r
\r
### 方式 2:写入 `~/.openclaw/.env`\r
\r
```env\r
BILLCAT_API_KEY=你的 key\r
```\r
\r
### 方式 3:写入 `~/.openclaw/openclaw.json`\r
\r
这个 skill 现在也会自动读取 `skills.entries.billcat-save-my-money.apiKey`,并把它当作 `BILLCAT_API_KEY` 使用。\r
\r
```json\r
{\r
"skills": {\r
"entries": {\r
"billcat-save-my-money": {\r
"apiKey": "你的 billcat key"\r
}\r
}\r
}\r
}\r
```\r
\r
也支持显式写成:\r
\r
```json\r
{\r
"skills": {\r
"entries": {\r
"billcat-save-my-money": {\r
"env": {\r
"BILLCAT_API_KEY": "你的 billcat key"\r
}\r
}\r
}\r
}\r
}\r
```\r
\r
优先级:`BILLCAT_API_KEY` 环境变量 > `openclaw.json` > `~/.openclaw/.env`\r
\r
## 命令\r
\r
在 OpenClaw 工作区运行:\r
\r
```bash\r
# 默认输出原始 JSON\r
python {baseDir}/scripts/extract_bill.py --text "中午吃饭160"\r
\r
# 美化 JSON\r
python {baseDir}/scripts/extract_bill.py --text "打车花了35" --format pretty\r
\r
# 输出简洁 Markdown\r
python {baseDir}/scripts/extract_bill.py --text "收到工资8000" --format md\r
\r
# 删除一条账单\r
python {baseDir}/scripts/delete_bill.py --bill-id "账单ID" --format md\r
\r
# 删除多条账单\r
python {baseDir}/scripts/delete_bill.py --bill-id "billId1,billId2" --format pretty\r
\r
# 统计某个时间范围内的总的收入和支出\r
python {baseDir}/scripts/bill_statistics.py --start-date 20260301 --end-date 20260331 --format md\r
\r
# 查询某个时间范围内的账本和资产汇总,也可以统计某个时间范围内的账本或者资产的收入和支出情况\r
python {baseDir}/scripts/list_books_assets.py --start-date 20260301 --end-date 20260324 --format md\r
\r
# 不传日期,直接查询当前可用账本和资产\r
python {baseDir}/scripts/list_books_assets.py --format pretty\r
\r
# 从标准输入读取\r
echo "昨天买咖啡18" | python {baseDir}/scripts/extract_bill.py --stdin --format pretty\r
```\r
\r
## 能力说明\r
\r
### 1. 提取并保存账单\r
\r
- 调用 `extractbill` 接口\r
- 成功后会直接写入一条账单到乖猫记账 App\r
- 建议使用 `--format md` 或 `--format pretty`,这样更容易看到返回的 `billId`\r
\r
### 2. 删除账单\r
\r
- 调用 `skill` 接口,`action=delete`\r
- 需要传入一个或多个 `billId`\r
- 支持逗号分隔批量删除\r
\r
### 3. 账单统计\r
\r
- 调用 `skill` 接口,`action=statics`\r
- 需要传入 `startDate` 和 `endDate`\r
- 日期格式固定为 `YYYYMMDD`\r
\r
### 4. 账本与资产列表\r
\r
- 调用 `skill` 接口,`action=list`\r
- 可选传入 `startDate` 和 `endDate`\r
- 返回账本列表 `books` 与资产列表 `assets`\r
- 每个账本/资产都会附带 `totalIncome`、`totalExpense`、`netAmount`\r
\r
## 输出格式\r
\r
> 注意:每次成功调用接口时,不只是“识别/提取”,而是会实际写入一条账单到乖猫记账 App。\r
\r
### raw\r
直接返回 BillCat API 原始 JSON。\r
\r
### pretty\r
格式化后的 JSON,便于阅读。\r
\r
### md\r
优先提取常见字段并输出为 Markdown;记账结果会优先展示 `billId`,便于后续删除账单;如果接口字段未知,则回退为 JSON 代码块。\r
\r
## 适用场景\r
\r
- 用户想把一句消费描述转成结构化账单并直接保存到 App\r
- 用户想在成功记账后拿到 `billId` 以便后续删除或追踪\r
- 用户想按 `billId` 删除一条或多条账单\r
- 用户想统计某个时间范围内的收入、支出和净额\r
- 用户想查看某段时间内各账本、资产账户的收入/支出/净额汇总\r
- 用户要快速识别金额、类型、时间、备注等字段\r
- 用户要把聊天式输入接入记账流水线\r
- 用户在做“自动记账”“消费整理”“账单抽取”相关自动化\r
\r
## 注意事项\r
\r
- 该 skill 目前封装的是接口:`POST https://billcat.cn/api/app/openclaw/extractbill`\r
- 删除和统计能力封装的是接口:`POST https://billcat.cn/api/app/openclaw/skill`\r
- 账本/资产列表查询能力也封装在接口:`POST https://billcat.cn/api/app/openclaw/skill`\r
- 虽然接口名叫 `extractbill`,但调用成功后,账单也会同步保存到乖猫记账 App\r
- 删除账单必须依赖 `billId`,因此建议记账时保留原始 JSON,或直接使用 Markdown/pretty 输出查看 `billId`\r
- 统计接口当前使用的 action 是 `statics`\r
- 列表接口当前使用的 action 是 `list`\r
- 输入建议尽量简洁自然,例如:`午饭 32`、`地铁 4 元`、`3 月房租 2500`\r
- 如果只是想测试,请避免重复提交同一条内容,以免在 App 中生成重复账单\r
- 如果接口返回了更丰富的分类字段,优先保留原始 JSON 以免丢失信息\r
Usage Guidance
This skill will send the text you provide and your BILLCAT_API_KEY to https://billcat.cn and will actually create/delete bills in your 乖猫记账 account (extractbill saves entries). If you install it: (1) keep your BILLCAT_API_KEY secret; the scripts read it from the environment or from ~/.openclaw/openclaw.json or ~/.openclaw/.env as documented; (2) avoid repeatedly submitting the same text (duplicates will be saved); (3) review the API host (billcat.cn) if you have trust concerns; and (4) if you do not want autonomous calls, be aware the skill is user-invocable and model invocation is allowed by default—you can restrict usage in your agent settings if desired.
Capability Analysis
Type: OpenClaw Skill
Name: billcat-save-my-money
Version: 1.0.5
The skill bundle provides a legitimate interface for the BillCat (乖猫记账) financial application, allowing users to extract, save, delete, and analyze bill data via natural language. It handles the required `BILLCAT_API_KEY` by reading it from environment variables or local OpenClaw configuration files and communicates exclusively with the service's official domain (billcat.cn). The code uses standard Python libraries (urllib, json, argparse) without any signs of obfuscation, malicious execution, or unauthorized data exfiltration.
Capability Assessment
Purpose & Capability
Name/description match implementation: scripts call extractbill and skill endpoints on https://billcat.cn and provide extract, delete, statistics, and list operations. Requested artifact (BILLCAT_API_KEY) is the expected credential for this purpose.
Instruction Scope
SKILL.md and the code direct network calls only to billcat.cn and instruct how to place the BILLCAT_API_KEY. The code additionally reads ~/.openclaw/openclaw.json and ~/.openclaw/.env to load the key — this is documented in SKILL.md and is proportional to the stated configuration options.
Install Mechanism
No install spec; included are small Python scripts (no external downloads or installers). No archive downloads or third-party package installs are specified.
Credentials
Only BILLCAT_API_KEY is required and used for Authorization header when calling the BillCat API. The skill reads only the declared config paths (~/.openclaw/openclaw.json and ~/.openclaw/.env) to locate that key; no unrelated credentials or environment variables are requested.
Persistence & Privilege
always is false and the skill does not modify other skills' configuration. It does not request permanent elevated privileges or system-wide changes.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install billcat-save-my-money - After installation, invoke the skill by name or use
/billcat-save-my-money - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.5
- 新增 homepage 字段,提供 GitHub 项目主页链接。
- 其余描述和功能保持不变。
v1.0.4
- 优化了部分命令和能力说明,增加了账本、资产收入支出统计的使用场景说明
- 更新了命令注释,使账单统计与账本/资产汇总能力描述更清晰
- 对账本和资产查询的命令和功能细节进行了补充说明
- 细化了文档表述,提升易读性和指引准确性
v1.0.3
- 新增账本与资产列表查询功能:支持按时间范围查看账本和资产账户的收支及汇总
- 新增脚本 scripts/list_books_assets.py,可查询账本与资产信息
- SKILL.md 文档增加账本/资产查询指令与说明,完善命令和使用场景
- skill 说明与描述同步更新,覆盖所有新增能力
v1.0.2
BillCat now supports deleting bills and statistics:
- 新增删除账单脚本 (`delete_bill.py`),支持按照 billId 删除单条或多条账单。
- 新增账单统计脚本 (`bill_statistics.py`),支持指定时间范围快速统计收入、支出及净额。
- 命令行用法中添加了删除账单和账单统计的示例。
- 文档描述/说明升级,突出 billId 输出、删除及统计新能力。
- 内部结构新增 billcat_api 基础模块,统一封装调用接口逻辑。
v1.0.1
- 支持自动读取 ~/.openclaw/openclaw.json 配置文件中的 apiKey 和 env.BILLCAT_API_KEY 字段,无需仅依赖环境变量。
- 优化配置方式说明,新增配置优先级顺序。
- 更新获取 API key 指引,需在 App 内发送关键词 "openclaw"。
v1.0.0
Initial release: Extract and save structured bill data from natural language to the BillCat App.
- Allows users to convert natural language expense/income descriptions (e.g. “吃饭160”) into structured bills.
- Directly saves recognized bills to the 乖猫记账 App using the BillCat API.
- Supports output in raw JSON, formatted JSON, or Markdown.
- Provides setup instructions for API Key and environment configuration.
- Suitable for fast expense recognition, automated journaling, and integration into accounting automation.
Metadata
Frequently Asked Questions
What is 乖猫记账?
使用 BillCat API 从自然语言中提取并保存记账信息到乖猫记账 App,并支持删除账单、账单统计、账本与资产列表查询。适合当用户想把一句中文消费/收入描述转成结构化账单、按 billId 删除账单、按时间范围统计收入支出,或查看账本/资产汇总时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 230 downloads so far.
How do I install 乖猫记账?
Run "/install billcat-save-my-money" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 乖猫记账 free?
Yes, 乖猫记账 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 乖猫记账 support?
乖猫记账 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 乖猫记账?
It is built and maintained by isee15 (@isee15); the current version is v1.0.5.
More Skills