agentleFS
MEKXHMEKXH/golem/skills/spatial-analysis/SKILL.md

spatial-analysis

Skill203 starsChanged 8 months agoMITView on GitHub

Guide agent through geospatial data analysis tasks using built-in, learned, and fabricated geo tools

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. cafferychen777/ChatSpatial★ 45same name
    2. TerraLabAI/geoai-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user requests geospatial data analysis, follow this structured approach:

    line 8
  2. Distinctive:

    If the required data is not already present, locate candidate datasets first:

    line 11
  3. Very specific:

    Use geo_info to understand the data before doing anything:

    line 19
  4. Very specific:

    Use geo_crs_detect to verify the coordinate reference system:

    line 26
  5. Very specific:

    Before inventing a new multi-step flow, check whether the workspace already contains a similar learned geo pipeline in pipelines/geo/.

    line 32
  6. Distinctive:

    When the task maps to a common PostGIS pattern, inspect the codebook first:

    line 36
  7. Distinctive:

    When analysis involves a PostGIS database, inspect the available schema before composing SQL:

    line 43
  8. Very specific:

    Use geo_process for GDAL/OGR operations and geo_format_convert for direct format changes.

    line 50
  9. Distinctive:

    If the task is recurrent and no learned pipeline, built-in tool, or verified codebook pattern fits, fabricate a workspace geo tool:

    line 53
  10. Very specific:

    Create the script under tools/geo/scripts/.

    line 54
  11. Very specific:

    Create the manifest under tools/geo/<tool_name>.yaml.

    line 55
  12. Very specific:

    Use a geo_ tool name.

    line 56
  13. Distinctive:

    Prefer reusing learned pipelines before fabricating a new tool.

    line 62
  14. Distinctive:

    Prefer built-in tools and verified SQL patterns before creating a persistent tool.

    line 63
  15. Distinctive:

    Keep generated outputs inside the workspace.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Spatial Analysis Workflow

When the user requests geospatial data analysis, follow this structured approach:

Step 1: Discover Candidate Data

If the required data is not already present, locate candidate datasets first:

geo_data_catalog(action="local_scan", path="<workspace path>")
geo_data_catalog(action="overpass_search", bbox=[minLon,minLat,maxLon,maxLat], tags={"amenity":"school"}, limit=10)
geo_data_catalog(action="stac_search", collections=["sentinel-2-l2a"], bbox=[minLon,minLat,maxLon,maxLat], limit=5)

Step 2: Inspect the Data

Use geo_info to understand the data before doing anything:

geo_info(path="<file_path>")

This tells you the format, CRS, extent, and size.

Step 3: Check the CRS

Use geo_crs_detect to verify the coordinate reference system:

geo_crs_detect(path="<file_path>")

Step 4: Reuse Learned Pipelines First

Before inventing a new multi-step flow, check whether the workspace already contains a similar learned geo pipeline in pipelines/geo/. Reuse the same tool sequence when the goal is materially similar.

Step 5: Check the Spatial SQL Codebook

When the task maps to a common PostGIS pattern, inspect the codebook first:

geo_sql_codebook(action="list", intent="<analysis goal>")
geo_sql_codebook(action="render", pattern="<pattern_name>", values={...})

Step 6: Inspect PostGIS Before Querying

When analysis involves a PostGIS database, inspect the available schema before composing SQL:

geo_spatial_query(action="schema")
geo_spatial_query(action="query", sql="SELECT ...")

Step 7: Process and Convert Data

Use geo_process for GDAL/OGR operations and geo_format_convert for direct format changes.

Step 8: Fabricate a Missing Persistent Tool

If the task is recurrent and no learned pipeline, built-in tool, or verified codebook pattern fits, fabricate a workspace geo tool:

  • Create the script under tools/geo/scripts/.
  • Create the manifest under tools/geo/<tool_name>.yaml.
  • Use a geo_ tool name.
  • The script will receive tool arguments as JSON on stdin.
  • The fabricated tool will auto-register on the next agent startup.

Key Conventions

  • Prefer reusing learned pipelines before fabricating a new tool.
  • Prefer built-in tools and verified SQL patterns before creating a persistent tool.
  • Keep generated outputs inside the workspace.

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.

Reviews can't be read right now.

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.