trip-calculator

trip-calculator is a skill for Claude Code from borski/travel-hacking-toolkit. It costs 37 tokens per session (2,563 once invoked), scanned A, original, MIT.

A trip-cost comparison tool for deciding whether to pay with money or loyalty points for flights and hotels. It accounts for taxes, fees, transfer rates, and the value of saving points for later.

In plain words
What is it for?
Use it to compare cash and points prices, calculate cents per point, and choose among several ways to book a trip.
Why use it?
It replaces a quick points-price calculation with a fuller comparison of the real cost of each booking option. This helps avoid using points for poor value.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the travel-hacker plugin — 48 skills, 1 agent, 7 MCP servers shipped together

Good fit Use it to compare cash and points prices, calculate cents per point, and choose among several ways to book a trip.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/borski/travel-hacking-toolkit/trip-calculator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add borski/travel-hacking-toolkit --skill trip-calculator
Clone the repo
git clone --depth 1 https://github.com/borski/travel-hacking-toolkit

Made for: Claude Code.

Or install travel-hacker, the plugin that ships this one along with the rest of its 48 skills, 1 agent, 7 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trip-calculator

README.md
[![agentmods](https://agentmods.dev/badge/skills/borski/travel-hacking-toolkit/trip-calculator/github.svg)](https://agentmods.dev/skills/borski/travel-hacking-toolkit/trip-calculator)
Your own site
<a href="https://agentmods.dev/skills/borski/travel-hacking-toolkit/trip-calculator"><img src="https://agentmods.dev/badge/skills/borski/travel-hacking-toolkit/trip-calculator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trip-calculator

Your own site · 80×15
<a href="https://agentmods.dev/skills/borski/travel-hacking-toolkit/trip-calculator"><img src="https://agentmods.dev/badge/skills/borski/travel-hacking-toolkit/trip-calculator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02563
Opus 5.5 $0.00015 $0.01025
Sonnet 5.5 $0.00007 $0.00513
Haiku 4.5 $0.00004 $0.00256

Measured 2mo ago against content hash 54d3b9adc074, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trip-calculator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/travel-hacking-toolkit/skills/trip-calculator/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 Chase UR at 1.7 cpp (floor) means you're "spending" $1,700 in future travel flexibility:

opportunity_cost = points_needed × floor_cpp / 100

If the cash price is lower than the opportunity cost, pay cash. If higher, use points.

The Decision Framework

IF cash_price < opportunity_cost → PAY CASH (points are worth more saved)
IF cash_price > opportunity_cost → USE POINTS (good redemption)
IF cash_price ≈ opportunity_cost → PAY CASH (preserve flexibility)

The tie goes to cash because points maintain optionality.

Workflow

Step 1: Gather Prices

Cash prices (use one or more sources):

Duffel API → exact bookable fares
Ignav API → fast comparison prices
Google Flights → browser-based, includes Southwest

Award prices (use seats.aero):

Seats.aero API → cached availability across 25+ programs
Seats.aero web → live search (local Patchright only)

Read the full file on GitHub · 235 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 235 lines · 37 tokens per session scan A 54d3b9adc074

Subscribe to this mod's changes

trip-calculator is a skill published in the GitHub repository borski/travel-hacking-toolkit (926 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 2,563 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

trip-calculator compared with skills from other repositories

trip-calculator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trip-calculatorborski/travel-hacking-toolkitSkill926todayMITA37Claude Code
analyzemahmoud20138/TradecraftSkill176mo agoMITA75Claude Code
analyze-goldmahmoud20138/TradecraftSkill176mo agoMITA65Claude Code
analyze-us30mahmoud20138/TradecraftSkill176mo agoMITA73Claude Code
orca-jirastablyai/orcaSkill120ktodayMITA74Claude Code, Codex
using-aoUntrivial-ai/agent-orchestratorSkill14k2d agoApache-2.0A71Claude Code, Codex
alpha-vantageforyourhealth111-pixel/Vibe-SkillsSkill3.8ktodayApache-2.0A126Claude Code, Codex