agentleFS
ChrisGVEChrisGVE/localdata-mcp/skills/modeling/geospatial/SKILL.md

geospatial

Skill4 starsChanged 15 months agoApache-2.0View on GitHub

Analyze spatial patterns, compute distances, detect geographic clusters, and assess accessibility. Use when data has coordinates or geographic dimensions.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Identify spatial columns: Call describe_database with the database name from $ARGUMENTS.

    line 14
  2. Very specific:

    Validate coordinates: Call execute_query to check coordinate ranges: latitude should be -90 to 90, longitude -180 to 180.

    line 16
  3. Very specific:

    Assess spatial distribution: Call execute_query to compute basic spatial statistics: centroid (mean lat/lon), spread (standard deviation of …

    line 18
  4. Very specific:

    Detect spatial clusters: Use analyze_clusters with DBSCAN and geographic distance to identify spatial hotspots.

    line 22
  5. Very specific:

    Cross-reference with attributes: Call execute_query to analyze how non-spatial attributes vary across geographic clusters or regions.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Geospatial Analysis

Analyze spatial patterns, distances, and geographic relationships in location-based data.

Steps

  1. Identify spatial columns. Call describe_database with the database name from $ARGUMENTS. Look for columns containing coordinates (latitude/longitude, x/y), addresses, ZIP codes, or geometry fields. Call describe_table for detailed column inspection.
  2. Validate coordinates. Call execute_query to check coordinate ranges: latitude should be -90 to 90, longitude -180 to 180. Flag nulls, zeros (often default values, not actual locations), and points in unexpected regions. Report the geographic extent of the data.
  3. Assess spatial distribution. Call execute_query to compute basic spatial statistics: centroid (mean lat/lon), spread (standard deviation of coordinates), and bounding box. Determine whether points are concentrated in a small area or spread across a wide region.
  4. Compute distances. Calculate distances between points of interest using the haversine formula (suitable for lat/lon data). Call execute_query with distance computations to find nearest neighbors, average spacing, and distance distributions.
  5. Detect spatial clusters. Use analyze_clusters with DBSCAN and geographic distance to identify spatial hotspots. Alternatively, compute density by gridding the area and counting points per cell. Report cluster locations, sizes, and any relationship to attributes.
  6. Cross-reference with attributes. Call execute_query to analyze how non-spatial attributes vary across geographic clusters or regions. Spatial patterns are most valuable when they correlate with other variables.
  7. Present results. Provide:
    • Spatial data summary: coordinate system, extent, point count, coverage
    • Distribution pattern: clustered, dispersed, or random
    • Key spatial clusters with locations and characterization
    • Distance statistics relevant to the analysis question
    • Geographic insights tied to the domain context
  8. Recommend next steps. Suggest:
    • /localdata-mcp:find-reference-data to add geographic context (boundaries, demographics)
    • /localdata-mcp:analyze-correlations for spatial vs. attribute relationships
    • /localdata-mcp:forecast for spatiotemporal patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.