360 Secure SkillHub
360 安全技能中心

Expense Tracker and Budgets

通过本地 Node 助手在代理工作区内维护家庭账本:录入收支与退款、设置分类月度预算、导入经去重校验的 CSV 交易,按日期区间汇总各币种收支与分类合计,并导出 ledger.csv 与预算报告;重试幂等,不连接银行账户,也不做汇率换算。

分类:生活
hznetnewpower
hznetnewpower
热度 8.90
最近更新 2026-11-02 15:21:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add hznetnewpower/mochi-expense-tracker
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
mochi-expense-tracker
description
Import CSV transactions with deduplication, calculate exact totals and budgets, and export ledgers. Use for Expense Tracker and Budgets.
metadata
{"openclaw":{"requires":{"bins":["node"]},"homepage":"https://mochilab.bz","version":"1.1.1"}}

Expense Tracker and Budgets

Build a verifiable household ledger

add records expense|income|refund with date, decimal amount, currency, category and description. Monetary arithmetic uses integer minor units; refunds reduce net expenses. Currencies stay separate. void retains a mistaken transaction and its reason. budget sets a category's monthly limit. Never infer actual bank transactions from vague chat.

Import an actual CSV file

import-csv reads a workspace-relative UTF-8 file with kind,date,amount,currency,category and optional description,sourceId. Quoted commas and multiline fields are supported. A sourceId should be a stable bank/export transaction identifier; without it, the file hash and row position identify a reimport of the same file. The entire new batch is validated before saving. Duplicate keys are reported, not counted again. Invalid dates, amounts, currencies or malformed rows leave the existing ledger intact. The Skill reads user-supplied exports; it does not connect to a bank account.

Reconcile totals and write a report

list and summary select an inclusive from/to range. They show income, expenses, refunds and category totals by currency. Budget spent values describe the whole budget month even when the selected range is shorter. export saves ledger.csv and budget-report.md with exact decimal amounts and remaining monthly budgets. Read the files and compare row counts with the import result. Missing data stays missing; a refund is not income. No currency conversion is performed.

Run the local helper

Prepare an input JSON file inside the active agent workspace. Use the actual workspace, not another agent's directory.

node "{baseDir}/scripts/run.mjs" --workspace "CURRENT_WORKSPACE" --input "request.json"

Read references/input.md before preparing fields. Every mutation and export uses a stable unique requestId; an identical retry returns its saved result. Put user text in JSON, not shell code. Successful exports return actual file paths, sizes and SHA256 values under this workspace's .mochilab/mochi-expense-tracker/exports/ directory. Inspect the files before reporting completion. Previous exports are retained. No MochiLab key is needed by this standalone helper.

User guide · Simplified Chinese guide