← 返回 Skills 市场
hohobohan

Expense Tracker

作者 Hobohan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
28
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hobohan-expense-tracker
功能描述
Log daily expenses via check-in prompts; dedup, categorize, sync to local ledger and Google Sheets.
使用说明 (SKILL.md)

Expense Tracker

Track daily spending via Telegram check-ins. Three prompts per day; cron-driven. All data flows to local .md ledger + Google Sheet.

Ledger format

Each file at ledger/YYYY-MM-DD.md:

# Ledger — 2026-06-03

- Food & Drinks $1.80 | Coffee
- AI $11.53 | Netlify

Format: - Category $Amount | Notes

Categories

Allowed: Food & Drinks | Groceries | Transportation | Household/Utilities | Pet | Shopping | Entertainment | Other | AI

  • Bakery bread → Food & Drinks (NOT Groceries)
  • Groceries = supermarket bulk/household runs
  • Unsure → ask Hobo or default to Other with note

Check-in schedule

Time Prompt
10am Morning spend (coffee, breakfast, transport)
1:30pm Afternoon spend (lunch, transport)
10pm End-of-day recap

Each check-in runs as an isolated cron agentTurn with model: deepseek/deepseek-v4-flash and timeoutSeconds: 300.

Transport check-in (9am, previous day)

Separate cron asks: "Any transport yesterday?" Pinned to deepseek/deepseek-v4-flash.

Dedup rules

Before writing to today's ledger file:

  1. Read today's ledger file first.
  2. Time qualifiers (morning/afternoon/evening coffee): always ADD new entry, never replace.
  3. Same category + amount: assume repeat purchase → ADD new entry.
  4. Only REPLACE if Hobo explicitly says "change X to Y".
  5. When in doubt → ask Hobo to confirm.

Expense sync

Daily at 9:30am via scripts/sync-ledger-to-sheet.py:

  • Reads all ledger/*.md files
  • Parses entries per format above
  • Generates dedup key: (normalized_date|normalized_amount|notes) where normalize_amount() strips trailing zeros
  • Compares against existing sheet rows → appends only new ones
  • Uses Google Sheets API with service account at /home/hobopi/.openclaw/secrets/google-service-account.json
  • Sheet ID: 1Ikbydh-Xzc6F3pk1Q5lbCTbdEERSb4Hq8obzbABVZbU, tab: Sheet1

Historical backfill

To backfill missing days (e.g., April 18-26 reconstructed from sheet data):

  1. Query sheet for all rows with dates not in ledger
  2. Parse each row as Date, Category, Amount, Notes
  3. Create ledger/YYYY-MM-DD.md with entries in correct format
  4. Verify count matches between ledger and sheet

Scripts

  • scripts/sync-ledger-to-sheet.py — main sync engine
  • scripts/gen-expense-data.py — dumps all entries to JSON for dashboard

Cron notes

  • All expense crons MUST pin model to deepseek/deepseek-v4-flash (time-sensitive)
  • Timeout: 300s minimum (600s for 10pm check-in)
  • Use absolute paths only in payload messages — no cd && python3 chains
安全使用建议
Install only if you intend your expense ledger, including notes, to be stored locally and synced to the referenced Google Sheet. Before use, confirm the sheet ID and service-account credential belong to you, limit the credential permissions, and remove or disable the sync instructions if you want local-only tracking.
能力评估
Purpose & Capability
Tracking expenses, categorizing entries, deduplicating them, and syncing to a ledger and spreadsheet all match the stated purpose.
Instruction Scope
The instructions require syncing all ledger entries, including free-form notes, to a specific Google Sheet ID rather than a user-configured destination or an explicit local-only mode.
Install Mechanism
The artifact contains only Markdown skill instructions and a changelog; no executable script files, dependencies, or install hooks are present.
Credentials
The allowed tools include cron, file read/write/edit, and exec, which are plausible for scheduled expense logging, but broad for a skill that handles sensitive personal financial notes and references an external API sync.
Persistence & Privilege
The skill intentionally persists daily expense data to local ledger files and instructs scheduled sync to Google Sheets using a service account at an absolute secrets path.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hobohan-expense-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hobohan-expense-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Check-in prompts, category rules, dedup logic, ledger format, Google Sheet sync.
元数据
Slug hobohan-expense-tracker
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Expense Tracker 是什么?

Log daily expenses via check-in prompts; dedup, categorize, sync to local ledger and Google Sheets. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 28 次。

如何安装 Expense Tracker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hobohan-expense-tracker」即可一键安装,无需额外配置。

Expense Tracker 是免费的吗?

是的,Expense Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Expense Tracker 支持哪些平台?

Expense Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Expense Tracker?

由 Hobohan(@hohobohan)开发并维护,当前版本 v1.0.0。

💬 留言讨论