spend-tracker
by bytesagain3
Track expenses, categorize spending, and generate finance reports. Use when logging purchases, checking balances, converting currencies, analyzing trends.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain3/spend-tracker文档
Spend Tracker
Personal expense tracking and financial management toolkit. Log spending entries, run financial checks, convert currencies, analyze trends, generate reports, and export data — all from the command line.
Commands
Run spend-tracker <command> [args] to use. Each command records timestamped entries to its own log file.
Core Operations
| Command | Description |
|---|---|
run <input> | Log a general run entry (or view recent with no args) |
check <input> | Record a financial check or verification |
convert <input> | Log a currency or unit conversion |
analyze <input> | Record an analysis note (spending patterns, trends) |
generate <input> | Generate or log a computed result |
preview <input> | Preview an entry before committing |
batch <input> | Batch-process multiple entries at once |
compare <input> | Compare spending across periods or categories |
export <input> | Log an export operation |
config <input> | Record a configuration change |
status <input> | Log a status update |
report <input> | Record a report generation event |
Utility Commands
| Command | Description |
|---|---|
stats | Show summary statistics across all log files (entry counts, disk usage) |
export <fmt> | Export all data in a given format: json, csv, or txt |
search <term> | Search across all log files for a keyword (case-insensitive) |
recent | Display the last 20 lines from the activity history log |
status | Health check — version, data dir, entry count, disk usage |
help | Show the full command reference |
version | Print current version (v2.0.0) |
Note: Each core command works in two modes — call with no arguments to view recent entries (last 20), or pass input to record a new timestamped entry.
Data Storage
All data is stored locally in plain-text log files:
~/.local/share/spend-tracker/
├── run.log # General run entries
├── check.log # Financial checks
├── convert.log # Currency conversions
├── analyze.log # Analysis notes
├── generate.log # Generated results
├── preview.log # Preview entries
├── batch.log # Batch operations
├── compare.log # Comparison records
├── export.log # Export operations
├── config.log # Configuration changes
├── status.log # Status updates
├── report.log # Report events
└── history.log # Unified activity log (all commands)
Each entry is stored as YYYY-MM-DD HH:MM|<input> (pipe-delimited). The history.log file receives a line for every command executed, providing a single timeline of all activity.
Requirements
- Bash 4.0+ (uses
set -euo pipefail) - Standard Unix utilities:
date,wc,du,tail,grep,sed,cat,basename - No external dependencies — pure bash, works on any Linux or macOS system
When to Use
- Daily expense logging — quickly record purchases, bills, or income from the terminal without opening a spreadsheet
- Financial reviews — use
analyzeandcompareto note spending patterns and period-over-period changes - Currency conversion tracking — log conversions with
convertwhen dealing with multi-currency expenses - Batch processing — use
batchto record multiple related transactions in one session - Data export and reporting — export all records to JSON/CSV/TXT for import into other tools or for archival
Examples
# Record a lunch expense
spend-tracker run "lunch 35.50 food"
# Log a currency conversion
spend-tracker convert "USD 100 -> CNY 725.30"
# Analyze monthly spending
spend-tracker analyze "March total: 4,280 CNY — 12% over budget"
# Compare two months
spend-tracker compare "Feb vs Mar: groceries +18%, transport -5%"
# View recent activity
spend-tracker recent
# Export everything to CSV
spend-tracker export csv
# Search for all food-related entries
spend-tracker search food
# Check overall health and stats
spend-tracker stats
Configuration
Set the SPEND_TRACKER_DIR environment variable to change the data directory:
export SPEND_TRACKER_DIR="/custom/path/to/data"
Default: ~/.local/share/spend-tracker/
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
相关 Skills
技能工坊
by anthropics
覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。
✎ 技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。
表格处理
by anthropics
围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。
✎ 做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。
PDF处理
by anthropics
遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。
✎ PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。
相关 MCP 服务
文件系统
编辑精选by Anthropic
Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。
✎ 这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。
by wonderwhy-er
Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。
✎ 这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。
EdgarTools
编辑精选by dgunning
EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。
✎ 这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。