portolan-cli
Skill11 starsChanged 30 days agoApache-2.0View on GitHub
Use when publishing, managing, or converting cloud-native geospatial data catalogs with the Portolan CLI. Covers init, add, check, push, pull, sync, partitioning, and format conversion workflows.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- isaaccorley/geospatial-skillstheir own version, first seen Mar 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- isaaccorley/geospatial-skills★ 78same 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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- catalog-graderSkill
- customize-portolan-browserSkill
- enrich-metadataSkill
- git-backed-catalogSkill
- portolan-bootstrapSkill
- portolan-migrateSkill
- portolan-thumbnailsSkill
- reading-portolanSkill
- register-catalogSkill
- report-catalog-issueSkill
- sourcecoopSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Distinctive: line 91
Update one collection end to end:
- Distinctive: line 97
Read the JSON envelope when a script runs the CLI:
≈ “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.
Files
<!-- drift: depends-on: portolan-cli, portolan-spec, rashid -->Portolan CLI
Portolan is a specification for cloud-native geospatial data catalogs, built on STAC. portolan-cli implements it. The portolan-spec repository is ground truth. Read specs/portolan/core.md and specs/portolan/formats.md there when a requirement is in doubt. The CLI converts data to GeoParquet, COG, and PMTiles. It then writes the STAC tree and validates it. portolan push syncs the result to object storage. There is no server. A catalog is static files.
This skill tracks the PyPI release named in pins.toml. Run portolan <command> --help for the options of any command. The help text is the reference. This skill only says which command to reach for and in what order.
Installation
uv tool install portolan-cli
portolan --versionFiles the CLI writes
portolan init writes a root catalog.json, AGENTS.md, README.md, versions.json, and .portolan/config.yaml plus .portolan/metadata.yaml. The root declares the v0.2.0 schema URI in stac_extensions. That URI is the only signal of the spec version (PORTO-CORE-006). Its links are root, agents, and describedby. It writes no self link. Add an absolute self link at publish time (PORTO-CORE-081).
portolan add <dir> turns a directory into a collection. For one GeoParquet file, with --pmtiles, it writes:
demo/
├── collection.json
├── AGENTS.md
├── README.md
├── versions.json
├── data.parquet asset role: data
├── data.pmtiles asset role: visual, plus a rel: pmtiles link
├── data.thumb.jpg asset role: thumbnail
└── styles/default.json asset roles: style, defaultWithout --pmtiles there is no PMTiles file and no styles/ directory, so a vector collection has no render path (PORTO-CORE-065). Pass --pmtiles for vector data.
AGENTS.md and README.md beside every catalog.json and collection.json are spec requirements (PORTO-CORE-005). versions.json is a CLI artifact that tracks sync state and checksums. It is not part of the spec. Dataset versioning uses the STAC version extension (PORTO-CORE-008).
One file is a collection-level asset with no item (PORTO-CORE-017). A partitioned collection uses the partition extension and its partition:glob (PORTO-FMT-017). Items for opaque partition schemes are not created (PORTO-FMT-022). Many raster scenes in one collection get one item each (PORTO-CORE-071), and portolan stac-geoparquet writes the items.parquet mirror for it.
Structural links stay relative, so the catalog is portable.
Which command
| Task | Command |
| Start a catalog | portolan init --license <SPDX> |
| See what a directory contains before you add it | portolan scan <dir> |
| Add or update a collection | portolan add <dir> |
| Register remote data without copying it | portolan add-external |
| Validate against the spec | portolan check |
| Convert non-cloud-native files in place | portolan check --fix |
| Probe the published host for range requests and CORS | portolan check --live --url <public base> |
| Split a large GeoParquet file | portolan partition |
| Upload | portolan push <remote> |
| Download a remote catalog | portolan pull <remote> or portolan clone <remote> |
| Pull, check, and push one collection | portolan sync <remote> -c <collection> |
| Edit the metadata behind the READMEs | portolan metadata init, portolan metadata validate |
| Regenerate READMEs | portolan readme |
| Publish a logo | portolan logo <file> |
| Manage collection versions | portolan version |
| Read a skill from this repository | portolan skills list, portolan skills show |
Facts that trip agents:
initneeds--licensewhenever--autoor--jsonis passed. Without them it prompts.syncrequires-c. It runs on one collection, never catalog-wide.checkreads remote assets over range requests in its data pass. Pass--data-scope localto read only assets inside the tree, or--no-datato skip the pass.check --fixremovesportolan:datetime_provisionalfrom items. The item then has no provisional marker.addtakes--pmtiles,--force-pmtiles,--thumbnails,--force-thumbnails,--stac-geoparquet,--item-id,--datetime,--reconvert, and--force.--force-pmtilesimplies--pmtiles.push --workersis the parallelism across collections.--concurrencyis the upload parallelism within one, default 8. Neither has a cap.- The root group takes
--format json. Most subcommands take--json.partitionaccepts no JSON flag. checkcalls the pinnedrashid. Where the two disagree, the spec decides, and the disagreement is a bug to report.
Workflows
Publish a new catalog:
portolan init --auto --license CC-BY-4.0 --title "My Geospatial Data"
portolan scan /data/geospatial
portolan add demographics/ --pmtiles
portolan check
portolan push s3://mybucket/my-catalog -c demographicsUpdate one collection end to end:
portolan sync s3://mybucket/my-catalog -c demographics --fixRead the JSON envelope when a script runs the CLI:
portolan --format json check
portolan scan . --jsonThe envelope is {"success": true, "command": "...", "data": {...}, "errors": []}.
Troubleshooting
| Error | Solution |
| "Not inside a Portolan catalog" | Run portolan init or move into the catalog. |
PRTLN-VAL004 | init or add-external ran with --auto and no --license. |
| "Push conflict: remote has newer version" | Run portolan pull first, or pass --force to overwrite. |
| Shapefile missing components | Provide .shp, .shx, and .dbf together. |
| Non-cloud-native files | Run portolan check --fix to convert vectors to GeoParquet and rasters to COG. |
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
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.

