Install
openclaw skills install ledger-project-expense-entryRecord natural-language project expense messages into ledger JSONL. Use when user sends "项目+支出" directly (e.g., "OpenClaw 服务器 89"), wants quick记账, or asks to append project spending. Default to expense and CNY unless user explicitly says otherwise.
openclaw skills install ledger-project-expense-entryUse this skill for fast bookkeeping from short natural-language messages.
direction: default 支出currency: default CNYdate: default today (Asia/Taipei)Only change defaults if user explicitly provides different values.
Extract from message:
project (项目名)description (消费内容)amount (number)datecurrencydirection (收入/支出)tagsIf project and description are both present, build description as:
<project> - <description>If only one exists, use that field directly.
If amount is missing, ask one short clarification question.
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 <支出|收入> \
--amount <number> \
--currency <CNY|USD|JPY|...> \
--description <project-description> \
--tags <tag1,tag2,...> \
--source manual \
--batch manual
Before each write, check:
projects/docs/CATEGORY_CATALOG.mdSelection policy:
tags/major_category/type/currency).开发成本 / 服务器 / 域名 / 通讯网络 (pick the closest one)外卖 / 下馆子 / 饮料零食打车 / 交通卡 / 火车 / 飞机After appending, reply with:
日期 | 流向 | 金额币种 | 描述