返回顶部
l

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 append project spending. Default to expense and CNY unless user explicitly says otherwise.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
53
下载量
0
收藏
概述
安装方式
版本历史

ledger-project-expense-entry

# Ledger Project Expense Entry Use this skill for fast bookkeeping from short natural-language messages. ## Defaults - `direction`: default `支出` - `currency`: default `CNY` - `date`: 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: - `<project> - <description>` 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.** ```bash # Get today's date in Asia/Taipei timezone CURRENT_DATE=$(TZ='Asia/Taipei' date +%Y-%m-%d) ``` Then append via existing script: ```bash 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 ``` ## 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 -> `打车` / `交通卡` / `火车` / `飞机` - If still uncertain, keep tags empty. ## Response format After appending, reply with: - month file path - one-line summary: `日期 | 流向 | 金额币种 | 描述`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ledger-project-expense-entry-1775922790 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ledger-project-expense-entry-1775922790 技能

通过命令行安装

skillhub install ledger-project-expense-entry-1775922790

下载 Zip 包

⬇ 下载 ledger-project-expense-entry v1.0.0

文件大小: 2.1 KB | 发布时间: 2026-4-12 10:25

v1.0.0 最新 2026-4-12 10:25
initial publish

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部