/portolan:git-backed-catalogfrom portolan
Creates, maintains, or contributes to a Portolan catalog stored in git with CI validation. Supports rollback, pull requests, and metadata fixes.
Ships in portolan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A git-backed catalog keeps its metadata in a repository and its data in object storage. The repository publishes the catalog. The bucket serves readers.
This pattern is useful for three reasons:
rashid on every pull request. Edit, validate, fix, and repeat until the checks pass. Scheduled checks run documented queries against published data.See the git-backed catalogs guidance for the background and tradeoffs. The specification is ground truth. rashid implements it.
Pick the mode that matches what the user asked for.
Apply the navigation contract in the repository's generator and checks. Replace the template's root vcs and issues placeholders.
This path suits a catalog that takes contributions or needs rollback. If the user wants to convert a data source and publish it to a bucket, use the portolan-bootstrap skill instead.
Start from the template. It provides a stub catalog that passes rashid on the first commit, so CI is green before the catalog is populated.
gh repo create <owner>/<name> \
--template portolan-sdi/portolan-catalog-template \
--public --clone
cd <name>
Then work through SETUP.md in the new repository. It is authoritative. Do not improvise around it. Its ten steps are:
catalog.publish.yaml at your storage: write_prefix, public_base, and region.catalog/catalog.json: id, title, and description.catalog/README.md and catalog/AGENTS.md.README.md.providers with the producer and host roles set correctly, a via link to the source (PORTO-CORE-053), and updated at each sync (PORTO-CORE-057).rel: icon link with an image media type (PORTO-CORE-075).TODO(setup) hrefs in the vcs and issues links the template provides. Both are absolute URLs, because the repository is outside the published catalog.TODO(setup) remains, python3 tests/run_all.py passes, python3 tools/publish.py dry-runs clean. Then delete tests/test_setup.py and SETUP.md.portolan-sdi organization, remove .github/workflows/repo-checks.yml and the ops-sync blocks.These two guards stop you, and both are deliberate:
tests/test_setup.py fails while the repository is half-edited. An untouched template passes, and so does a finished one.tools/publish.py refuses to upload while a sentinel value remains in catalog.publish.yaml. It checks before any AWS call, so this works without credentials.The pinned template declares https://schemas.portolan-sdi.org/portolan/v0.2.0/schema.json in catalog/catalog.json. Set the URI to https://schemas.portolan-sdi.org/portolan/v0.3.0/schema.json for a catalog targeting v0.3.0. See PORTO-CORE-006, PORTO-CORE-009, and PORTO-CORE-081 for schema and self link requirements.
To use the pinned rashid 0.4.0, update tests/test_conformance.py: set MIN_VERSION = (0, 4, 0), MAX_VERSION = (0, 5, 0), and SPEC = "rashid>=0.4.0,<0.5.0". Install the same version locally and in CI:
python3 -m venv .venv
.venv/bin/pip install 'rashid>=0.4.0,<0.5.0'
.venv/bin/rashid --version
Data files do not belong in git. Build them, upload them to the bucket, and write STAC that references them by public URL. The .gitignore already blocks common data formats.
Each collection directory contains collection.json, AGENTS.md, and README.md (PORTO-CORE-005). The AGENTS.md link is rel: agents and the README.md link is rel: describedby, both type: text/markdown (PORTO-CORE-061, PORTO-CORE-062). The root's child link has type: application/json and a title (PORTO-CORE-033, PORTO-CORE-039). An absolute asset href should use https (PORTO-CORE-023). A non-HTTPS absolute href needs an HTTPS alternate for the same data (PORTO-CORE-087).
Items are normative. A collection with more than one raster scene models each scene as an item in its own subdirectory (PORTO-CORE-015, PORTO-CORE-071). Commit that item JSON. A collection with many items also publishes items.parquet, registered as a collection asset with role collection-mirror (PORTO-FMT-040, PORTO-FMT-041). The mirror is derived from the items. It never replaces item JSON or the collection's item links (PORTO-FMT-042). Generate the mirror with portolan stac-geoparquet, and keep the generator, not only its output, in the repository.
The single-file rule is the exception: one GeoParquet file or one COG is a collection-level asset with no item (PORTO-CORE-017, PORTO-CORE-072).
Run the gates before committing. tests/test_links.py catches a child link added before its directory exists.
tools/publish.py syncs catalog/ and nothing else. The narrow scope keeps a scratch file out of a public bucket. Do not widen it.
The template provides tools/upload_data.py for the data. Set data_dir in catalog.publish.yaml to the staging directory. The script admits only files under data_dir with a publishable suffix, imports its change detection and sentinel guard from publish.py, and never deletes. Run it dry first:
python3 tools/upload_data.py # dry run
python3 tools/upload_data.py --confirm # upload; needs AWS credentials
Its change detection compares a multipart object by size alone. Pass --force after you replace a file with one of the same size.
The default branch is the source of truth. After a change merges there, the published metadata must match it. Readers see the bucket, not the repository, so a merged fix that is not published does not reach them.
The template includes tools/publish.py but no workflow that runs it. Choose one mechanism, and state it in the repository's AGENTS.md:
tools/publish.py --confirm on each push to the default branch that changes catalog/**. A contributor's merged pull request then reaches readers with no maintainer step. Prefer this mode when CI can get write access to the store.tools/publish.py --confirm after each merge. Use this mode only when CI cannot get write access. Name who publishes.In both modes:
concurrency group. The publish job then never overlaps a refresh write.pergamino-ide-catalog publishes on merge to Source Cooperative. See its .github/workflows/publish.yml and tools/check_sync.py.
A fresh clone in CI has the metadata and not the data, so asset hrefs do not resolve there. The template's ci.yml sets CI_LIGHT=1, and tests/test_links.py then exempts asset hrefs with a data suffix. Structural links stay checked. Leave CI_LIGHT unset locally. The full check then runs where the bytes are.
The template does not test documented queries or claims, so add a check that reads them directly from Markdown under catalog/. Keep the queries in the docs rather than maintaining a second copy in the tests.
Choose a query engine and setup that suit the data. The Philadelphia housing example runs documented SQL with DuckDB after each refresh.
For row counts and percentages, provide a query instead of a value that can go stale.
Read the repository's AGENTS.md first to learn how the catalog publishes. For a catalog that publishes on merge, the loop ends when the pull request merges, and the workflow uploads. For a catalog that publishes by hand, the loop is:
python3 tests/run_all.py
git add -A && git commit -m "fix: ..."
python3 tools/publish.py # dry run
python3 tools/publish.py --confirm # upload; needs AWS credentials
When maintaining a catalog:
catalog/ does not remove the object from the bucket. Delete the object separately when that is intended.portolan push and tools/publish.py do not interoperate. portolan push tracks uploads in versions.json, a CLI artifact keyed on sha256. The template's tools/publish.py keeps no state and compares local size and MD5 against the bucket listing. Pick one per catalog and say which in the repository's AGENTS.md.tools/ pipeline, change the source of the generated catalog.ACCEPTED in tests/test_conformance.py hides a defect in the catalog. Fix the finding or record a waiver in docs/conformance.md with a tracking issue.--force. A bucket listing omits Content-Type, so change detection does not notice.self link (PORTO-CORE-081). The template's publish.py does not write that link. Add it in the tracked catalog.json with the public_base URL, or add a rewrite to the publish step.You have a published catalog.json and want to correct something in it.
Check the root catalog's links. vcs names the source repository. issues names where to report a problem. Both are best-practice conventions rather than Core requirements, so older catalogs may lack them. If the catalog uses the STAC VCS Extension, the vcs link may also carry a branch, commit, or tag.
curl -fsSL "$CATALOG_URL" | jq -r '.links[] | select(.rel == "vcs" or .rel == "issues") | "\(.rel): \(.href)"'
If those links are missing, read the catalog's description and README.md. Do not guess a repository URL from the catalog id or provider name. If you cannot identify the repository, ask the user.
TMP=$(mktemp -d)
gh repo fork <owner>/<repo> --clone "$TMP/repo"
cd "$TMP/repo"
git checkout -b fix/parcels-license
# make the edit
python3 tests/run_all.py
git add -A
git commit -m "fix: correct the license on the parcels collection"
git push -u origin fix/parcels-license
gh pr create --repo <owner>/<repo> \
--title "fix: correct the license on the parcels collection" \
--body-file body.md
Run the repository's own checks before pushing. A contribution that fails the maintainer's CI costs them a round trip. Edit the source, not the generated output. A repository in the portolan-sdi organization lints the PR body: write ## What changed, ## Why, and ## Verification in Simplified Technical English, and paste the check you ran under Verification.
Reading one is no different from reading any other Portolan catalog. Use the reading-portolan skill. The repository adds context a published catalog does not: git log shows why metadata changed, a tag marks a fixed version, and CI results show whether that version passed validation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/automated-catalog-updatesSet up automated updates for a Portolan catalog that mirrors a source that changes regularly. CI or cron runs the scripts on a schedule, and no agent takes part after setup. Each run re-extracts only the collections whose source changed and publishes each change as a new version. Work in progress, and the place to run large extracts is still open. Use when someone wants a mirror of an ArcGIS, GeoNode, WFS, or similar service to update itself./catalog-graderGrade a published Portolan catalog from A+ to F and explain each finding with evidence. Use this skill when you need to review catalog quality, including a registry submission./customize-portolan-browsernpx claudepluginhub portolan-sdi/portolan-skills --plugin portolanOther plugins' skills for the same job