agentsclimarketplace

Travel data query

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-claude-sonnet-4-6/travel-planning/travel-data-query

Query and filter travel CSV datasets (restaurants, accommodations, attractions, distances) using Python. Use this skill whenever you need to extract specific records from the travel database files, check pet policies, filter by cuisine, look up driving times, or validate that a city exists in the dataset.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill travel-data-query

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

3.3 KB, 817 tokens by cl100k_base, as published. Nobody here has run it

Travel Data Query

Dataset Schema

data/restaurants/clean_restaurant_2022.csv

ColumnTypeNotes
(index)intRow number
NamestrRestaurant name
CitystrCity name
CuisinesstrComma-separated list
Average CostintCost per meal (USD)
Aggregate Ratingfloat0.0–5.0

data/accommodations/clean_accommodations_2022.csv

ColumnTypeNotes
(index)intRow number
NAMEstrProperty name
room typestrPrivate room / Entire home/apt / Shared room
pricefloatPer night (USD)
minimum nightsfloatMin booking nights
review rate numberfloat1–5
house_rulesstrRestrictions (e.g. "No pets & No smoking")
maximum occupancyintMax guests
citystrCity name (lowercase key)

data/attractions/attractions.csv

ColumnTypeNotes
NamestrAttraction name
Latitudefloat
Longitudefloat
Addressstr
Phonestr
Websitestr
CitystrCity name

data/googleDistanceMatrix/distance.csv

ColumnTypeNotes
originstrDeparture city
destinationstrArrival city
coststrUsually empty
durationstre.g. "2 hours 8 mins"
distancestre.g. "228 km"

data/background/citySet_with_states.txt

Tab-separated: CityName\tStateName

Common Query Patterns

Find pet-friendly accommodations

import csv
with open('data/accommodations/clean_accommodations_2022.csv') as f:
    reader = csv.DictReader(f)
    results = [r for r in reader
               if r['city'] == 'Cleveland'
               and 'No pets' not in r['house_rules']
               and float(r['minimum nights']) <= 2]

Find restaurants by cuisine

import csv
with open('data/restaurants/clean_restaurant_2022.csv') as f:
    reader = csv.DictReader(f)
    results = [r for r in reader
               if r['City'] == 'Columbus'
               and any(c in r['Cuisines'] for c in ['American', 'Italian'])]

Look up driving distance

import csv
with open('data/googleDistanceMatrix/distance.csv') as f:
    reader = csv.DictReader(f)
    for row in reader:
        if row['origin'] == 'Minneapolis' and row['destination'] == 'Cleveland':
            print(row['duration'], row['distance'])

Verify city exists

with open('data/background/citySet_with_states.txt') as f:
    cities = [line.strip().split('\t') for line in f]
    ohio_cities = [c[0] for c in cities if len(c) > 1 and c[1] == 'Ohio']

Tips

  • house_rules uses " & " as separator; check with 'No pets' not in row['house_rules']
  • Cuisines is comma+space separated; simple substring search works
  • Distance matrix is not symmetric — always check both directions if needed
  • Some accommodations have minimum nights > 7; always filter for the planned stay length

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.