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")
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- phoenixclaw-ledger
- depends
- phoenixclaw
- metadata
- { "version": "0.1.0" }
- hook_point
- post-moment-analysis
- data_access
- [ "moments", "user_config", "memory" ]
- description
- 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")
- min_core_version
- 0.0.3
- protocol_version
- 1
- export_to_journal
- true
02 资源文件 18
- 参考文档_meta.json466 B
- 资产文件assets/daily-finance-section.md4.2 KB
- 资产文件assets/expense-callout.md2.2 KB
- 资产文件assets/monthly-report.md5.2 KB
- 资产文件assets/receipt-callout.md3.5 KB
- 资产文件assets/transaction-browser.md1.4 KB
- 资产文件assets/trend-view.md1.6 KB
- 资产文件assets/weekly-report.md3.3 KB
- 资产文件assets/yearly-report.md2.3 KB
- 参考文档references/budget-tracking.md6.3 KB
- 参考文档references/category-rules.md5.6 KB
- 参考文档references/cron-setup.md5.5 KB
- 参考文档references/expense-detection.md4.7 KB
- 参考文档references/financial-insights.md6.0 KB
- 参考文档references/goal-management.md5.7 KB
- 参考文档references/merchant-category-map.md5.8 KB
- 参考文档references/payment-screenshot.md7.0 KB
- 参考文档references/query-patterns.md5.1 KB
03 SKILL.md 正文
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
| Feature | Description |
|---|---|
| Semantic Expense Detection | AI identifies spending mentions in natural conversation |
| Screenshot Recognition | Extracts transaction data from payment app screenshots |
| Smart Categorization | Auto-categorizes based on merchant and context |
| Budget Tracking | Monthly budget alerts and progress visualization |
| Financial Insights | Pattern analysis integrated into journal Growth Notes |
| Goal Management | Savings, budget control, habit, and wishlist goals |
| Weekly Reports | Automated Sunday 9 PM spending recap |
| Query Support | Real-time natural language financial inquiries |
| Spending Trends | Multi-month analytical spending visualization |
| Transaction Browser | Interactive complete transaction history view |
Workflow
As a PhoenixClaw plugin, Ledger hooks into the post-moment-analysis phase:
- Receive Moments: Get identified moments from PhoenixClaw Core
- 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)
- Text: Semantic patterns (see
- Extract Data: Parse amount, merchant, category, timestamp
- Categorize: Apply rules from
references/merchant-category-map.md - Deduplicate: Prevent double-counting same transaction
- Store: Write to
~/PhoenixClaw/Finance/ledger.yaml - 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:
| Task | Schedule | Description |
|---|---|---|
| Daily Processing | 10 PM (via Core) | Extracts transactions, generates daily section |
| Monthly Report | 1st of month, 8 AM | Comprehensive monthly financial summary |
| Weekly Summary | Sunday 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 parsingpayment-screenshot.md: Screenshot recognition and OCR extractionmerchant-category-map.md: Merchant to category mapping rulescategory-rules.md: Category definitions and hierarchybudget-tracking.md: Budget alerts and progress calculationfinancial-insights.md: Pattern analysis for Growth Notescron-setup.md: Scheduled tasks and report automationgoal-management.md: Financial goals and progress trackingquery-patterns.md: Natural language query templates and logic
Assets (assets/)
expense-callout.md: Template for conversation-detected expensesreceipt-callout.md: Template for screenshot-detected expensesdaily-finance-section.md: Journal integration templatemonthly-report.md: Monthly summary templateyearly-report.md: Annual summary template
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.