Agent skill

Geopandas

by aipoch in aipoch/medical-research-skills

A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like…

MITAuto-check passedData & Analytics

Install Geopandas

skills CLI
$ npx skills add aipoch/medical-research-skills --skill geopandas -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills geopandas --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Data Analysis/geopandas' .claude/skills/geopandas && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
geopandas
GitHub stars
1.9k
Token cost
~2k tokens
SKILL.md length
789 words
Files
8 (incl. references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like…

  • Works in 4 steps: Validate the request against the skill… → Select the documented execution path and… → Produce the expected output using the… → …
  • You need spatial operations (buffer/overlay/join)
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 11 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Geopandas is an agent skill from aipoch/medical-research-skills. A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like Shapefile/GeoJSON/GeoPackage or PostGIS.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `geopandas_audit_result_v2.json`, `references/crs-management.md` and `references/data-io.md`).

It sits in Data & Analytics, covering Geospatial analysis. It works with Python and pandas. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • You need spatial operations (buffer/overlay/join)
  • CRS reprojection
  • Map visualization on formats like Shapefile/GeoJSON/GeoPackage

Example prompts

  • “/geopandas”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Geopandas loads about 2k tokens when it runs, and up to ~8.6k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 789 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 789 words, ~2,031 tokens.

Download SKILL.mdSave it as .claude/skills/geopandas/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
geopandas
description
A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like Shapefile/GeoJSON/GeoPackage or PostGIS.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

When to Use

  • You need to load and export vector geospatial data (Shapefile, GeoJSON, GeoPackage, Parquet) and keep attributes + geometry together.
  • You want to run geometric operations such as buffer, simplify, centroid, convex hull, or distance/area calculations.
  • You need spatial analysis like spatial joins (intersects/within/nearest), overlay (intersection/union/difference), dissolve, or clipping.
  • You must manage coordinate reference systems (CRS): inspect CRS, set missing CRS metadata, or reproject between EPSG codes.
  • You want to visualize geospatial data as static plots (matplotlib) or interactive maps (folium-backed explore()).

Key Features

  • GeoDataFrame / GeoSeries: pandas-like tabular structures with a geometry column and vectorized spatial methods.
  • Multi-format I/O: read/write common GIS formats and integrate with PostGIS.
  • CRS-aware transformations: set_crs() for metadata, to_crs() for coordinate transformation.
  • Spatial operations: buffer/simplify/centroid and higher-level analysis (sjoin, overlay, dissolve).
  • Mapping: quick plotting and choropleths; optional interactive exploration.

(Additional conceptual references: references/data-structures.md, references/data-io.md, references/crs-management.md, references/geometric-operations.md, references/spatial-analysis.md, references/visualization.md.)

Dependencies

Core:

  • geopandas (latest)
  • pandas (transitive)
  • shapely (transitive)

Optional (install as needed):

  • folium (interactive maps via GeoDataFrame.explore())
  • mapclassify (classification schemes for choropleths)
  • pyarrow (faster I/O; enables use_arrow=True in some writers)
  • psycopg2 and geoalchemy2 (PostGIS connectivity)
  • contextily (basemaps)
  • cartopy (map projections / advanced cartographic plotting)

Example Usage

python
import geopandas as gpd

def main():
    # 1) Read vector data (GeoJSON/Shapefile/GeoPackage/etc.)
    gdf = gpd.read_file("data.geojson")

    # 2) Inspect CRS and geometry types
    print("CRS:", gdf.crs)
    print("Geometry types:", gdf.geometry.geom_type.unique())

    # 3) Reproject for metric calculations (area/distance)
    #    Use a projected CRS appropriate for your region; EPSG:3857 is common but not always ideal.
    gdf_m = gdf.to_crs("EPSG:3857")

    # 4) Compute area and create a buffer (units are CRS units; meters in many projected CRSs)
    gdf_m["area_m2"] = gdf_m.geometry.area
    gdf_m["geometry"] = gdf_m.geometry.buffer(100)

    # 5) Plot a quick choropleth (static)
    ax = gdf_m.plot(column="area_m2", cmap="YlOrRd", legend=True)
    ax.set_title("Buffered features colored by area (m²)")

    # 6) Write results to GeoPackage
    gdf_m.to_file("output.gpkg", layer="buffered", driver="GPKG")

if __name__ == "__main__":
    main()

Implementation Details

  • Data model

    • GeoSeries: a 1D array of geometries with vectorized spatial methods.
    • GeoDataFrame: a pandas DataFrame with a designated geometry column (commonly named geometry).
  • CRS rules

    • set_crs("EPSG:4326") sets CRS metadata without transforming coordinates (use only when CRS is missing/unknown but you are sure of it).
    • to_crs("EPSG:3857") transforms coordinates into a new CRS.
    • Area/distance should be computed in a projected CRS (units typically meters/feet). Geographic CRS (lat/lon) is not suitable for metric area/distance.
  • Spatial joins

    • gpd.sjoin(left, right, predicate="intersects"|"within"|"contains"|...) matches features using a spatial predicate.
    • gpd.sjoin_nearest(..., max_distance=...) performs nearest-neighbor matching; setting max_distance can reduce work and avoid unexpected far matches.
  • Overlay operations

    • gpd.overlay(gdf1, gdf2, how="intersection"|"union"|"difference"|...) computes polygon overlays; complexity grows with geometry vertex count, so simplifying geometries can improve performance when high precision is not required.
  • I/O performance

    • When supported, enabling Arrow-backed paths (e.g., use_arrow=True) can speed up read/write operations; pyarrow is typically required.
    • Use read-time filters like bbox= (and format-specific filters) to avoid loading unnecessary features.

When Not to Use

  • Do not use this skill when the required source data, identifiers, files, or credentials are missing.
  • Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.
  • Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.

Required Inputs

  • A clearly specified task goal aligned with the documented scope.
  • All required files, identifiers, parameters, or environment variables before execution.
  • Any domain constraints, formatting requirements, and expected output destination if applicable.
  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.
Show full SKILL.md (295 more words)Show less

Deterministic Output Rules

  • Use the same section order for every supported request of this skill.
  • Keep output field names stable and do not rename documented keys across examples.
  • If a value is unavailable, emit an explicit placeholder instead of omitting the field.

Output Contract

  • Return a structured deliverable that is directly usable without reformatting.
  • If a file is produced, prefer a deterministic output name such as geopandas_result.md unless the skill documentation defines a better convention.
  • Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.

Validation and Safety Rules

  • Validate required inputs before execution and stop early when mandatory fields or files are missing.
  • Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.
  • Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.
  • Keep the output safe, reproducible, and within the documented scope at all times.

Failure Handling

  • If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.
  • If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.
  • If partial output is returned, label it clearly and identify which checks could not be completed.

Completion Checklist

  • Confirm all required inputs were present and valid.
  • Confirm the supported execution path completed without unresolved errors.
  • Confirm the final deliverable matches the documented format exactly.
  • Confirm assumptions, limitations, and warnings are surfaced explicitly.

Quick Validation

Run this minimal verification path before full execution when possible:

text
No local script validation step is required for this skill.

Expected output format:

text
Result file: geopandas_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

Scope Reminder

  • Core purpose: A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like Shapefile/GeoJSON/GeoPackage or PostGIS.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in scientific-skills/Data Analysis/geopandas of aipoch/medical-research-skills.

  • SKILL.md
  • geopandas_audit_result_v2.json
  • references/crs-management.md
  • references/data-io.md
  • references/data-structures.md
  • references/geometric-operations.md
  • references/spatial-analysis.md
  • references/visualization.md

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Geopandas next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Geopandas compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Geopandas this skillaipoch/medical-research-skills1.9k—~2kAutomated safety check: PassMIT
GeoPandas Spatial Analysisdavila7/claude-code-templates33k10 repos~1.8kAutomated safety check: PassMIT
Fix Module Not Found ErrorNuitka/Nuitka15k—~519Automated safety check: PassAGPL-3.0
Chdb Datastorevemetric/vemetric3952 repos~1.4kAutomated safety check: PassApache-2.0
CSV Data Summarizercoffeefuelbump/csv-data-summarizer-claude-skill4682 repos~1.4kAutomated safety check: PassNone
Pandas ProJeffallan/claude-skills12k1 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • GeoPandas Spatial Analysis

    davila7/claude-code-templates

    Handles vector geospatial data in Python with GeoPandas: reading shapefiles, GeoJSON and GeoPackage, reprojecting, spatial joins, overlays, clipping and maps.

    33k GitHub starsUsed in 10 repos~1.8k tokens
    Data & AnalyticsAuto-check passed
  • Diagnose and fix ModuleNotFoundError in Nuitka standalone binaries caused by missing implicit imports.

    15k GitHub stars~519 tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Chdb Datastore

    vemetric/vemetric

    A skill your agent uses when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas.

    395 GitHub starsUsed in 2 repos~1.4k tokens
    Data & AnalyticsAuto-check passed
  • CSV Data Summarizer

    coffeefuelbump/csv-data-summarizer-claude-skill

    Analyzes CSV files, generates summary stats, and plots quick visualizations using Python and pandas.

    468 GitHub starsUsed in 2 repos~1.4k tokens
    Data & AnalyticsAuto-check passed
  • Pandas Pro

    Jeffallan/claude-skills

    Handles pandas DataFrame work: cleaning, merging, groupby aggregation, pivots, time-series resampling and memory tuning, with checks on dtypes, shapes and nulls.

    12k GitHub starsUsed in 1 repo~1.5k tokens
    Data & AnalyticsAuto-check passed
  • Python Executor

    cortega26/chile-hub

    Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh).

    113 GitHub starsUsed in 2 repos~1.5k tokens
    Data & AnalyticsAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 23 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 23 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 23 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 23 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 23 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 23 days ago
    Auto-check passed

Works with

Questions about Geopandas

What does Geopandas do?

A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like…. Geopandas is an agent skill from aipoch/medical-research-skills. A Python library for reading, writing, and analyzing geospatial vector data; use it when you need spatial operations (buffer/overlay/join), CRS reprojection, or map visualization on formats like Shapefile/GeoJSON/GeoPackage or PostGIS.

When should I use Geopandas?

Geopandas fits situations like: you need spatial operations (buffer/overlay/join); CRS reprojection; map visualization on formats like Shapefile/GeoJSON/GeoPackage.

How do I install Geopandas in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill geopandas -a claude-code`. Or copy the skill folder (scientific-skills/Data Analysis/geopandas in aipoch/medical-research-skills) into .claude/skills/geopandas in your project. Claude Code loads it when a task matches its description.

How do I install Geopandas in Codex?

Run `npx skills add aipoch/medical-research-skills --skill geopandas -a codex`. Or copy the skill folder (scientific-skills/Data Analysis/geopandas in aipoch/medical-research-skills) into .agents/skills/geopandas in your project. Codex loads it when a task matches its description.

Can I use Geopandas in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill geopandas -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/geopandas, .gemini/skills/geopandas, .github/skills/geopandas and .opencode/skills/geopandas in your project.

What does Geopandas need to run?

SKILL.md names no scripts, command-line tools or credentials: Geopandas is instructions for the agent only. Our summary lists: Python 3.

Does Geopandas access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Geopandas safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Geopandas use?

Geopandas is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Geopandas use?

About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.6k tokens, read only when the agent opens those files.

What are the alternatives to Geopandas?

Skills that share tags, products or a category with Geopandas: GeoPandas Spatial Analysis (davila7/claude-code-templates, 33k stars), Fix Module Not Found Error (Nuitka/Nuitka, 15k stars), Chdb Datastore (vemetric/vemetric, 395 stars) and CSV Data Summarizer (coffeefuelbump/csv-data-summarizer-claude-skill, 468 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Geopandas?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.