← 返回
数据分析 中文

phoenixclaw-ledger

Passive financial tracking plugin for PhoenixClaw. Automatically detects expenses and income from conversations and payment screenshots. Use when: - User mentions money/spending (any language) - User shares payment screenshots (WeChat Pay, Alipay, etc.) - User asks about finances ("How much did I spend?", "My budget") - User wants expense reports ("Monthly summary", "Spending analysis")
被动财务追踪插件,自动从对话和付款截图中检测收支。使用场景:用户提及金钱/支出、分享付款截图(微信支付、支付宝等)、询问财务状况(花费、预算)或请求支出报告(月度总结、支出分析)。
goforu
数据分析 clawhub v0.0.2 1 版本 99670.9 Key: 无需
★ 1
Stars
📥 2,403
下载
💾 160
安装
1
版本
#latest

概述

PhoenixClaw Ledger: Zero-Effort Financial Tracking

PhoenixClaw Ledger automatically extracts financial transactions from your daily conversations and payment screenshots, requiring zero manual input.

Core Capabilities

FeatureDescription
----------------------
Semantic Expense DetectionAI identifies spending mentions in natural conversation
Screenshot RecognitionExtracts transaction data from payment app screenshots
Smart CategorizationAuto-categorizes based on merchant and context
Budget TrackingMonthly budget alerts and progress visualization
Financial InsightsPattern analysis integrated into journal Growth Notes
Goal ManagementSavings, budget control, habit, and wishlist goals
Weekly ReportsAutomated Sunday 9 PM spending recap
Query SupportReal-time natural language financial inquiries
Spending TrendsMulti-month analytical spending visualization
Transaction BrowserInteractive complete transaction history view

Workflow

As a PhoenixClaw plugin, Ledger hooks into the post-moment-analysis phase:

  1. Receive Moments: Get identified moments from PhoenixClaw Core
  2. Detect Finances: Scan for expense/income signals in text and media
    • Text: Semantic patterns (see references/expense-detection.md)
    • Media: Payment screenshots (see references/payment-screenshot.md)
  3. Extract Data: Parse amount, merchant, category, timestamp
  4. Categorize: Apply rules from references/merchant-category-map.md
  5. Deduplicate: Prevent double-counting same transaction
  6. Store: Write to ~/PhoenixClaw/Finance/ledger.yaml
  7. Export: Generate journal section using assets/daily-finance-section.md

Explicit Triggers

While passive by design, users can interact directly:

  • "How much did I spend today/this week/this month?"
  • "Show my expense breakdown"
  • "Set my monthly budget to [amount]"
  • "What are my top spending categories?"
  • "Generate financial report for [period]"
  • "Set a savings goal for [amount] by [date]"
  • "Show my spending trends"
  • "Browse all my transactions"
  • "How am I doing on my goals?"

Output Structure

~/PhoenixClaw/
├── Journal/
│   ├── daily/2026-02-02.md    # Contains 💰 Finance section
│   └── weekly/2026-W05.md     # Weekly financial recaps
│
└── Finance/                    # Ledger-specific directory
    ├── ledger.yaml             # Structured transaction data
    ├── budget.yaml             # Budget configuration
    ├── goals.yaml              # Financial goals tracking
    ├── transactions.md         # Transaction browser view
    ├── monthly/
    │   └── 2026-02.md          # Monthly financial reports
    └── yearly/
        └── 2026.md             # Annual summaries

Configuration

Ledger-specific settings in ~/.phoenixclaw/config.yaml:

plugins:
  phoenixclaw-ledger:
    enabled: true
    default_currency: CNY       # or USD, EUR, etc.
    budget_monthly: 5000        # Monthly budget amount
    categories_custom: []       # User-defined categories
    screenshot_confidence: 0.7  # Min confidence for auto-record

Cron & Scheduled Reports

Ledger uses PhoenixClaw Core's cron infrastructure plus additional scheduled tasks:

TaskScheduleDescription
-----------------------------
Daily Processing10 PM (via Core)Extracts transactions, generates daily section
Monthly Report1st of month, 8 AMComprehensive monthly financial summary
Weekly SummarySunday 9 PM (optional)Weekly spending recap

Daily Processing (Automatic)

No separate setup required. Ledger hooks into Core's nightly cron:

  • Core runs at 10 PM → triggers post-moment-analysis
  • Ledger activates, extracts finances, exports to journal

Monthly Report Setup

openclaw cron add \
  --name "PhoenixClaw Ledger monthly report" \
  --cron "0 8 1 * *" \
  --tz "auto" \
  --session isolated \
  --message "Generate monthly financial report for the previous month."

See references/cron-setup.md for full configuration details.

Documentation Reference

References (references/)

  • expense-detection.md: Semantic patterns for conversation parsing
  • payment-screenshot.md: Screenshot recognition and OCR extraction
  • merchant-category-map.md: Merchant to category mapping rules
  • category-rules.md: Category definitions and hierarchy
  • budget-tracking.md: Budget alerts and progress calculation
  • financial-insights.md: Pattern analysis for Growth Notes
  • cron-setup.md: Scheduled tasks and report automation
  • goal-management.md: Financial goals and progress tracking
  • query-patterns.md: Natural language query templates and logic

Assets (assets/)

  • expense-callout.md: Template for conversation-detected expenses
  • receipt-callout.md: Template for screenshot-detected expenses
  • daily-finance-section.md: Journal integration template
  • monthly-report.md: Monthly summary template
  • yearly-report.md: Annual summary template

版本历史

共 1 个版本

  • v0.0.2 当前
    2026-03-28 14:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,867
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 139,981
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,682