Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reading-portolan

БесплатноЗапускает вложенные скриптыНе проверен

Use when exploring, querying, analyzing, or visualizing data from a Portolan catalog (STAC-based cloud-native geospatial data). Covers AGENTS.md and STAC…

portolan-sdiот portolan-sdi★ 15 звёзд на GitHub

Об этом скилле

Reading Portolan Data

A Portolan catalog is a STAC catalog served as static files from object storage. Vector data is GeoParquet paired with PMTiles. Raster data is Cloud Optimized GeoTIFF (COG). Tabular data is plain Parquet with no geometry column. There is no API server. You read the JSON, then query the files in place with DuckDB or rasterio.

The Portolan specification is ground truth. Read specs/portolan/core.md and specs/portolan/formats.md at tag v0.3.0 when this skill and a catalog disagree. Rule ids such as PORTO-CORE-061 point into specs/portolan/requirements.yaml.

Step 1: Detect the environment

Check what is installed before you suggest a tool.

duckdb --version
python -c "import duckdb; print(duckdb.__version__)"
python -c "import geopandas; print(geopandas.__version__)"
python -c "import rasterio; print(rasterio.__version__)"
python -c "import rioxarray; print('rioxarray ok')"
gpio --version
ogr2ogr --version
Installed Vectors and tables Rasters
DuckDB read_parquet with the spatial and httpfs extensions. Best choice. Not applicable
GeoPandas only gpd.read_parquet() Not applicable
rioxarray Not applicable rioxarray.open_rasterio(). Best choice.
rasterio only Not applicable rasterio.open()
Nothing Suggest DuckDB Suggest rioxarray

If nothing is installed, explain the options and offer to guide an install. Respect a no. Every tool above reads remote files by HTTP range request, so nobody needs to download a whole file first.

Install a current DuckDB with the spatial extension.

Step 2: Read the metadata

Catalog Layout

catalog-root/
├── catalog.json                 # Root STAC Catalog
├── AGENTS.md                    # Agent guide, linked as rel: agents
├── README.md                    # Human guide, linked as rel: describedby
└── {collection_id}/
    ├── collection.json          # Extent, providers, license, assets, links
    ├── AGENTS.md
    ├── README.md
    ├── {data}.parquet           # data asset
    ├── {data}.pmtiles           # rel: pmtiles link
    ├── thumbnail.png            # thumbnail asset
    ├── styles/default.json      # style asset with the default role
    └── {item_id}/{item_id}.json # one directory per item, when items exist

Each catalog and each collection includes an AGENTS.md and a README.md (PORTO-CORE-061, PORTO-CORE-062). A versions.json beside them is a CLI artifact, not part of the specification. Ignore it when you read data. There is no llms.txt in the specification.

Crawl the catalog

Start at catalog.json. Follow every link with rel: child. A child with "type": "Catalog" is a sub-catalog, so recurse into it. A child with "type": "Collection" is a dataset. Build the full inventory before you answer a question.

BASE=https://example.com/catalog
curl -s $BASE/catalog.json | jq -r '.links[] | select(.rel=="child") | .href'

Read AGENTS.md first

Every collection links its AGENTS.md with rel: agents and its README.md with rel: describedby. Read AGENTS.md before you write a query. It lists the join keys, the coordinate system, the useful aggregations, and the data quality traps. The README documents the schema and the provenance.

COLL=$BASE/collection-id
curl -s $COLL/collection.json \
  | jq -r '.links[] | select(.rel=="agents" or .rel=="describedby") | .href'
curl -s $COLL/AGENTS.md

Read collection.json

curl -s $COLL/collection.json | jq '{
  id, title, license, updated,
  spec: [.stac_extensions[] | select(test("portolan-sdi.org/portolan"))],
  bbox: .extent.spatial.bbox,
  time: .extent.temporal.interval,
  providers: [.providers[] | {name, roles}],
  via: [.links[] | select(.rel=="via" or .rel=="canonical") | .href],
  pmtiles: [.links[] | select(.rel=="pmtiles") | {href, layers: .["pmtiles:layers"]}],
  assets: (.assets | to_entries | map({key, href: .value.href, type: .value.type, roles: .value.roles})),
  glob: .["partition:glob"],
  columns: [.["table:columns"][]? | {name, type}]
}'

Each field reports the following:

  • stac_extensions contains https://schemas.portolan-sdi.org/portolan/v0.3.0/schema.json. That URI is the only signal of the specification version (PORTO-CORE-006).
  • license is an SPDX identifier, or other with a rel: license link (PORTO-CORE-058, PORTO-CORE-059). Report it before you redistribute anything.
  • providers lists at least one producer and exactly one host, last (PORTO-CORE-047). When the producer and the host are the same organization, the catalog is official. When they differ, the catalog is a mirror.
  • A mirror has a via link (text/html) to the original source (PORTO-CORE-053). It has a canonical link when the source publishes its own STAC (PORTO-CORE-054). It sets top-level updated to the last sync time (PORTO-CORE-057).
Полный SKILL.md на GitHub

Установить reading-portolan в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

reference/map-inline.htmlreference/map-multi.jsreference/map-style.htmlreference/style-default.json

FAQ

Что делает скилл reading-portolan?

Use when exploring, querying, analyzing, or visualizing data from a Portolan catalog (STAC-based cloud-native geospatial data). Covers AGENTS.md and STAC metadata, assets by role, DuckDB queries over GeoParquet and Parquet, COGs, cross-dataset joins, partitioned collections, and interactive maps with PMTiles and MapLibre.

Как установить скилл reading-portolan?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл reading-portolan запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить reading-portolan с