By dekart-xyz
Write geospatial SQL queries against BigQuery, Snowflake, Wherobots, and Postgres with automatic cost estimation, mandatory dry-run validation, and interactive map rendering of results via Dekart.
Claude, Codex, and GitHub Copilot skill for data scientists and analysts working with geospatial data on PostGIS, BigQuery, Snowflake, and Wherobots.
Note: No SaaS account needed. Works 100% locally or self-hosted.

4x improvement on geospatial tasks with map in the loop.

With Python (interactive mode):
pip install geosql && geosql
Install directly into a supported agent:
geosql install claude
geosql install codex
geosql install copilot
Or in Claude Code:
/plugin marketplace add dekart-xyz/geosql
/plugin install geosql
After geosql install copilot, use GeoSQL from VS Code Copilot or Copilot CLI with prompts such as:
/geosql Show EV charger density along major roads and render a map
GeoSQL optionally uses Dekart: an open-source Kepler.gl backend with connectors for PostGIS, BigQuery, and Snowflake. You can run Dekart locally with one docker command, self-host it on your own infrastructure, or use Dekart Cloud.
Run Dekart locally (skip this step to use Dekart Cloud):
docker run -p 8080:8080 dekartxyz/dekart
Install the Dekart CLI:
pip install dekart && dekart init
Follow CLI and dekart prompts to connect your PostGIS, BigQuery, Snowflake or Wherobots database.
Real estate analysis:
/geosql Show buildings with low school accessibility in Ottawa, render as a map
Site selection:
/geosql Find the top 10 locations for Sporting Goods Store in Seattle based on POI co-location and distance to the nearest competitor. Create a map.
EV charging infrastructure:
/geosql create map EV charger density along major Romanian roads, highlighting how many charging stations are within 5 km of each motorway, trunk, or primary road segment.
GeoSQL runs an agent loop with a map in it.
ST_INTERSECTS, ST_DISTANCE, H3, bbox overlap for partition pruning, and so on).The skill uses your local CLI authentication (bq, snow, dekart), so warehouse credentials never go to the agent.
GeoSQL ships with a reproducible eval suite under evals/. Each case asserts specific behaviors (cost guardrails, validation steps, correct result), not just "did the agent answer."
Current results on the included suite:
| Case | Assertions | Pass rate |
|---|---|---|
london-boroughs | 4 | 100% |
berlin-create-map | 3 | 100% |
paris-boundaries | 1 | 100% |
| Total | 8 | 100% |
Average: 3,085 tokens per turn, 72 s duration per turn.
The 4x improvement chart above compares the same task set with and without the map-in-loop step. Without maps, the agent's text-only validation misses geometry-class errors (mistaking a neighborhood polygon for a metro-area perimeter, double-counting overlapping features, picking the wrong join key on coordinate-reference systems). Adding the rendered map as a tool call lets the agent see those mistakes and self-correct.
Run the suite yourself:
python evals/run.py
See evals/RUNBOOK.md for setup and how to add new cases. PRs with new evals welcome.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub dekart-xyz/geosql --plugin geosqlConnect, query, and generate data insights for BigQuery datasets and data.
Comprehensive BigQuery skill suite: query optimization, SQL generation, schema design, cost optimization, and feature guidance.
DuckDB-powered skills for Claude Code: read any data file, attach and query DuckDB databases, search DuckDB/DuckLake docs, search past session logs, and install/update DuckDB extensions.
Semantic SQL compiler — compile .view.yml schema definitions into dialect-specific SQL. Unix-philosophy CLI designed as a tool-use interface for LLMs.
Connect and interact with Spanner data using natural language.
Data analysis expert for SQL queries, BigQuery operations, and data insights. Use proactively for data analysis tasks and queries.