Builds routing and origin-destination analysis workflows in CARTO, including route calculation, travel time/distance matrices, and isoline catchment areas for driving, walking, and other modes.
Ships in carto-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Computes routes, travel time/distance matrices, and isoline catchment areas (driving, walking and other modes), plus OD flow pattern analysis via spatial indexing. Two access paths, by scale:
route, calculate_isolines, and calculate_od_matrix answer directly (each also has a capabilities operation to list supported modes/range types). No workflow needed. These run on any MCP host, including sandboxed chat hosts where the CLI can't. Prefer them for interactive requests.carto-create-workflow for the development process, JSON structure, and validation — it covers both paths (MCP create_workflow / validate_workflow / run_workflow when attached; the carto workflows CLI otherwise; routing signals in carto-basics/references/access-paths.md).Over an API-token MCP session the ad-hoc/authoring tools are hidden (read/discovery only) — fall back to the CLI or reconnect over OAuth.
Three main workflow patterns exist. Choose based on the use case:
| Pattern | Component | Use when |
|---|---|---|
| Isoline/Isochrone | native.isolines | You need catchment polygons around locations (e.g. "everywhere reachable within 10 min") |
| OD Matrix | native.createroutingmatrix | You need travel time/distance between every origin-destination pair (analytics, no geometry) |
| Route Creation | native.createroutes | You need actual route line geometries between OD pairs (visualization, detailed path) |
None of these exist on PostgreSQL connections: there, use the ad-hoc MCP tools above for small requests, or offer native.buffer catchments or Pattern D. Create Routing Matrix is also missing on Databricks SQL warehouse connections. Modes and extra options depend on the org's LDS provider: read them with carto workflows components get <name> --connection <conn> --json (MCP: read_workflow_components method=get) before filling the node, and use the mode values exactly as listed.
Pipeline:
Source Points -> (Filter) -> Isolines -> (Polyfill / Enrich) -> Save
Use native.gettablebyname to load locations (stores, stations, facilities).
Success: Table with a geometry column and a unique location identifier.
Use native.isolines with:
| Input | Description | Example |
|---|---|---|
mode | Travel mode, lowercase. Allowed values depend on the org's isolines provider (TomTom has no walk); read them with components get | car or walk |
type | What the range measures | time or distance |
range | Threshold value | Seconds for time (e.g. 600 = 10 min), meters for distance (e.g. 5000 = 5 km) |
Success: Each input row gets its reachable-area polygon in geom. The input geometry column is dropped (kept as orig_geom on recent Analytics Toolbox versions) and carto_isoline_metadata holds per-row provider errors.
Common follow-ups after isoline generation:
native.h3polyfill, then enrich with demographics or POI data (see trade-area-analysis skill).native.spatialjoin to find which isolines overlap, identifying areas served by multiple locations.native.summarize with geom,combine (output geom_union) to merge all isolines into one footprint, or native.groupby with geom,combine to merge per group. On Snowflake and Redshift combine collects the polygons rather than dissolving them. native.summarize is not available on Oracle.Use native.saveastable to persist isoline polygons or enriched results, then validate and upload the workflow (MCP create_workflow / validate_workflow, or carto workflows create).
Pipeline:
Origins Table -> ┐
├-> OD Matrix -> (Filter/Aggregate) -> Save
Destinations Table -> ┘
Use two native.gettablebyname nodes -- one for origins, one for destinations. Both need geometry columns.
Success: Two tables, each with point geometries and unique identifiers.
Use native.createroutingmatrix with:
| Input | Description |
|---|---|
originstable / destinationstable | Table inputs; the edges' target handles use these names |
originsgeomcolumn / destinationsgeomcolumn | Point geometry column in each table (required) |
mode | An option components get lists for this org; it varies by routing provider (e.g. Car, Pedestrian, Driving, Walking) |
Output columns: every origin column prefixed origin_ (e.g. origin_store_id, origin_geom), every destination column prefixed destination_, plus route_duration (seconds), route_distance (meters) and carto_routing_matrix_metadata (per-pair provider errors).
Success: One row per origin-destination pair with travel time and distance.
Common post-processing:
native.groupby grouped by the origin id (origin_<id>) with route_duration,min (output route_duration_min), then join back on origin id and duration to get the nearest destination.native.where to keep only pairs within a limit (e.g. route_duration < 1800 for 30 minutes, or route_distance < 5000 for 5 km).native.groupby.Use native.saveastable, then validate and upload (MCP create_workflow or carto workflows create).
Pipeline:
Origins + Destinations -> Cross Join (or Join on a pairing key) -> Create Routes -> Save
Load both tables with native.gettablebyname. Create Routes reads one table where each row holds an origin and a destination point, so pair them with native.crossjoin (every pair) or native.joinv2 on a pairing key. After a cross join the destination geometry is <col>_joined, or r_<col> on Databricks cluster connections, where native.crossjoin prefixes columns with l_ / r_.
Use native.createroutes with:
| Input | Description |
|---|---|
source | Table with one origin-destination pair per row (target handle source) |
origin / destination | The two point geometry columns of that table (must differ) |
newcol | Name of the route column (default geom) |
mode | An option components get lists for this org; it varies by routing provider (e.g. Car, Pedestrian, Driving, Walking) |
Output: One route line per row in newcol (default geom) plus carto_routing_metadata, the provider's response as a JSON string. There are no duration or distance columns; use Create Routing Matrix when you need them.
Use native.saveastable, then validate and upload (MCP create_workflow or carto workflows create).
For analyzing trip/movement patterns at scale (e.g. taxi trips, bike rides, commute flows) without calling routing APIs.
Pipeline:
Trip Data -> H3 (origin) + H3 (destination) -> Group By (origin_h3, dest_h3) -> Save
Use native.gettablebyname. The table should have both origin and destination coordinates (e.g. pickup_lon/lat, dropoff_lon/lat).
If the table has coordinates, build each point with native.geogpoint (lat, lon; output column geom), renaming geom with native.renamecolumn before building the second one.
Run native.h3frompoint on the origin geometry and rename h3 to origin_h3 with native.renamecolumn, then run it on the destination geometry and rename h3 to destination_h3. Each call writes a column named h3, so skipping the rename fails on a duplicate column. native.h3frompoint is not available on Redshift; use native.quadbinfrompoint there (it writes quadbin, same renaming).
Use native.groupby to count trips per (origin_h3, destination_h3) pair:
origin_h3, destination_h3origin_h3,count (trip count per OD pair)Success: One row per unique OD cell pair with trip count -- ready for flow visualization.
Use native.saveastable.
route_duration, route_distance, origin_<col>, destination_<col>, origin_h3, etc.) — BigQuery / Databricks / Postgres / Redshift convention. On Snowflake, reference these UPPERCASE (ROUTE_DURATION, ORIGIN_H3, ...). See carto-create-workflow/references/providers/<provider>.md for casing rules and SQL dialect equivalents.LDS_QUOTA_INFO before bulk operations. Buffers (native.buffer) do not consume LDS quota and are a free alternative for simple circular catchments.here_departure_time, tomtom_departure_time, traveltime_departure_time, format YYYY-MM-DDThh:mm:ss) and only exists on Isolines and Create Routing Matrix; read the exact name with components get. Otherwise results reflect typical conditions.| Resource | Description |
|---|---|
| Scalable Routing Tutorial | Step-by-step scalable routing in Workflows |
| OD Patterns Tutorial | Analyzing origin-destination patterns (NYC taxi example) |
| Routing Module (BQ) | Using the routing module with Analytics Toolbox for BigQuery |
| Isoline Generation Template | Generating isochrones via Workflow templates |
| Trade Area Isolines (BQ) | Drive/walk-time isoline trade areas for BigQuery |
| Trade Area Isolines (SF) | Drive/walk-time isoline trade areas for Snowflake |
| Variant | How |
|---|---|
| Service area coverage | One Isolines node per range (range takes one value, e.g. 300, 600, 900 seconds) -> merge each with native.summarize geom,combine -> measure population covered |
| Nearest facility | OD matrix -> group by origin id -> route_duration,min -> join back to get the nearest destination id |
| Accessibility scoring | OD matrix -> filter by threshold -> count destinations per origin -> score by reachable count |
| Fleet route planning | Create Routing Matrix between depot and delivery points for route_duration / route_distance; Create Routes only for the line geometries (one route per row, it does not order stops) |
| Commute flow analysis | Trip data -> H3 origin + H3 destination -> group by OD pair -> count -> visualize top flows |
| Multi-modal comparison | Run isolines twice (car + walk) -> compare coverage polygons -> identify transit-dependent areas |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
carto, routing, origin-destination, isochrone, spatial-analysis
24 skills in this plugin
/carto-arcgis-migrationEnd-to-end ArcGIS Portal / AGOL → CARTO migration. Triggers when the user wants to migrate ArcGIS content to CARTO, plan a migration, asks "what's in my Portal", names a Portal/AGOL URL, or asks to migrate the datasets / web maps / simple apps. Runs three phases — discover (enumerate items + write MIGRATION_MANIFEST.md), migrate-data (Hosted Feature Layers / Tables → CARTO tables), migrate-maps (Web Maps + simple Dashboards / Web Experiences / Web Mapping Apps → CARTO Builder maps). Default mode is batch; migrated maps are always tagged `From ArcGIS` and created as private./carto-basicsStart here for first-time CARTO use. Orients on the two parallel access paths into the CARTO platform — the MCP server (the primary path for inline, in-conversation work in chat hosts, including creating and editing maps and Workflows) and the CLI (for scripting, CI/CD, headless and bulk/cross-org work, and deeper administration and auditing such as usage-log queries) — and which skills cover each. Also covers CLI install, authentication, profiles, JSON output, and async job patterns./carto-composite-scoringGuides the user through building composite score workflows when they ask about composite scores, indexes, multi-variable scores, ranking areas, site scoring, market potential, resilience indexes, risk indexes, weighted scores, PCA, or supervised/unsupervised scoring./carto-skills:carto-routing-od-analysisfrom carto-skills
npx claudepluginhub cartodb/agent-skills --plugin carto-skillsOther plugins' skills for the same job