Agent skill

city-distance

Calculate line-of-sight and road distances between two cities using free OpenStreetMap services.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill city-distance --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/analysis/city-distance/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

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

From the SKILL.md

# City Distance Skill Purpose: Calculate line-of-sight and road distances between two cities using free, API-keyless public services and local haversine calculations. What it does: - Computes line-of-sight distance using the Haversine formula. - Uses OpenStreetMap routing endpoint (routing.openstreetmap.de) to compute road distance without an API key. - Optionally lists intermediate cities by sampling points along the route and reverse-geocoding with Nominatim (free) to find nearby settlements. Files: - city_distance_calculator.js — example Node.js script demonstrating the calculations. - examples: EXAMPLES.md with worked examples (Paris–Berlin, Paris–Dubai) When to use: - Quickly get straight-line and driving distances between two cities without paying for an API. - Generate a rough list of settlements along a driving route for planning or visualization. Prerequisites: - Node.js 18+ for the Node.js examples (native fetch available) - curl and jq for Bash examples Agent prompt: > Calculate both the straight-line (Haversine) distance and the driving distance between {cityA} and {cityB} using free OpenStreetMap services. Return distances in km and optionally list major towns along th

What's inside
Ships with 1 file
  • metadata.json
Commands it runs
set -euo pipefail
curl -fsS --max-time 10 "$URL" | jq -r '.routes[0].distance / 1000'
More from claude-skill-registry
All skills →
About this skill
What does the city-distance skill do?

Calculate line-of-sight and road distances between two cities using free OpenStreetMap services.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill city-distance --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 majiayu000/claude-skill-registry, a repository with 534 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