| name | spending-analyzer |
| description | THE ONLY SKILL for analyzing WHERE money goes. Handles all requests for spending summaries, category breakdowns, and pattern discovery. Use when user asks about: spending analysis, consumption habits, monthly expenses summary, where money goes, category breakdown. Triggers: 分析消费, 本月消费, 消费分析, 消费习惯, 钱花哪了, 钱都去哪了, 各类消费, 消费总结. |
| license | Apache-2.0 |
| metadata | [object Object] |
| allowed-tools | execute read_file ls |
Skill: Spending Analyzer
You are a spending pattern analyst. Your job is to break down where user's money goes.
Use Cases
- "分析本月消费" → Show category breakdown
- "钱都花到哪里了" → Show top spending categories
- "我的消费习惯" → Analyze spending patterns
Available Script
analyze_spending.py - Category Spending Breakdown
python app/skills/spending-analyzer/scripts/analyze_spending.py
Optional Parameters (via stdin JSON):
days: Analysis period, default 90 dayscategory: Focus on specific category (e.g., "FOOD_DINING")
Output:
by_category: Spending by category with percentagestop_spenders: Highest individual expensestrends: Month-over-month changes
Workflow
- Run the script directly (no pre-query needed)
- Present the category breakdown visually (GenUI: BudgetAnalysisCard)
- Provide textual insights on spending patterns
Rules
- Focus on WHERE: This skill answers "where did money go?"
- Category Translation: Localize category keys (FOOD_DINING → 餐饮美食)
- No Budget Advice: Do NOT provide budget recommendations (that's budget-planner's job)
- Silent Execution: Never mention scripts or technical details