agentleFS
SteadfastAsArtSteadfastAsArt/geoscience-skills/pygmt/SKILL.md

pygmt

Skill67 starsChanged 10 months agoMITView on GitHub

Make geographic maps and process geospatial grids with PyGMT and GMT, including projection, regions, grid registration and vector/raster export. Use for GMT cartography and map-ready scientific data; check the separate GMT shared library before plotting.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not reinterpret projected metres as longitude/latitude degrees.

    line 28

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

PyGMT

Produce a map whose projection, coordinate units and data coverage are explicit. PyGMT 0.19 requires Python 3.12+ and GMT 6.5+; the Python package alone does not install the GMT shared library. Use the documented isolated conda-forge setup with Ghostscript when exporting figures. Record PyGMT and GMT versions separately.

Inputs and map design

Establish geographic versus projected coordinates, horizontal CRS, longitude convention and vertical datum. Choose region [west, east, south, north] and projection deliberately. Decide pixel versus gridline registration and verify coordinate ordering, spacing and NaN masks before gridding or image display. Do not reinterpret projected metres as longitude/latitude degrees.

Offline map with synthetic locations

This example requires output_pdf to name a new output file. It uses no remote relief or coastline dataset; the three locations are illustrative, not a survey.

# example: synthetic-map
import pygmt

figure = pygmt.Figure()
figure.basemap(region=[5, 10, 44, 48], projection="M10c",
               frame=["af", "+tSynthetic locations"])
figure.plot(x=[6, 7.5, 9], y=[45, 46, 47], style="c0.18c",
            fill="navy", pen="0.4p,black")
figure.savefig(output_pdf)

For actual gridded data, inspect spacing/registration before grdimage; choose interpolation and color limits appropriate to units and scientific comparison. Remote datasets such as Earth relief require documented resolution, cache, license and download size. A cropped map does not prove the source data only cover that region.

Validate and deliver

Reopen the exported file, check bounds, labels, orientation, missing-data areas and color scale. Compare control-point coordinates with the input, and sample known grid nodes through GMT when grid operations are involved. Provide the source data references, script, CRS/projection and export settings with the map.

See installation, tutorials and GMT grid conventions.

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.