微算力 · API 导航与自营网关
API 接入 EN
未登录登录
💰

隐私优先的 AI 智能记账管家

afrexai-budget-tracker · v45.67
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 S 级 作者 1kalin 公开目录收录
423 下载 171 安装 1k 收藏 15.4k 浏览

简介

AfrexAI 出品的纯本地 AI 记账助手,通过自然对话实现预算管控、支出追踪与财富目标规划,财务数据零上云。

原始描述

Track expenses, enforce budgets, detect unusual spending, manage savings goals, and get weekly/monthly financial reports via natural language with your AI ag...

通过你的 Agent 添加

安装目录:afrexai-budget-tracker/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/afrexai-budget-tracker/
Codex CLI~/.codex/skills/afrexai-budget-tracker/
DeepSeek Harness~/.agents/skills/afrexai-budget-tracker/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Budget & Expense Tracker 是一款面向个人用户的 AI 驱动财务管理技能。用户通过自然语言与 AI Agent 对话完成记账,如"今天买菜花了 45 美元"或"查看本月餐饮支出"。系统基于本地 JSON 文件构建三层数据架构:budget-profile.json 存储用户财务画像与预算规则,budget-ledger.json 记录完整交易流水,budget-goals.json 管理储蓄目标。AI Agent 负责解析自然语言指令、执行实时预算检查、生成周期性报告,并提供智能化的财务洞察。

显著优点

隐私优先设计:100% 本地数据存储,无外部 API 调用,无云端同步,财务敏感信息完全保留在用户设备。这一设计在当前数据泄露频发的环境下具有显著差异化价值。

智能预算引擎:超越简单的支出统计,引入"支出节奏"(Spending Pace)概念。系统不仅告知"已用预算 78%",更能计算"按当前速度将超支 160 美元",实现预测性财务管理。

自然语言交互:大幅降低记账门槛,用户无需学习复杂软件界面,像聊天一样完成记录。支持模糊语义解析(如"Uber 12 块"自动归类交通/网约车)、周期性交易识别、退款处理等复杂场景。

** actionable 洞察**:提供日/周/月多维度报告,包含商户忠诚度分析、订阅审计、预算再平衡建议等。财务健康评分(0-100)将储蓄率、预算遵守度、目标进度等量化,帮助用户建立财务纪律。

高度可定制:用户可自由定义收入周期、预算类别、子分类结构、预警阈值,适配不同生活方式与财务目标。

潜在缺点与局限性

无多设备同步:纯本地架构意味着手机、电脑、平板间无法自动同步,跨场景使用需手动迁移文件或借助第三方云盘,增加操作成本。

依赖 AI 解析准确性:自然语言理解存在边界,复杂交易(如"和朋友 AA 了 200 块晚餐,其中 50 是酒水")可能需要多轮澄清,增加交互负担。

缺乏银行对接:无法自动导入信用卡、借记卡流水,所有交易需手动录入,对高频交易者可能显得繁琐。

无协作功能:不支持家庭共享账本、多人权限管理,难以满足夫妻/室友共同记账场景。

数据持久化风险:本地 JSON 文件若未配合版本控制或定期备份,存在误删、损坏导致历史数据丢失的风险。

适合的目标群体

  • 隐私敏感型用户:不愿将银行流水、消费习惯上传至云端服务的保守型人群
  • 极简主义者:厌倦复杂财务软件,追求"一句话记账"的轻量体验
  • 预算自律初学者:需要通过可视化进度、预警机制建立消费纪律的年轻职场人
  • 项目制/自由职业者:收入波动大,需要灵活调整预算周期与类别的非固定收入群体
  • 技术爱好者:愿意手动管理 JSON 文件、配合 git 备份的极客用户

使用风险

性能风险:长期积累大量交易记录后,JSON 文件体积膨胀可能导致 AI Agent 解析延迟。建议每季度归档历史数据。

数据一致性风险:AI Agent 同时操作多个 JSON 文件,极端情况下(如会话中断)可能出现 profile、ledger、goals 三文件状态不一致。建议关键操作后手动验证。

依赖项风险:虽无外部代码依赖,但功能完全依赖底层 AI Agent 的指令遵循能力。模型版本更新可能导致解析行为变化。

配置错误风险:用户手动编辑 JSON 时可能破坏数据结构(如删除必要字段、格式错误),导致系统异常。建议通过对话界面修改配置而非直接编辑文件。

技能正文

Budget & Expense Tracker — AI Agent Financial Command Center

Track every dollar, enforce budgets, spot spending patterns, and build wealth — all through natural conversation with your AI agent.

How It Works

You talk to your agent naturally: "I spent $45 on groceries" or "How much did I spend on food this month?" The agent maintains a local JSON ledger, enforces your budgets, and gives you weekly/monthly financial intelligence.


1. Setup — Your Financial Profile

On first use, create budget-profile.json in your workspace:

{
  "currency": "USD",
  "monthlyIncome": 5000,
  "payDays": [1, 15],
  "fiscalMonthStart": 1,
  "categories": {
    "housing": { "budget": 1500, "essential": true },
    "food": { "budget": 600, "essential": true, "subcategories": ["groceries", "dining", "delivery", "coffee"] },
    "transport": { "budget": 300, "essential": true, "subcategories": ["fuel", "public", "rideshare", "parking"] },
    "utilities": { "budget": 200, "essential": true, "subcategories": ["electric", "water", "internet", "phone"] },
    "health": { "budget": 200, "essential": true, "subcategories": ["gym", "medical", "supplements"] },
    "entertainment": { "budget": 200, "essential": false, "subcategories": ["streaming", "games", "events", "hobbies"] },
    "shopping": { "budget": 300, "essential": false, "subcategories": ["clothes", "electronics", "home", "gifts"] },
    "education": { "budget": 100, "essential": false, "subcategories": ["books", "courses", "subscriptions"] },
    "savings": { "budget": 500, "essential": true, "target": "emergency-fund" },
    "misc": { "budget": 100, "essential": false }
  },
  "alerts": {
    "budgetWarning": 0.75,
    "budgetCritical": 0.90,
    "unusualSpend": 2.0,
    "dailyMax": 200
  },
  "goals": []
}

Customize categories, budgets, and subcategories to your life. The agent adapts to whatever structure you define.


2. The Ledger — Transaction Format

All transactions live in budget-ledger.json:

{
  "transactions": [
    {
      "id": "tx_20260213_001",
      "date": "2026-02-13",
      "type": "expense",
      "amount": 45.67,
      "category": "food",
      "subcategory": "groceries",
      "description": "Weekly shop at Aldi",
      "merchant": "Aldi",
      "paymentMethod": "debit",
      "tags": ["weekly", "essentials"],
      "recurring": false,
      "note": ""
    }
  ],
  "recurringRules": [],
  "metadata": {
    "lastUpdated": "2026-02-13T10:30:00Z",
    "transactionCount": 1,
    "ledgerVersion": "1.0"
  }
}

Transaction ID Convention

tx_YYYYMMDD_NNN — date + sequential number. Never reuse IDs.


3. Natural Language Parsing

When a user says something about money, parse it into a transaction:

Parsing Rules

User says Extracted
"spent $45 on groceries" expense, $45, food/groceries
"paid rent $1500" expense, $1500, housing
"got paid $2500" income, $2500, salary
"uber $12" expense, $12, transport/rideshare
"Netflix $15.99 monthly" expense, $15.99, entertainment/streaming, recurring
"coffee $5" expense, $5, food/coffee
"sent mom $200" expense, $200, misc (ask: gift or loan?)
"returned shoes got $80 back" refund, $80, shopping/clothes

Ambiguity Resolution

  • If category is unclear, make your best guess AND confirm: "Logged $45 under food/groceries — correct?"
  • If amount is missing, ask: "How much was that?"
  • If "monthly" or "every week" mentioned, create a recurring rule
  • "Returned" or "refund" = negative expense (credit)
  • "Lent" vs "borrowed" — always clarify direction

Recurring Transactions

When a user mentions recurring expenses, create a rule:

{
  "id": "rec_001",
  "description": "Netflix subscription",
  "amount": 15.99,
  "category": "entertainment",
  "subcategory": "streaming",
  "frequency": "monthly",
  "dayOfMonth": 15,
  "active": true,
  "lastApplied": "2026-02-15"
}

On each budget check, auto-apply any recurring transactions that are due.


4. Budget Enforcement Engine

Real-Time Budget Checks

After EVERY expense logged, run this check:

1. Calculate total spent in category this month
2. Compare to budget limit
3. Calculate percentage used
4. Check days remaining in month
5. Calculate daily budget remaining
6. Trigger alerts if needed

Alert Levels

Level Trigger Response
🟢 On track < 75% budget, proportional to month progress Silent (log only)
🟡 Warning 75-90% budget used "Heads up — you've used 78% of your $600 food budget with 18 days left. That's $3.67/day remaining."
🔴 Critical > 90% budget used "⚠️ Food budget is at 92% ($552/$600) with 12 days left. Only $4/day remaining. Consider cooking at home this week."
🚨 Over budget > 100% "🚨 You're $47 over your $600 food budget. Total: $647. This eats into your savings target."
⚡ Unusual Single transaction > 2x average for category "That $89 coffee purchase seems unusual — your average is $5.20. Correct amount?"

Pace Tracking (Smart Budget Intelligence)

Don't just track totals — track spending PACE:

Days elapsed this month: 13
Days remaining: 15
Budget: $600
Spent so far: $380
Daily pace: $29.23/day (spending)
Sustainable pace: $21.43/day (budget / total days)
Remaining pace: $14.67/day (remaining budget / remaining days)

Verdict: Spending 37% faster than sustainable. Will exceed budget by ~$160 at current pace.

This is MORE useful than just "you spent X of Y" because it predicts the future.


5. Savings Goals

Goal Structure

{
  "id": "goal_001",
  "name": "Emergency Fund",
  "targetAmount": 10000,
  "currentAmount": 3500,
  "deadline": "2026-12-31",
  "priority": "high",
  "contributions": [
    { "date": "2026-02-01", "amount": 500, "note": "Monthly auto-save" }
  ],
  "autoContribute": {
    "enabled": true,
    "amount": 500,
    "frequency": "monthly",
    "dayOfMonth": 1
  }
}

Goal Intelligence

When checking goals, calculate:

  • On track? Compare current savings rate to required rate
  • Projected completion: At current rate, when will goal be hit?
  • Acceleration options: "If you save $100 more/month, you'll hit your goal 2 months early"
  • Surplus allocation: If under budget this month, suggest putting surplus toward goals

6. Reports & Intelligence

Weekly Summary (run every Sunday or on demand)

📊 Week of Feb 7-13, 2026

💸 Spent: $487.23
💰 Income: $2,500.00
📈 Net: +$2,012.77

Top categories:
  🏠 Housing: $375 (rent proration)
  🍔 Food: $112.23 (18.7% of budget used, on track)

⚡ Unusual: $0 flagged
🎯 Goals: Emergency Fund 35% → 40% (+$500)
💡 Insight: Food spending down 12% vs last week. Nice work.

Monthly Report (run on 1st of each month)

📊 January 2026 — Full Report

INCOME:         $5,000.00
EXPENSES:       $3,847.23
NET SAVINGS:    $1,152.77 (23.1% savings rate)

BUDGET PERFORMANCE:
  ✅ Housing:      $1,500 / $1,500 (100%) — on budget
  ✅ Food:         $534 / $600 (89%) — $66 under
  ✅ Transport:    $187 / $300 (62%) — $113 under
  ⚠️ Shopping:     $342 / $300 (114%) — $42 OVER
  ✅ Entertainment: $156 / $200 (78%) — $44 under

CATEGORY TRENDS (vs last month):
  📈 Food: +8% ($534 vs $495)
  📉 Transport: -23% ($187 vs $243) — nice!
  📈 Shopping: +37% ($342 vs $250) — watch this

SAVINGS GOALS:
  🎯 Emergency Fund: $4,000 / $10,000 (40%) — on track for Aug completion
  🎯 Vacation: $800 / $2,000 (40%) — on track

TOP MERCHANTS:
  1. Aldi — $178 (12 visits)
  2. Amazon — $156 (8 orders)
  3. Shell — $89 (6 fills)

💡 INSIGHTS:
  • Shopping was 14% over budget — 3 Amazon orders on Feb 8 totaled $120
  • You saved $113 on transport (worked from home more?)
  • At current savings rate ($1,153/mo), emergency fund complete by August
  • Consider moving $66 food surplus → vacation goal

Year-to-Date Dashboard (on demand)

📊 2026 YTD (Jan-Feb)

Total Income:    $10,000
Total Expenses:  $7,694
Total Saved:     $2,306 (23.1% rate)
Goal Progress:   Emergency Fund 40%, Vacation 40%

Best month: January (24.2% savings rate)
Worst category: Shopping (avg 107% of budget)
Most improved: Transport (-15% trend)

7. Smart Insights Engine

Beyond basic tracking, provide ACTIONABLE intelligence:

Spending Patterns

  • Day-of-week analysis: "You spend 40% more on weekends. Saturday average: $67 vs weekday $23"
  • Merchant loyalty: "You've been to Starbucks 18 times this month. A home coffee setup pays for itself in 3 weeks."
  • Category creep: "Shopping has increased 15% each of the last 3 months. Projected: $450 next month."

Optimization Suggestions

  • Subscription audit: "You have 6 streaming services ($78/mo). Used Netflix 20 times, Disney+ once. Consider canceling Disney+."
  • Budget rebalancing: "You've been under transport budget for 3 months. Consider reducing to $200 and moving $100 to savings."
  • Cash flow timing: "Your biggest expenses hit on the 1st-5th. Consider moving some to the 15th paycheck cycle."

Financial Health Score (0-100)

Calculate monthly:

Factor Weight Scoring
Savings rate 30% 20%+ = 100, 10-20% = 70, 5-10% = 40, <5% = 10
Budget adherence 25% All under = 100, 1 over = 80, 2-3 over = 50, 4+ = 20
Goal progress 20% On track = 100, slightly behind = 60, way behind = 20
Expense stability 15% Low variance = 100, moderate = 60, volatile = 20
Debt-free spending 10% No credit used = 100, some = 50, heavy = 10

Score interpretation:

  • 90-100: 💪 Excellent — wealth building mode
  • 70-89: 👍 Good — minor optimizations possible
  • 50-69: ⚠️ Fair — specific areas need attention
  • Below 50: 🚨 Needs work — create an action plan

8. Commands Reference

Command What it does
"I spent $X on Y" Log expense
"Got paid $X" Log income
"Budget check" Show all budgets vs actuals with pace
"Weekly summary" This week's report
"Monthly report" Full month analysis
"How much on food?" Category deep-dive
"Set food budget to $500" Update budget
"Add goal: Vacation $2000 by June" Create savings goal
"Save $200 toward vacation" Log goal contribution
"Financial health" Calculate health score
"Unusual spending?" Flag outliers
"Subscription audit" List recurring + usage
"Compare to last month" Month-over-month trends
"Export CSV" Export ledger for spreadsheets
"Undo last" Remove last transaction

9. Data Management

File Locations

  • budget-profile.json — Your financial profile and budgets
  • budget-ledger.json — All transactions
  • budget-goals.json — Savings goals and contributions
  • budget-recurring.json — Recurring transaction rules

CSV Export Format

When user asks to export:

Date,Type,Amount,Category,Subcategory,Description,Merchant,Tags
2026-02-13,expense,45.67,food,groceries,Weekly shop,Aldi,"weekly,essentials"

Backup

Periodically remind users to back up their ledger. Offer to commit to git if workspace is a repo.

Privacy

All data stays local. No external APIs. No cloud sync. Your money data never leaves your machine.


10. Edge Cases

  • Split transactions: "Dinner $80, split with friend" → Log $40 as your share
  • Foreign currency: "Spent €50 in Paris" → Convert at current rate, note original currency
  • Cash back / rewards: Track as income subcategory "cashback"
  • Transfers between accounts: Don't count as expense or income — log as "transfer" type
  • Shared expenses: Tag with "shared" and note who owes what
  • Tax deductible: Tag with "tax-deductible" for year-end filtering
  • Returns within same month: Net against the category. Cross-month: log as refund income.
  • Variable income: If income varies, use 3-month rolling average for budget calculations

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

finance-accountingproductivityprivacydata-analyticsautomation

同类 Skill