/install ledger-project-expense-entry
Ledger Project Expense Entry
Use this skill for fast bookkeeping from short natural-language messages.
Defaults
direction: default支出currency: defaultCNYdate: default today (Asia/Taipei)
Only change defaults if user explicitly provides different values.
Parse target
Extract from message:
project(项目名)description(消费内容)amount(number)- optional
date - optional
currency - optional
direction(收入/支出) - optional
tags
If project and description are both present, build description as:
\x3Cproject> - \x3Cdescription>
If only one exists, use that field directly.
If amount is missing, ask one short clarification question.
Write command
IMPORTANT: Get today's date (YYYY-MM-DD) first, for determining which month file to write to.
# Get today's date in Asia/Taipei timezone
CURRENT_DATE=$(TZ='Asia/Taipei' date +%Y-%m-%d)
Then append via existing script:
python3 projects/scripts/add_ledger_entry.py \
--data-root projects/data \
--date "$CURRENT_DATE" \
--direction \x3C支出|收入> \
--amount \x3Cnumber> \
--currency \x3CCNY|USD|JPY|...> \
--description \x3Cproject-description> \
--tags \x3Ctag1,tag2,...> \
--source manual \
--batch manual
Category catalog (must check before writing)
Before each write, check:
projects/docs/CATEGORY_CATALOG.md
Selection policy:
- Prefer existing values from catalog (
tags/major_category/type/currency). - If user gives a new tag not in catalog and meaning is clear, write it; otherwise ask one short confirmation.
- If uncertain, keep optional fields empty rather than inventing noisy labels.
Tag suggestion rules
- If user gives tags, use them directly.
- If user does not give tags:
- project/infra/subscription/domain/server ->
开发成本/服务器/域名/通讯网络(pick the closest one) - meal/drink ->
外卖/下馆子/饮料零食 - ride/transport ->
打车/交通卡/火车/飞机
- project/infra/subscription/domain/server ->
- If still uncertain, keep tags empty.
Response format
After appending, reply with:
- month file path
- one-line summary:
日期 | 流向 | 金额币种 | 描述
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ledger-project-expense-entry - 安装完成后,直接呼叫该 Skill 的名称或使用
/ledger-project-expense-entry触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Ledger Project Expense Entry 是什么?
Record natural-language project expense messages into ledger JSONL. Use when user sends "项目+支出" directly (e.g., "OpenClaw 服务器 89"), wants quick记账, or asks to... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。
如何安装 Ledger Project Expense Entry?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ledger-project-expense-entry」即可一键安装,无需额外配置。
Ledger Project Expense Entry 是免费的吗?
是的,Ledger Project Expense Entry 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ledger Project Expense Entry 支持哪些平台?
Ledger Project Expense Entry 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ledger Project Expense Entry?
由 shing19(@shing19)开发并维护,当前版本 v1.0.0。