Agent skill

trip-calculator

Cash vs points trip cost comparison. Factors in transfer ratios, taxes, fees, CPP valuations, and opportunity cost to recommend the best redemption strategy for flights and hotels.

borski611★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add borski/travel-hacking-toolkit --skill trip-calculator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 10 KB
Bundled scripts: none
Path: plugins/travel-hacking-toolkit/skills/trip-calculator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 611
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Trip Cost Calculator "Should I pay cash or use points?" answered with math. Compares the true cost of booking with cash versus each available points currency, accounting for transfer ratios, taxes/fees, and the opportunity cost of burning your points. **No API key needed.** Uses local JSON data files plus flight/hotel search results. ## Data Files | File | Purpose | |------|---------| | `data/points-valuations.json` | CPP valuations per program (floor/ceiling) | | `data/transfer-partners.json` | Credit card → loyalty program transfer ratios | ## When to Use - User has both cash prices (from Duffel/Ignav/Google Flights) and award prices (from seats.aero) - User asks "should I pay cash or use points?" - User wants to know the CPP of a specific redemption - User is deciding between multiple booking strategies for a trip ## Core Concepts ### Cents Per Point (CPP) The value you're getting per point when redeeming: ``` cpp = (cash_price - taxes_on_award) / points_needed × 100 ``` A CPP **above** the floor valuation from `points-valuations.json` means you're getting above-average value. Below floor = poor redemption. ### Opportunity Cost Points have value even when unspent. Burning 100K

What's inside
Steps it walks through
  1. Data Files
  2. When to Use
  3. Core Concepts
  4. Cents Per Point (CPP)
  5. Opportunity Cost
  6. The Decision Framework
  7. Workflow
  8. Step 1: Gather Prices
  9. Step 2: Calculate CPP for Each Award Option
  10. Step 3: Factor in Transfer Ratios
  11. Step 4: Compare Against Valuations
  12. Step 5: Present Comparison
  13. Step 6: Round-Trip and Multi-Segment
  14. jq Recipes
Commands it runs
jq -r '.credit_card_points.chase_ultimate_rewards | "Chase UR: floor \(.floor)cpp, ceiling \(.ceiling)cpp"' data/points-valuations.json
jq -r '.credit_card_points.chase_ultimate_rewards.floor' data/points-valuations.json
echo "$POINTS points × $FLOOR cpp = \$$(echo "$POINTS * $FLOOR / 100" | bc) opportunity cost"
echo "Cash: \$$CASH"
echo "Award: $TOTAL_MILES miles + \$$TOTAL_TAXES taxes"
echo "CPP: $(echo "scale=2; ($CASH - $TOTAL_TAXES) / $TOTAL_MILES * 100" | bc)"
Opportunity cost at floor valuation
echo "Opportunity cost: \$$(echo "scale=0; $TOTAL_MILES * $FLOOR / 100" | bc)"
More from travel-hacking-toolkit
All skills →
About this skill
What does the trip-calculator skill do?

Cash vs points trip cost comparison. Factors in transfer ratios, taxes, fees, CPP valuations, and opportunity cost to recommend the best redemption strategy for flights and hotels.

How do I install it?

Run `npx skills add borski/travel-hacking-toolkit --skill trip-calculator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From borski/travel-hacking-toolkit, a repository with 611 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going