Builds trade area and catchment analysis workflows in CARTO. Generates isochrones or buffers around candidate locations, enriches them with data, and scores/ranks sites for retail, advertising, or service placement.
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.
Read when SKILL.md points to them.
Builds CARTO Workflows that define catchment areas around candidate locations, enrich them with data, and score/rank locations for site selection, billboard placement, or coverage analysis.
Prerequisites: Load carto-create-workflow for the development process, JSON structure, and validation. It covers both access paths — the MCP server's workflow tools (create_workflow, validate_workflow, run_workflow) when attached, the carto workflows CLI otherwise. Routing signals: carto-basics/references/access-paths.md.
Ad-hoc catchments: for a one-off isochrone around a handful of points, use the calculate_isolines MCP tool (available over OAuth, or on a token session whose Allowed APIs include LDS) — the workflow patterns below are for table-scale, repeatable analysis.
A trade area workflow always follows this pipeline:
Candidate Locations → (Filter) → Catchment Areas → Spatial Index → Enrich → Aggregate → Score/Rank → Save
Load stores, billboards, POIs, or any point dataset representing candidate locations as a ReadTable source node (see carto-create-workflow). Source nodes and native.gettablebyname both emit on handle out, not result.
Success: Node outputs a table with a geometry column (e.g. geom) and a unique location identifier.
Use native.wheresimplified to narrow candidates (e.g. specific city, category). Use native.orderby with desc: true (the default is ascending) + native.limit for top-N by a metric (e.g. top 50 by revenue).
Success: Output contains only the candidate subset relevant to the analysis. Reducing candidates early prevents combinatorial explosion downstream.
Choose the catchment method based on the use case:
| Method | Component | When to use | Key params |
|---|---|---|---|
| Isochrones | native.isolines | Site selection, retail — realistic road-network areas | mode: options follow the account's LDS provider (TomTom has no walk); read them from read_workflow_components or carto workflows components get native.isolines; type: time or distance; range: one value per node, seconds for time (10 min = 600), meters for distance. The polygon replaces the point column, as geom |
| Buffers | native.buffer | Billboard coverage, proximity — simple geometric circles | distance + units (Meters default, or Miles). Adds the circle as <geo>_buffer (e.g. geom_buffer) and keeps the point column |
Isochrones vs Buffers: Isochrones follow the road network and produce realistic catchment shapes but require a CARTO LDS API call. Buffers are purely geometric circles — simpler and faster, suitable for proximity analysis or billboard coverage.
Success: Each candidate location has an associated polygon representing its catchment area.
Use native.h3polyfill or native.quadbinpolyfill to tessellate catchment polygons into grid cells. Set geo to the catchment polygon: geom after native.isolines, <geo>_buffer after native.buffer; polyfilling the point column gives one cell per location. Leave aggregate false (default) so the location id is kept. The cell column is h3 or quadbin; geometry columns are dropped.
Size cells so each catchment holds many of them: walk catchments (5-15 min, ~0.5-5 km²) at H3 9 (≈ 0.11 km²) or 10 (≈ 0.015 km²); 10-30 min drives at H3 8 (≈ 0.74 km²) or 7 (≈ 5.2 km²). Quadbin cells are ≈ 40075/2^z km wide at the equator: z16-17 for walk, z14-15 for drive. Never leave native.quadbinpolyfill at its default 12 (≈ 10 km cells). Match the enrichment table's resolution only when you join on the cell column (Step 5).
Success: Output contains one row per grid cell per location, with both the spatial index column and the location identifier preserved.
Join grid cells with a spatial features dataset or use an enrich component:
native.joinv2 on the cell column (h3 = h3) against an enrichment table indexed at the same resolution. Not native.spatialjoin: it joins geometry columns only, and polyfilled cells carry no geometry.native.h3enrich (H3) or native.quadbinenrich (Quadbin), with any table that has a geometry column or a Data Observatory subscription as source, at any grid resolution. variables = col,method pairs; output columns are <col>_<method> (e.g. population_sum).Success: Each grid cell row has enrichment variables (e.g. population, income, foot traffic) attached.
Use native.groupby to collapse grid-cell rows back to one row per location:
<col>,<method> pairs using the names the previous node produced, e.g. population_sum,sum,income_avg,avg after h3enrich. Outputs get the method as a suffix (population_sum_sum, income_avg_avg).The output has no geometry: native.joinv2 it back to the candidate table on the location id before scoring or saving, so the result can be mapped.
Success: Output has one row per candidate location with aggregated enrichment metrics and its geometry.
Three-part pattern (see carto-composite-scoring for the full method): normalize each variable with its own native.normalize node (one column per node; it adds <column>_norm); composite score via native.selectexpression (column = score, expression e.g. population_sum_sum_norm * 0.4 + income_avg_avg_norm * 0.3 + traffic_sum_sum_norm * 0.3); rank with native.orderby (desc: true) + native.limit (top N).
Success: A ranked list of candidate locations with a composite score and the contributing normalized variables.
Use native.saveastable to persist the ranked results.
Success: Validated workflow that can be uploaded via create_workflow (MCP) or carto workflows create (CLI).
geom, h3, population_sum, score, etc.) — BigQuery / Databricks / Postgres / Redshift convention. On Snowflake, unquoted identifiers surface UPPERCASE — reference them as GEOM, H3, POPULATION_SUM, SCORE. See carto-create-workflow/references/providers/<provider>.md for casing rules and SQL dialect equivalents.native.isolines, native.h3enrich or native.quadbinenrich: use native.buffer and the JOIN approach. Redshift has no H3 polyfill: use native.quadbinpolyfill.distance is in units (Meters by default). Isoline range is in seconds (for type=time) or meters (for type=distance).native.commercialhotspots (BigQuery, Snowflake, Databricks only) has no variablecolumns input: weights carries the variables, as a JSON-encoded string of [column, weight, reverse] triples, e.g. [["population_sum", 0.7, false], ["h3_distance_min", 0.3, false]]. indexcol must be named h3, quadbin, index or geoid. On Databricks cluster connections also set kernel and clustertype (hotspots, coldspots or all): that path has no defaults and the run fails without them.native.h3distance compares two H3 columns of the same row. For each cell's distance to its nearest competitor: native.h3frompoint on competitors, native.crossjoin with the grid (competitor cell becomes h3_joined; on Databricks cluster connections native.crossjoin prefixes columns with l_ / r_ instead, e.g. r_h3), native.h3distance (h3, h3_joined), then native.groupby h3_distance,min by h3. Join that back to the grid or the locations.These files are working examples in this skill directory:
| File | Description |
|---|---|
isochrones_from_points.json | Retail stores in Boston — 5-min walk-time isochrones via LDS API. native.isolines is on v2 (lowercase wire-value mode list, customoptions / traveltime_* inputs). |
identify_best_billboards.json | Billboard site scoring — buffer, enrich, normalize, weighted composite score, top-N |
commercial_hotspots.json | Commercial hotspot detection — H3 distance to competitors, weighted hotspot analysis |
Refreshing component versions. Templates pin each node's data.version to what was current when harvested. When a native component bumps versions (e.g. native.isolines v1 → v2 added transport modes plus customoptions and traveltime_* inputs), the older template still parses but flags verify-remote warnings and misses new inputs. To refresh, read the live schema — read_workflow_components (MCP) or carto workflows components get <component> --connection <conn> --json (CLI) — then update the node's data.version and inputs in lockstep. Cross-reference Selection values against carto-create-workflow/SKILL.md: options may show display labels, but wire values are the lowercase / snake_case forms.
| Variant | How |
|---|---|
| Retail site selection | Isochrones (walk/drive) -> H3 polyfill -> enrich with demographics -> score by population + income |
| Billboard/OOH placement | Buffers -> H3 polyfill -> enrich with audience/traffic -> normalize + weighted score -> top-N |
| Commercial hotspot detection | H3 grid -> enrich demand -> min hop distance to competitors (h3frompoint -> crossjoin -> h3distance -> groupby min) -> native.commercialhotspots (weights JSON triples, kring, pvaluethresh); BigQuery, Snowflake, Databricks only |
| Drive-time coverage analysis | One native.isolines node per range (car) -> native.selectexpression adds a band column to each -> native.unionall -> native.groupby geom,combine by band (output geom_union; dissolves on BigQuery, Databricks and Oracle, only collects on Snowflake and Redshift) |
| Walk-time catchment comparison | One native.isolines node per band (walk, type time, range 300 / 600 / 900) -> enrich each band -> compare population captured per band |
| Franchise territory planning | Isochrones per candidate -> check overlap -> filter non-overlapping set -> score remaining |
What SKILL.md sets; muted values are Claude Code's defaults
/carto-skills:carto-trade-area-analysisfrom carto-skills
npx claudepluginhub cartodb/agent-skills --plugin carto-skills24 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-connect-datawarehouseChoose and configure the data warehouse engine connection for CARTO (BigQuery, Snowflake, Redshift, Postgres, Databricks, Oracle)./carto-create-builder-mapsAuthor, edit, publish, and validate CARTO Builder maps. Use when the user wants to create a map from a natural-language request, edit an existing map (datasets, layers, styling, privacy, popups, widgets, SQL parameters), duplicate one, upload custom marker icons, or wire up an AI agent on a map. Routes to the CARTO MCP server's map tools (`create_map`, `update_map`, `validate_map`, `read_maps`, `view_map`) when attached, and to the `carto maps` CLI — `create`, `update`, `delete`, `publish`, `validate`, `schema`, `agents`, `screenshot`, `copy`, `datasets update` — for scripted/bulk authoring, cross-org copy, screenshots, or when the server isn't attached./carto-create-workflowBuilds, schedules, and operates analytics DAGs in CARTO Workflows — the no-code/low-code orchestration layer over the data warehouse. Triggers when the user wants to author a workflow, run/edit one, schedule a DAG, or copy a workflow across profiles or orgs.Other plugins' skills for the same job