safaiyeh

Finance Skill

专业领域v0.1.2
作者:safaiyeh更新于 2026-05-11共 3 个版本 · 最新版本发布于 2026-02-11finance-skill@clawhub_safaiyeh/finance-skill
金融分析#Personal

据 AlphaMoat 统计,截至 2026-09,Finance Skill 累计下载 3,882 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,677 位,在「专业领域」分类(465 个)中排名第 219 位。

累计安装
213
累计下载
3,882
星标
2
全站排名
#2,677
全站前 53% · 「专业领域」前 48%
平台累计安装累计下载星标评论
ClawHub ↗1123,4861-
SkillHub ↗2133,8822—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

管理个人财务记录,将账单转为交易数据并支持支出查询。银行对账单和解析出的交易属于敏感财务数据;核对本地输出权限,并在使用前检查解析结果。

资料发布于 2026-10-27

可以用来做什么

  • 整理相关信息或执行对应操作

什么时候用

  • 用户需要相关工作流时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

请使用Finance Skill帮助处理这个任务

月度数据趋势

累计下载3,882
2,1633,0864,0092026-03 · 累计下载 2,2902026-05 · 累计下载 2,8012026-06 · 累计下载 2,9552026-07 · 累计下载 3,2612026-08 · 累计下载 3,4192026-09 · 累计下载 3,88226-0326-09
星标2
1222026-03 · 星标 12026-05 · 星标 22026-06 · 星标 12026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,882—2
2026-083,419+4.8%2
2026-073,261+10.4%2
2026-062,955+5.5%1
2026-052,801—2
2026-032,290—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.3 KB · ClawHub v0.1.2
# Finance Skill

Personal finance memory layer. Parse statements, store transactions, query spending.

## Data Location
- Transactions: `~/.openclaw/workspace/finance/transactions.json`
- Raw statements: `~/.openclaw/workspace/finance/statements/`

*Storage convention: OpenClaw workspace (`~/.openclaw/workspace/`) is the standard location for persistent user data. This matches where session-memory and other hooks store agent data. Credentials/config would go in `~/.config/finance/` if needed.*
展开全部(共 108 行)
## Tools

### 1. Parse Statement
When user shares a statement (image or PDF):

**⚠️ IMPORTANT: Telegram/channel previews truncate PDFs!**
Always extract with pypdf first to get ALL pages:

```bash
python3 -c "
import pypdf
reader = pypdf.PdfReader('/path/to/statement.pdf')
for i, page in enumerate(reader.pages):
    print(f'=== PAGE {i+1} ===')
    print(page.extract_text())
"
```

Then parse the full text output:
1. Extract transactions from ALL pages
2. Return JSON array: `[{date, merchant, amount, category}, ...]`
3. Run `scripts/add-transactions.sh` to append to store
4. **Verify total matches statement** (sum of expenses should equal "Total purchases")

**Extraction format:**
```
Each transaction: {"date": "YYYY-MM-DD", "merchant": "name", "amount": -XX.XX, "category": "food|transport|shopping|bills|entertainment|health|travel|other"}
Negative = expense, positive = income/refund.
```

**Categories:**
- food: restaurants, groceries, coffee, fast food
- transport: Waymo, Uber, gas, public transit
- shopping: retail, online purchases
- bills: utilities, subscriptions
- entertainment: movies, concerts, theme parks
- health: pharmacy, doctors
- travel: hotels, flights

### 2. Query Transactions
User asks about spending → read transactions.json → filter/aggregate → answer

**Example queries:**
- "How much did I spend last month?" → sum all negative amounts in date range
- "What did I spend on food?" → filter by category
- "Show my biggest expenses" → sort by amount

### 3. Add Manual Transaction
User says "I spent $X at Y" → append to transactions.json

## File Format

```json
{
  "transactions": [
    {
      "id": "uuid",
      "date": "2026-02-01",
      "merchant": "Whole Foods",
      "amount": -87.32,
      "category": "food",
      "source": "statement-2026-01.pdf",
      "added": "2026-02-09T19:48:00Z"
    }
  ],
  "accounts": [
    {
      "id": "uuid",
      "name": "Coinbase Card",
      "type": "credit",
      "lastUpdated": "2026-02-09T19:48:00Z"
    }
  ]
}
```

## Usage Flow

1. User: *shares statement image*
2. Agent: extracts transactions via vision, confirms count
3. Agent: runs add script to store
4. User: "how much did I spend on food?"
5. Agent: reads store, filters, answers

## Dependencies
- `jq` — for JSON transaction storage and querying (`apt install jq` / `brew install jq`)
- `pypdf` — for full PDF text extraction (`pip3 install pypdf`)

## Lessons Learned
- **Telegram truncates PDF previews** — always use pypdf to get all pages
- **Verify totals** — sum extracted expenses and compare to statement total before importing
- **Coinbase Card** — no Plaid support, statement upload only

## Future: Plaid Integration
- Add `finance_connect` tool for Plaid OAuth flow
- Auto-sync transactions from connected banks
- Same query interface, different data source

「专业领域」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。