Agent skill

Wheretocredit

by borski in borski/travel-hacking-toolkit

Mileage earning rates by airline and booking class via wheretocredit.com.

MITAuto-check passed

Install Wheretocredit

skills CLI
$ npx skills add borski/travel-hacking-toolkit --skill wheretocredit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borski/travel-hacking-toolkit wheretocredit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borski/travel-hacking-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/travel-hacking-toolkit/skills/wheretocredit .claude/skills/wheretocredit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wheretocredit
GitHub stars
688
Token cost
~2.4k tokens
SKILL.md length
1,104 words
Files
1
Skills in repo
46
Repo updated
First seen
Licence
MIT

At a glance

Mileage earning rates by airline and booking class via wheretocredit.com.

  • Works in 5 steps: Gather inputs → Fetch earning rates → Calculate actual miles earned → …
  • Deciding where to credit a flight
  • SKILL.md covers URL Patterns, Common IATA Codes, Common Program Codes and Reading the Results, plus 6 more sections
  • Reaches wheretocredit.com

What it does

Wheretocredit is an agent skill from borski/travel-hacking-toolkit. Mileage earning rates by airline and booking class via wheretocredit.com. Redeemable and qualifying miles across 50+ programs. Use when deciding where to credit a flight or comparing earning rates.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AI-powered travel hacking and search with cash, points, miles, and award flights. Drop-in skills and MCP servers for Claude, Codex, and OpenCode. The licence is MIT.

When your agent uses it

  • Deciding where to credit a flight
  • Comparing earning rates

Example prompts

  • “/wheretocredit”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Gather inputs
  2. Fetch earning rates
  3. Calculate actual miles earned
  4. Apply decision rules
  5. Output the recommendation

What it can do on your machine

Read from SKILL.md and the folder at commit db82131. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • wheretocredit.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wheretocredit loads about 2.4k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 1,104 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from borski/travel-hacking-toolkit at commit db82131, republished under its MIT licence (© borski). 1,104 words, ~2,384 tokens.

Download SKILL.mdSave it as .claude/skills/wheretocredit/SKILL.md (or your agent's skills folder).
name
wheretocredit
description
Mileage earning rates by airline and booking class via wheretocredit.com. Redeemable and qualifying miles across 50+ programs. Use when deciding where to credit a flight or comparing earning rates.
category
loyalty
summary
Mileage earning rates by airline and booking class across 50+ programs.
api_key
None (free)
license
MIT

Where to Credit

Look up mileage earning rates for any airline and booking class across 50+ frequent flyer programs. Covers both redeemable miles (the ones you spend) and qualifying miles (the ones that count toward elite status).

Source: wheretocredit.com — No API key required. Data is scraped via webfetch.

URL Patterns

All data lives at predictable URLs on wheretocredit.com:

Airline booking class detail (PRIMARY)
https://www.wheretocredit.com/en/{IATA_CODE}/{BOOKING_CLASS}

Returns: cabin type, fare types, redeemable miles table, qualifying miles table.

Example: https://www.wheretocredit.com/en/AY/Z (Finnair class Z)

Airline overview (all classes)
https://www.wheretocredit.com/en/{IATA_CODE}

Returns: list of all booking classes with cabin, fare types, and top earning program for each.

Example: https://www.wheretocredit.com/en/AY (all Finnair classes)

Program overview (all partner airlines)
https://www.wheretocredit.com/en/programs/{PROGRAM_CODE}

Returns: list of all airlines that credit to this program.

Example: https://www.wheretocredit.com/en/programs/AA (AA AAdvantage partners)

Common IATA Codes

CodeAirline
AAAmerican Airlines
ASAlaska Airlines
AFAir France
AYFinnair
BABritish Airways
CXCathay Pacific
DLDelta
EKEmirates
IBIberia
JLJapan Airlines
KLKLM
LHLufthansa
NHANA
QFQantas
QRQatar Airways
SKSAS
SQSingapore Airlines
TKTurkish Airlines
UAUnited Airlines
VSVirgin Atlantic

Common Program Codes

CodeProgram
AAAmerican Airlines AAdvantage
AS2Alaska/Hawaiian Atmos Rewards
AFBFlying Blue (Air France/KLM)
BA2British Airways Club
CXCathay Marco Polo / Asia Miles
DL2Delta SkyMiles
IB2Iberia Plus
JLJapan Airlines Mileage Bank
LHMiles & More
QRQatar Privilege Club
SKSAS EuroBonus
SQSingapore KrisFlyer
UAUnited MileagePlus
VSVirgin Atlantic Flying Club

Reading the Results

Redeemable Miles Table

Shows the percentage of flown distance you earn as spendable miles.

ColumnMeaning
BaseEarning rate with no elite status
Tier 1First elite tier bonus
Tier 2Second elite tier bonus
Tier 3Third elite tier bonus
Tier 4Highest elite tier bonus
MinimumFloor (e.g., "500 Miles" means you earn at least 500 regardless of distance)
RestrictionLimitations (e.g., "Countries Excluded: CU" = no earning on Cuba routes)
Qualifying Miles Table

Shows the percentage of flown distance that counts toward elite status.

Same column structure. Often different rates from redeemable. Some programs earn 0% qualifying on discounted fares even when they earn redeemable miles.

Key distinction: A flight can earn redeemable miles but zero qualifying miles. Always check BOTH tables.

Tier Levels by Program

Programs use different names for their tiers. Map your status to the right tier column:

ProgramBaseTier 1Tier 2Tier 3Tier 4
AA AAdvantageBaseGoldPlatinumPlatinum ProExecutive Platinum
Alaska AtmosBaseMVPMVP GoldMVP Gold 75KMVP Gold 100K
Delta SkyMilesBaseSilverGoldPlatinumDiamond
United MileagePlusBaseSilverGoldPlatinum1K
Flying BlueBaseSilverGoldPlatinumUltimate
BA Executive ClubBaseBronzeSilverGoldGold Guest List

Traveler Profiles

Before using the decision algorithm, define each traveler's profile. You need:

  • Which FF programs they have accounts in
  • Their elite status tier in each program
  • Which program is their "primary" (the one they're actively building status in)

Example profile:

Traveler: Alex
Programs: AA AAdvantage (Platinum, Tier 2), Alaska Atmos (Base), Flying Blue (Silver, Tier 1)
Primary: AA AAdvantage (retaining Platinum status)

Only recommend programs someone has an account in. Don't suggest crediting to Etihad Guest if nobody has one, unless the earning is dramatically better AND the program is useful for future redemptions.

Decision Algorithm

When a flight is booked, run this logic to determine where to credit:

Step 1: Gather inputs
  • Operating airline IATA code (from ticket, NOT ticketing airline)
  • Booking class letter (from ticket or fare details)
  • Route distance in miles (estimate or look up)
  • Which traveler(s) are on the ticket
Step 2: Fetch earning rates
  • Fetch https://www.wheretocredit.com/en/{IATA}/{CLASS}
  • Extract redeemable AND qualifying rates for all of that traveler's programs
Step 3: Calculate actual miles earned

For each reachable program, for each traveler:

raw_miles = route_distance × (base_rate + tier_bonus) / 100
actual_miles = max(raw_miles, minimum_floor)

If a program uses fare-price earning (e.g., "6 Miles/EUR"), calculate based on ticket price instead of distance.

Show full SKILL.md (485 more words)Show less
Step 4: Apply decision rules

Rule 1: Short-haul floor advantage. On flights under ~1,500 miles, programs with a 500+ mile minimum floor (like Alaska) can earn MORE than programs offering a percentage of distance. Calculate both and compare. At Base tier, Alaska's 500 floor beats 25% earning on any flight under 2,000 miles. At higher tiers with bonus percentages, the crossover point drops.

Rule 2: Qualifying miles matter for status chasers. If a traveler is actively building or retaining elite status, qualifying miles matter. If a flight earns qualifying miles on their primary program but not on the higher-earning alternative, flag the tradeoff.

Rule 3: Highest redeemable wins (all else equal). If qualifying miles are a wash or irrelevant, credit to whichever program earns the most spendable miles.

Rule 4: Don't split for tiny differences. If two programs are within 50 miles of each other, default to the traveler's primary program for simplicity.

Step 5: Output the recommendation

Format:

✈️ {AIRLINE} {FLIGHT} ({CLASS}) · {ORIGIN}→{DEST} · ~{DISTANCE} mi

{Traveler} → Credit to {PROGRAM}: {MILES} redeemable miles ({QUALIFYING} qualifying)
  Why: {one sentence reason}
Worked example (Finnair AY806, class Z, BGO→ARN, ~770 mi)

Traveler A: AA Platinum (Tier 2), Alaska Base Traveler B: Alaska Base only

✈️ Finnair AY806 (Z) · BGO→ARN · ~770 mi

Traveler A → Credit to AA AAdvantage: ~308 redeemable (770 × 40%), ~193 qualifying (770 × 25%)
  Why: Tier 2 bonus pushes AA past Alaska's 500 floor. Qualifying miles help retain status.

Traveler B → Credit to Alaska Atmos: 500 redeemable (floor), 0 qualifying
  Why: 500 mile floor beats 25% of 770 (= 193). Only program available.

Reference Workflows

"What does class X earn on airline Y?"
  1. Fetch https://www.wheretocredit.com/en/{IATA}/{CLASS}
  2. Read both redeemable and qualifying tables
  3. Note cabin type and fare types listed at the top
"Which airlines credit to program X?"
  1. Fetch https://www.wheretocredit.com/en/programs/{CODE}
  2. Lists all partner airlines with links to their booking class charts

Fare Type Mapping

Booking classes map to fare brands, but every airline names them differently. The wheretocredit page header shows which fare types apply for that airline.

Common patterns (names vary by carrier):

  • Full flex / Refundable = fully flexible, changeable, refundable
  • Standard / Classic = some flexibility, partial refund
  • Basic / Light / Saver = restricted, limited changes
  • Ultra-basic / Superlight = cheapest, most restrictions, often no checked bag

Examples: Finnair uses Superlight/Classic/Flex. SAS uses SAS Go Light/Go/Plus/Business. Norwegian uses LowFare/LowFare+/Flex. United uses Basic Economy/Economy/Economy Flex. Always check the specific airline's fare page for exact names.

The same booking class letter can map to different fare types on different airlines.

Important Notes

  • The calculator page requires JavaScript and won't work via webfetch
  • Data is maintained by Travel-Dealz.com (took over from original WTC team)
  • Some programs earn based on fare price (e.g., Finnair Plus: "6 Miles/EUR") rather than distance percentage
  • Always check the "Restriction" column for country exclusions or other limitations
  • Earning rates change. When in doubt, verify against the airline's own partner earning page

When to Use

Load this skill when:

  • Booking a flight and deciding which FF program to credit it to
  • Comparing earning rates across programs for a specific airline/class
  • Checking if a discounted fare earns qualifying miles
  • Need to know tier bonus rates for elite status holders
  • Any "where to credit" or "how many miles will I earn" question

Do not:

  • Assume the calculator works via webfetch (it needs JS)
  • Confuse redeemable miles with qualifying miles. Always specify which.
  • Forget that operating carrier matters, not ticketing carrier

© borski, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/travel-hacking-toolkit/skills/wheretocredit of borski/travel-hacking-toolkit.

Open the folder on GitHubat commit db82131

Compare with similar skills

Wheretocredit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wheretocredit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wheretocredit this skillborski/travel-hacking-toolkit688—~2.4kAutomated safety check: PassMIT
Day Booksickn33/agentic-awesome-skills47k1 repos~7kAutomated safety check: PassMIT
BookingsBuilderIO/agent-native7.1k—~345Automated safety check: PassNone
Web3 Rate Limiting Circuit Breakersickn33/agentic-awesome-skills47k1 repos~1.4kAutomated safety check: PassMIT
Earnings Revisions and GuidanceHKUDS/Vibe-Trading35k—~2.5kAutomated safety check: PassMIT
Performing API Rate Limiting Bypassmukul975/Anthropic-Cybersecurity-Skills34k—~4.4kAutomated safety check: PassApache-2.0

Similar skills

  • Day Book

    sickn33/agentic-awesome-skills

    Daily cash, bank and digital day book: opening and closing balances per book, in/out movements, debit/credit presentation and reconciliation status.

    47k GitHub starsUsed in 1 repo~7k tokens
    Business, Finance & HRAuto-check passed
  • Bookings

    BuilderIO/agent-native

    Booking lifecycle — pending, confirmed, rescheduled, cancelled — plus attendees, references, no-shows, and reminders.

    7.1k GitHub stars~345 tokensUpdated today
    Auto-check passed
  • Web3 Rate Limiting Circuit Breaker

    sickn33/agentic-awesome-skills

    On-chain and relayer rate-limiting circuit breaker register: throughput thresholds, emergency pause triggers, and multi-sig recovery.

    47k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Tracks analyst estimate revisions, earnings surprises, management guidance and post-earnings drift for US and Hong Kong stocks, and turns them into long and short signals.

    35k GitHub stars~2.5k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Performing API Rate Limiting Bypass

    mukul975/Anthropic-Cybersecurity-Skills

    Tests API rate limiting for bypass vulnerabilities using Python (requests/aiohttp) and Burp Suite Turbo Intruder to manipulate headers (e.g.

    34k GitHub stars~4.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Ib Pitch Book

    nexu-io/open-design

    OpenDesign's investor pitch book: market map, moat, unit economics, and the ask — analyst-grade and diligence-ready.

    100k GitHub stars~2k tokensUpdated today
    Business, Finance & HRAuto-check passed

More from borski/travel-hacking-toolkit

All 46 skills in this repo
  • Amex Travel

    borski/travel-hacking-toolkit

    Search Amex travel portal for cash prices, MR points pricing, IAP discounts, and FHR/THC hotel benefits via Patchright.

    688 GitHub stars~3.1k tokensUpdated 5 days ago
    Auto-check passed
  • Chase Travel

    borski/travel-hacking-toolkit

    Search Chase UR travel portal via Patchright for cash prices, points pricing, Points Boost offers, and Chase Edit hotel benefits.

    688 GitHub stars~2.8k tokensUpdated 5 days ago
    Auto-check passed
  • Deutsche Bahn

    borski/travel-hacking-toolkit

    Deutsche Bahn train schedules, journey planning, and departures across Germany and into neighboring countries (Austria, Switzerland, Netherlands, France, Belgium).

    688 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check passed
  • Sutochno

    borski/travel-hacking-toolkit

    Search Sutochno.ru (СУТОЧНО.РУ), a Russian short-term apartment-rental platform where you book directly from owners and pay in rubles (Mir card / bank transfer).

    688 GitHub stars~2.1k tokensUpdated 5 days ago
    Auto-check passed
  • Ticketsatwork

    borski/travel-hacking-toolkit

    Search TicketsAtWork (EBG corporate perks) for hotels, theme park tickets, attractions, and rental cars via Patchright.

    688 GitHub stars~4.2k tokensUpdated 5 days ago
    Auto-check passed
  • Vrbo

    borski/travel-hacking-toolkit

    Search VRBO (Vrbo / Expedia Group) vacation rentals including entire homes, condos, and cabins via Patchright browser automation.

    688 GitHub stars~1.7k tokensUpdated 5 days ago
    Auto-check passed

Questions about Wheretocredit

What does Wheretocredit do?

Mileage earning rates by airline and booking class via wheretocredit.com. Wheretocredit is an agent skill from borski/travel-hacking-toolkit.com.

When should I use Wheretocredit?

Wheretocredit fits situations like: deciding where to credit a flight; comparing earning rates.

How do I install Wheretocredit in Claude Code?

Run `npx skills add borski/travel-hacking-toolkit --skill wheretocredit -a claude-code`. Or copy the skill folder (plugins/travel-hacking-toolkit/skills/wheretocredit in borski/travel-hacking-toolkit) into .claude/skills/wheretocredit in your project. Claude Code loads it when a task matches its description.

How do I install Wheretocredit in Codex?

Run `npx skills add borski/travel-hacking-toolkit --skill wheretocredit -a codex`. Or copy the skill folder (plugins/travel-hacking-toolkit/skills/wheretocredit in borski/travel-hacking-toolkit) into .agents/skills/wheretocredit in your project. Codex loads it when a task matches its description.

Can I use Wheretocredit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borski/travel-hacking-toolkit --skill wheretocredit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wheretocredit, .gemini/skills/wheretocredit, .github/skills/wheretocredit and .opencode/skills/wheretocredit in your project.

What does Wheretocredit need to run?

SKILL.md names no scripts, command-line tools or credentials: Wheretocredit is instructions for the agent only.

Does Wheretocredit access the network?

SKILL.md names 1 domain. In commands or code: wheretocredit.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Wheretocredit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wheretocredit use?

Wheretocredit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wheretocredit use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wheretocredit?

Skills that share tags, products or a category with Wheretocredit: Day Book (sickn33/agentic-awesome-skills, 47k stars), Bookings (BuilderIO/agent-native, 7.1k stars), Web3 Rate Limiting Circuit Breaker (sickn33/agentic-awesome-skills, 47k stars) and Earnings Revisions and Guidance (HKUDS/Vibe-Trading, 35k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wheretocredit?

borski (a GitHub user) maintains it in borski/travel-hacking-toolkit, which has 688 GitHub stars. The repository holds 46 skills in this directory. The repository was last updated on October 5, 2026.

Source: borski/travel-hacking-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.