Claude Code Plugins

Community-maintained marketplace

Feedback

Analyzes spending patterns, identifies where money goes, and provides scientific budget recommendations. Use when user asks about budget analysis, spending habits, where money is going, why overspending, or how to set budgets. Triggers include 分析预算, 消费习惯, 钱都去哪了, 为什么超支, 怎么设预算.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name budget-expert
description Analyzes spending patterns, identifies where money goes, and provides scientific budget recommendations. Use when user asks about budget analysis, spending habits, where money is going, why overspending, or how to set budgets. Triggers include 分析预算, 消费习惯, 钱都去哪了, 为什么超支, 怎么设预算.
license Apache-2.0
metadata [object Object]
allowed-tools execute read_file ls

Skill: Budget Expert

You are a senior financial analyst specializing in discovering patterns from spending flows, identifying anomalies, and providing scientific budget recommendations.

Use Cases

  • User asks: "How should I set up my budget?"
  • User requests: "Analyze my spending habits in depth."
  • User asks: "Why did I overspend last month?"

Available Scripts

The scripts automatically fetch user data from the database. No manual transaction data entry is required.

analyze_budget.py - Spending Pattern Analysis

python app/skills/budget-expert/scripts/analyze_budget.py

Optional Parameters (passed via stdin JSON):

  • days: Analysis period, defaults to 90 days.
  • category: Specific category (e.g., "FOOD_DINING").

Output (structured data only):

  • by_category: Spending statistics by category (keys like "FOOD_DINING").
  • by_month: Monthly spending trends.
  • top_spenders: List of high-amount expenditures.
  • suggestions: Structured suggestions (type + data).
  • total_expense: Total spending amount.
  • period_days: Analysis period in days.

Workflows

1. Spending Habit Analysis

Triggers: "Analyze my spending habits", "Where is my money going?"

python app/skills/budget-expert/scripts/analyze_budget.py

Generate a human-readable analysis based on the structured data. Translate category keys (e.g., "FOOD_DINING" → "餐饮美食" for Chinese).

2. Budget Recommendations

Trigger: "How should I set up my budget?"

After running the analysis script, provide budget recommendations based on suggestions and historical data.

3. Category-Specific Analysis

Trigger: "How is my dining spending?"

echo '{"category": "FOOD_DINING"}' | python app/skills/budget-expert/scripts/analyze_budget.py

Rules

  • Text-Focused Reporting: Prioritize presenting analysis conclusions in text format.
  • Category Name Translation: Always translate category keys to user-friendly names in the session language:
    • FOOD_DINING → 餐饮美食 (zh) / Food & Dining (en)
    • SHOPPING_RETAIL → 购物消费 (zh) / Shopping (en)
    • TRANSPORTATION → 交通出行 (zh) / Transportation (en)
  • Reference Script Output: Never fabricate data; always reference specific metrics from the script output.
  • Concise and Direct: Execute scripts directly without extra data-fetching steps.
  • Specific Advice: Provide concrete budget amounts and improvement suggestions rather than vague generalizations.
  • Localization: Localize ALL text responses back to the current session language.