Logo Spend Optimizer

Spend Optimizer

Cộng đồng
cathrynlavery
spend-optimizer

Audit subscriptions AND optimize credit card rewards. Analyzes bank CSVs to find recurring charges, categorize spend, identify which card each charge should be on, and calculate potential rewards. Use when user says "audit subscriptions", "optimize my cards", "maximize rewards", or "analyze my spending". Outputs interactive HTML with subscription management and card optimization.

Tổng quan

Nhà phát hànhcathrynlavery
Kho mãspend-optimizer
Tên kỹ năngspend-optimizer
Sao
30
Bản fork
3
Tệp đi kèm
7
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 7 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được cathrynlavery công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Spend Optimizer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/cathrynlavery/spend-optimizer/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cathrynlavery/spend-optimizer.git \
  .claude/skills/spend-optimizer
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Spend Optimizer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Spend Optimizer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Spend Optimizer với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

spend-optimizer

Complete spend optimization: subscription auditing + credit card rewards maximization.

What This Does

  1. Subscription Audit - Find recurring charges, categorize (keep/cancel/investigate), calculate savings
  2. Card Optimization - Map charges to optimal credit cards based on reward categories
  3. Credit Optimization - Flag services you're paying for that should be FREE via card credits
  4. Interactive Reports - HTML dashboards with dispute tracking, notes, and actionable insights

Workflow

Step 1: Get Transaction CSVs

Ask user for bank/card CSV exports. Support multiple cards for full optimization.

Common export sources:

  • Apple Card: Wallet → Card Balance → Export
  • Amex: Account → Statements & Activity → Download
  • Chase: Accounts → Download activity → CSV
  • Mint/Copilot: Transactions → Export all

Important: Request exports from ALL cards for accurate optimization. Note the last 4 digits of each card number.

Step 2: Gather Card Information

Ask user about their credit cards:

What credit cards do you have? For each, I need:
- Last 4 digits (for matching to transactions)
- Card name (e.g., "Amex Gold", "Chase Sapphire")
- Annual fee (if known)

Check credit-cards.md for common card reward structures.

Step 3: Analyze Transactions

Read all CSVs and identify:

Recurring charges:

  • Same merchant, similar amounts, monthly/annual frequency
  • Flag subscription-like charges (streaming, SaaS, memberships)
  • Note charge frequency and total annual cost

Card optimization opportunities:

  • Which card each charge is currently on
  • Which card it SHOULD be on for max rewards
  • Calculate potential rewards gain from moving charges

Credit/perk opportunities:

  • Check credit-cards.md Statement Credits section
  • Flag any service the user is paying for that's covered by a card credit they have
  • Examples:
    • Paying for Disney+ on Chase → Should be on Amex Platinum (free $7/mo credit)
    • Paying for Uber on random card → Should be on Amex Platinum ($15/mo) or Amex Gold ($10/mo)
    • Paying for DoorDash → Should be on Chase Sapphire Reserve (free DashPass + $5/mo)
    • Paying for Adobe → Should be on Amex Business Platinum ($150/yr credit)
    • Paying for cell phone bill → Should be on Amex Business Platinum ($10/mo wireless credit)

Step 4: Categorize with User

For each subscription, ask user to set status:

  • Keep - Intentional, continue paying
  • Cancel - Stop immediately
  • Investigate - Needs decision (unsure, contract trap)
  • Dispute - Never got access, want refund

Ask in batches of 5-10 to avoid overwhelming. Include card optimization recommendation with each.

Step 5: Generate HTML Report

Use template.html to create interactive report:

Header section:

  • Subscription count and total monthly spend
  • Potential annual rewards with optimized card usage
  • Savings from cancelled subscriptions
  • Dispute count and value

Card legend:

  • List all user's cards with color coding
  • Show reward categories for each card

Subscription rows include:

  • Service name and monthly amount
  • Current card (color-coded badge)
  • Optimal card with "OK" or "MOVE" indicator
  • Status dropdown (Keep/Cancel/Investigate/Dispute)
  • Notes field for user comments
  • Frequency (monthly/annual/etc.)

Features:

  • Auto-save to localStorage
  • Export disputes button
  • Privacy toggle (blur names)
  • Collapsible sections
  • Dark mode support

Step 6: Generate Card Optimization Plan

If significant optimization opportunities exist, create card-optimization.html:

  • Card arsenal overview (all cards, fees, reward structures)
  • Spend routing strategy table
  • Action items for card migration
  • Quick reference cheat sheet
  • Monthly checklist
  • ROI summary (fees vs rewards)

Step 7: Help Cancel & Dispute

When user is ready to act:

Cancellations:

  • Check common-services.md for cancel URLs
  • Use browser automation to navigate and cancel if requested
  • Update HTML row status when done

Disputes:

  • Export disputes from HTML report
  • Provide guidance on disputing with card issuer
  • Note: Most cards allow disputes within 60-120 days

Card Optimization Logic

Common Reward Categories

Advertising/Marketing:

  • Facebook, Google, TikTok, Pinterest, LinkedIn ads
  • Best cards: Amex Business Gold (4x), Chase Ink (3x)

Software/SaaS:

  • Shopify, Notion, Adobe, cloud services
  • Best cards: Amex Business Gold (4x), Amex Business Platinum (1.5x on $5K+)

Shipping:

  • ShipBob, UPS, FedEx, USPS
  • Best cards: Amex Business Gold (4x), Chase Ink (3x)

Travel:

  • Flights, hotels, car rentals
  • Best cards: Chase Sapphire Reserve (3-10x), Amex Platinum (5x)

Dining:

  • Restaurants, food delivery
  • Best cards: Chase Sapphire Reserve (3x), Amex Gold (4x)

Internet/Phone:

  • ISP, cell phone, cable
  • Best cards: Chase Ink Preferred (3x)

Category Caps

Many cards have annual caps on bonus categories:

  • Amex Business Gold: $150K per category at 4x
  • Chase Ink: $150K combined at 3x

Track spending against caps and recommend overflow cards.

File Structure

spend-optimizer/
├── SKILL.md                 # This file
├── assets/
│   ├── template.html        # Subscription audit template
│   └── card-optimization-template.html  # Card strategy template
└── references/
    ├── common-services.md   # Cancel URLs and tips
    └── credit-cards.md      # Card reward structures

Privacy

All data stays local:

  • Transaction CSVs analyzed in-session only
  • HTML reports stored on user's machine
  • localStorage for user preferences
  • No data sent anywhere

Tips

For maximum value:

  1. Get CSVs from ALL cards (not just one)
  2. Look at 6+ months of data for pattern detection
  3. Track category cap progress quarterly
  4. Update card payment methods for "MOVE" items
  5. Set calendar reminders for annual subscriptions

Red flags to surface:

  • Duplicate subscriptions (same service, multiple charges)
  • Price increases - Compare same merchant across months (see Price Increase Detection below)
  • Zombie charges (services no longer used)
  • Trial conversions (free trial → paid)
  • Annual charges - Flag yearly subscriptions with renewal estimates (see Annual Tracker below)
  • Missed credits - Paying for something covered by a card credit (see below)
  • Category cap warnings - Alert when approaching $150K limits (see Cap Tracker below)

Credit opportunities to flag:

Always check if user is paying for any of these on the wrong card:

If paying for...Move to this cardCredit value
Disney+, Hulu, ESPN+Amex Platinum$7/mo FREE
PeacockAmex Platinum$7/mo FREE
AudibleAmex Platinum$7/mo FREE
NYTimesAmex Platinum$7/mo FREE
Apple TV+Amex Platinum$6.99/mo FREE
Walmart+Amex Platinum$12.95/mo FREE
Uber/Uber EatsAmex Platinum$15/mo FREE
Uber/Uber EatsAmex Gold$10/mo FREE
Grubhub/SeamlessAmex Gold$10/mo FREE
DoorDashChase Sapphire Reserve$5/mo + DashPass FREE
DoorDashCapital One Venture X$10/mo FREE
InstacartChase Sapphire ReserveInstacart+ FREE
Adobe Creative CloudAmex Business Platinum$150/yr credit
Dell purchasesAmex Business Platinum$400/yr credit
Indeed job postsAmex Business Platinum$360/yr credit
Cell phone billAmex Business Platinum$10/mo credit
ClearAmex Platinum$199/yr FREE
Equinox/SoulCycleAmex Platinum$25/mo credit
Global Entry/PreCheckMultiple cards$100 credit

Report format for missed credits:

When flagging a missed credit, show:

⚠️ MISSED CREDIT: You're paying $X.XX/mo for [Service] on [Current Card]
   → Move to [Credit Card] to get it FREE ($XX/yr savings)

Price Increase Detection

Compare the same merchant across multiple months to catch silent price increases.

How to detect:

  1. Group transactions by merchant name (normalize: lowercase, remove extra spaces)
  2. For recurring charges, compare amounts month-over-month
  3. Flag if current amount > previous amount

Report format:

⚠️ PRICE INCREASE: [Service] went from $X.XX to $Y.YY (+Z%)
   First seen at new price: [Date]
   Consider: Is this still worth it at the new price?

Common patterns:

  • Streaming services: Often increase $1-2/mo annually
  • SaaS tools: May increase 10-20% at renewal
  • Annual subscriptions: Harder to notice since you only see once/year

Thresholds:

  • Flag any increase > $1 or > 5%
  • Highlight increases > 20% as significant

Annual Subscription Tracker

Annual charges are easy to forget. Flag them and estimate renewal dates.

How to detect:

  1. Look for charges that appear only once in 6-12 months of data
  2. Check if amount suggests annual billing ($100+ single charge vs $10 monthly)
  3. Look for merchant names containing: "annual", "yearly", or known annual services

Known annual services to watch for:

  • Domain registrations (GoDaddy, Namecheap, Google Domains)
  • Annual software licenses (Adobe, Microsoft 365)
  • Memberships (Costco, Amazon Prime, warehouse clubs)
  • Professional subscriptions (industry associations)
  • Insurance premiums
  • Accounting software (QuickBooks, FreshBooks)

Report format:

📅 ANNUAL SUBSCRIPTION: [Service] - $XXX/year
   Last charged: [Date]
   Estimated renewal: [Date + 1 year]
   ⏰ Set reminder for [2 weeks before renewal]

In HTML report:

  • Add "Annual" badge to these subscriptions
  • Show estimated renewal date
  • Sort annual subscriptions by upcoming renewal date

Category Cap Tracker

Track spending against bonus category caps to maximize rewards.

Key caps to track:

CardCategoryCapMultiplier After
Amex Business GoldEach bonus category$150,000/yr1x
Amex Blue Business PlusAll purchases$50,000/yr1x
Chase Ink PreferredCombined bonus categories$150,000/yr1x
Chase Ink CashOffice supplies$25,000/yr1%
Chase Ink CashInternet/phone$25,000/yr1%
Chase Ink CashGas/dining$25,000/yr1%
BofA Customized CashChoice category$50,000/yr1%

How to track:

  1. Categorize each transaction by reward category
  2. Sum spending per category per card
  3. Calculate percentage of cap used
  4. Project when cap will be hit based on monthly average

Report format:

📊 CATEGORY CAP STATUS: [Card Name]

Advertising:     $87,500 / $150,000 (58%) ████████░░░░
Software:        $42,000 / $150,000 (28%) ████░░░░░░░░
Shipping:        $12,000 / $150,000 (8%)  █░░░░░░░░░░░

⚠️ At current pace, you'll hit Advertising cap in ~2.5 months
   → Consider moving overflow to Chase Ink Preferred (3x)

Alerts:

  • 🟡 Warning at 75% of cap
  • 🔴 Alert at 90% of cap
  • Suggest overflow card when approaching limit

Quarterly review:

  • Q1: Check if on pace to hit caps
  • Q2: Mid-year adjustment if needed
  • Q3: Start planning overflow strategy
  • Q4: Final push to maximize before reset

Cap reset dates:

  • Amex: Calendar year (Jan 1)
  • Chase: Cardmember year (anniversary date)
  • Check card terms for specific reset timing

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Spend Optimizer làm được gì?

Audit subscriptions AND optimize credit card rewards. Analyzes bank CSVs to find recurring charges, categorize spend, identify which card each charge should be on, and calculate potential rewards. Use when user says "audit subscriptions", "optimize my cards", "maximize rewards", or "analyze my spending". Outputs interactive HTML with subscription management and card optimization.

Vì sao nên dùng Spend Optimizer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Spend Optimizer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Spend Optimizer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/cathrynlavery/spend-optimizer/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Spend Optimizer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Spend Optimizer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Spend Optimizer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Spend Optimizer có miễn phí không?

Kỹ năng này được cathrynlavery phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇