Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

card-optimizer卡优化器

Agent Skill

card-optimizer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

69,523

周安装

2,840

GitHub Stars

公开资料未说明

下载量

22,493
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:card-optimizer(卡优化器)
来源仓库:https://github.com/scottfo/card-optimizer
安装命令:
openclaw skills install card-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install card-optimizer

简介

信用卡奖励优化器 - 通过为每个购买类别推荐最佳信用卡,帮助最大限度地提高现金返还、积分和里程。跟踪年度上限,计算年费投资回报率,管理轮换的季度类别,并根据支出模式建议新卡。

SKILL.md

name
card-optimizer
description
Credit card rewards optimizer — helps maximize cashback, points, and miles by recommending the best card for every purchase category. Tracks annual caps, calculates annual fee ROI, manages rotating quarterly categories, and suggests new cards based on spending patterns.
homepage
https://github.com/ScotTFO/card-optimizer-skill
metadata
{"clawdbot":{"emoji":"💳"}}

Card Optimizer

Maximize credit card rewards by always using the right card for every purchase.

Data Location

  • Skill logic: skills/card-optimizer/ (this file)
  • User data: data/card-optimizer/

- cards.json — card definitions, reward rates, spending estimates, category map

Card Database Schema

Each card in cards.json follows this structure:

{
  "id": "unique_id",
  "name": "Card Name",
  "issuer": "Issuer Name",
  "network": "visa|mastercard|amex|discover",
  "annual_fee": 95,
  "reward_type": "cashback|points|miles",
  "point_valuation_cpp": null,
  "transfer_partners": [],
  "notes": "Optional notes",
  "signup_bonus": {
    "amount": 200,
    "type": "cashback",
    "spend_requirement": 3000,
    "timeframe_months": 3,
    "earned": false
  },
  "categories": [
    {
      "category": "groceries",
      "rate": 6.0,
      "cap_amount": 6000,
      "cap_period": "yearly",
      "rate_after_cap": 1.0
    },
    {
      "category": "rotating",
      "rate": 5.0,
      "cap_amount": 1500,
      "cap_period": "quarterly",
      "rate_after_cap": 1.0,
      "quarterly_categories": {
        "Q1": ["gas", "ev_charging"],
        "Q2": ["groceries", "home_improvement"],
        "Q3": ["restaurants", "paypal"],
        "Q4": ["amazon", "target", "walmart"]
      },
      "activation_required": true
    },
    {
      "category": "everything_else",
      "rate": 1.0
    }
  ]
}

Point Valuations

For points/miles cards, store point_valuation_cpp (cents per point):

  • Chase Ultimate Rewards: 1.0 cpp base, 1.25 cpp with Sapphire Preferred, 1.5 cpp with Sapphire Reserve
  • Amex Membership Rewards: 1.0 cpp base, varies by transfer partner
  • When comparing cards, multiply rate × point_valuation_cpp to get effective cashback equivalent

Category Map

The category_map in cards.json maps each spending category to the best card ID. This is the precomputed optimal assignment — recalculate when cards are added or removed.

Spending Estimates

To power ROI calculations, gap analysis, and new card recommendations, the user can optionally set estimated monthly spending per category in cards.json:

{
  "estimated_monthly_spending": {
    "groceries": 600,
    "gas": 200,
    "restaurants": 300,
    "amazon": 150,
    "streaming": 50,
    "everything_else": 500
  }
}

If no estimates are provided, the skill can still recommend cards per-purchase — it just can't run ROI or gap analysis. Ask the user to estimate during first-time setup.

Note: This skill does NOT track individual purchases. If the user wants detailed spending data, they should connect their bank accounts through a budgeting tool. These estimates are rough numbers for optimization calculations.

Purchase Optimizer

How to Recommend a Card

When the user asks "which card for [category]?" or "I'm buying [item]":

  1. Identify the category from the purchase (see Category Matching below)
  2. Check all cards for that category's reward rate
  3. Factor in caps: If a card has a cap and the user's estimated annual spending in that category exceeds it, note the cap and when they'd likely exhaust it
  4. Factor in network acceptance: If the best card is Amex, mention that some merchants don't accept Amex and provide a Visa/MC fallback
  5. Compare effective rates: For points cards, use point_valuation_cpp to convert to cashback-equivalent
  6. Return recommendation with reasoning

Response Format

💳 Use: [Card Name] ([Issuer])
💰 Reward: [X]% [cashback/points/miles] on [category]
⚠️ Note: [any caps, network warnings, or caveats]
🔄 Fallback: [Next best card if merchant doesn't accept primary]

Cap-Aware Recommendations

When a card has spending caps:

  • Well under cap: Recommend normally
  • Cap likely to exhaust (based on estimated spending): Note when the cap would be hit and what to switch to after
  • Cap exists: Always mention the cap so the user is aware

Example: "Your Amex BCP gets 6% on groceries up to $6,000/year. At ~$600/month, you'll hit the cap around October. After that, it drops to 1% — switch to Wells Fargo Active Cash for 2%."

Quarterly Category Management

Rotating Categories

Some cards (Chase Freedom Flex, Discover It) have rotating 5% categories that change quarterly and require activation.

Quarterly Alerts

At the start of each quarter (Jan 1, Apr 1, Jul 1, Oct 1):

  • Check for cards with activation_required: true
  • If not yet activated for the current quarter, remind the user
  • List the current quarter's bonus categories
  • Note: To automate this, add a quarterly cron job or include in the mileage check heartbeat

Store activation status per card:

{
  "quarterly_activations": {
    "chase_freedom_flex": {
      "2026-Q1": {"activated": true, "date": "2026-01-02"}
    }
  }
}

Annual Fee ROI Analysis

For each card with an annual fee, calculate whether it's worth keeping based on estimated_monthly_spending:

  1. Calculate bonus rewards: For each bonus category, compute annual rewards at the bonus rate
  2. Calculate baseline: What a no-fee 2% flat card would earn on the same spending
  3. Bonus value: bonus_rewards − baseline_rewards
  4. Net ROI: bonus_value − annual_fee
  5. Verdict: Worth it if net ROI > 0

Report Format

💳 [Card Name] — Annual Fee: $[fee]

Bonus rewards earned:     $[amount]
vs. 2% flat card:         $[amount]
Bonus value:              $[amount]
Annual fee:              -$[fee]
━━━━━━━━━━━━━━━━━━━━━━━━
Net value:                $[amount] ✅ Worth it / ❌ Consider downgrading

Break-even: Need $[X]/yr in bonus categories to justify the fee

Optimization & Gap Analysis

Spending Gap Analysis

Using estimated_monthly_spending, identify:

  1. Weak categories: High spending where the best available card only earns 1-2%
  2. Underperforming fee cards: Annual fee cards not earning enough bonus to justify the fee
  3. Cap exhaustion: Categories where estimated spending exceeds bonus caps — may benefit from a second card
  4. Missing coverage: Common categories with no bonus card at all

Report Format

📊 Card Optimization Report

✅ Well covered:
- Groceries → Amex BCP (6%) — earning ~$360/yr
- Amazon → Chase Prime (5%) — earning ~$90/yr

⚠️ Gaps identified:
- Dining: $300/mo at 2% (Chase Prime) — a 4% dining card would save $72/yr
- Travel: $200/mo at 1% — a 3x travel card would earn $48 more/yr

❌ Fee card alert:
- [Card] costs $95/yr but only generates $60 in bonus rewards — net loss of $35

💡 Recommendations:
- Adding [Card Name] would earn ~$[X] more per year on [categories]
- Consider downgrading [Card] to the no-fee version

New Card Recommendations

Based on spending estimates, suggest cards that would add value:

  1. Identify the user's highest-spending weak categories
  2. Match against popular cards with strong rates in those categories
  3. Calculate projected annual rewards from the new card
  4. Factor in annual fees
  5. Mention signup bonuses as first-year sweetener

Do not recommend specific affiliate links — just name the card and explain why.

Popular cards to consider by category:

CategoryCardsNotes
DiningChase Sapphire Preferred (3x), Amex Gold (4x), Capital One SavorOne (3%)Sapphire and Gold have annual fees
GroceriesAmex BCP (6%), Amex Gold (4x MR)BCP has $6k cap
TravelChase Sapphire Reserve (3x), Amex Platinum (5x flights), Capital One Venture X (2x)All have significant annual fees
GasCiti Custom Cash (5% top category), PenFed Platinum Rewards (5x gas)Custom Cash is flexible
Flat rateCiti Double Cash (2%), Wells Fargo Active Cash (2%), Fidelity Visa (2%)No-fee safety nets
RotatingChase Freedom Flex (5% quarterly), Discover It (5% quarterly + first-year match)Requires activation

Category Matching

Merchant → Category Mapping

When the user mentions a merchant, map to the correct card category:

Merchant / KeywordCategoryNotes
Kroger, Publix, Safeway, HEB, Aldi, Trader Joe'sgroceriesSupermarkets
Costco, Sam's Clubgroceries OR warehouseCostco is Visa-only in store. Amex may code as groceries at Sam's Club
Target, WalmartvariesMay code as "superstore" not "groceries" — depends on card issuer
Amazon, amazon.comamazonSome cards have specific Amazon category
Whole Foodswhole_foods OR groceriesChase Prime has specific Whole Foods category
Shell, Exxon, BP, ChevrongasGas stations
Uber, Lyft, subway, bustransitPublic transit and rideshare
Netflix, Hulu, Spotify, Disney+, HBO Max, YouTube TVstreamingStreaming subscriptions
Chipotle, McDonald's, DoorDash, GrubhubrestaurantsDining and food delivery
CVS, Walgreens, Rite AiddrugstoresPharmacies
Hilton, Marriott, Airbnbhotels/travelTravel/lodging
United, Delta, Southwestairlines/travelAirfare

Fuzzy Category Matching

When the user says something informal:

  • "food" / "eating out" / "dinner" → restaurants
  • "grocery run" / "supermarket" → groceries
  • "gas" / "fuel" / "fill up" → gas
  • "uber" / "lyft" / "ride" → transit
  • "stuff on amazon" / "prime order" → amazon
  • "pharmacy" / "meds" / "prescription" → drugstores
  • "subscription" / "monthly streaming" → streaming
  • "general" / "random purchase" → everything_else

If ambiguous, ask: "Is this a grocery store or a restaurant?"

Network Acceptance Warnings

Amex Acceptance

American Express has lower merchant acceptance than Visa/Mastercard:

  • Small/local businesses
  • Some international merchants
  • Costco (Visa only in-store in the US)
  • Some government payments

When recommending an Amex card, always provide a Visa/MC fallback.

Costco Special Case

Costco US stores only accept Visa credit cards (plus debit/cash):

  • In-store: Must use Visa
  • Online (costco.com): Visa, Mastercard, Discover (no Amex)

Adding a New Card

When the user wants to add a card:

  1. Gather info:

- Card name and issuer - Payment network (Visa/MC/Amex/Discover) - Annual fee - Reward type (cashback/points/miles) and point valuation if applicable - Category reward rates (each bonus category + base rate) - Any caps or limits per category - Rotating categories? Which quarters, activation required? - Signup bonus details (optional)

  1. Research the card if the user just gives a name — look up current reward rates, fees, and categories via web search
  1. Create card entry in cards.json
  1. Recalculate category_map — determine which card now wins each category
  1. Confirm and show updated recommendations

Removing a Card

  1. Remove from cards array in cards.json
  2. Recalculate category_map
  3. Confirm and show any categories that now have weaker coverage

First-Time Setup

If data/card-optimizer/cards.json doesn't exist:

  1. Ask the user what credit cards they have
  2. For each card, either:

- Look up the card's current reward structure via web search, OR - Ask the user for rates if it's an unusual/regional card

  1. Build cards.json with all cards and the precomputed category map
  2. Ask for estimated monthly spending per major category (groceries, gas, dining, amazon, streaming, general, etc.) — explain this powers ROI and gap analysis but is optional
  3. Run an initial optimization report showing their best card per category and any gaps

Quick Reference

User SaysAction
"Which card for groceries?"Recommend best card for that category
"I'm buying gas"Recommend with gas category
"Best card for Amazon?"Recommend with Amazon category
"Annual fee worth it?"ROI analysis for all fee cards
"Add a new card"Walk through new card setup
"Remove a card"Remove and recalculate
"Card optimization report"Full gap analysis + recommendations
"What cards should I get?"New card recommendations
"Activate Q2 categories"Update quarterly activation status
"Does Costco take Amex?"Network acceptance info
"What are my cards?"List all cards with key rates
"Update my spending estimates"Revise estimated monthly spending

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.97%
按下载量换算21,587

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills