/register-catalog:register-catalogfrom register-catalog
Registers a Portolan catalog in the Portolan registry by validating the catalog URL, deriving a slug, and opening a pull request via GitHub CLI.
Ships in register-catalog. 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.
Read when SKILL.md points to them.
You are helping a user add their Portolan catalog to the portolan-registry by opening a pull request. The registry crawls and validates submitted catalogs, then exports their metadata. (Portolan uses STAC to organize its catalog.json, but a Portolan catalog is its own thing — don't call it a STAC catalog.)
A registry entry is a single YAML file with one field:
url: https://example.com/stac/catalog.json
CI auto-extracts everything else (title, description, bbox, license, counts, etc.) by crawling the catalog. Never add other fields or invent metadata — the schema forbids it (additionalProperties: false).
The URL must end in catalog.json and point to a reachable Portolan catalog root.
curl -fsSL "$CATALOG_URL" | python3 -c "
import sys, json
c = json.load(sys.stdin)
assert c.get('type') == 'Catalog', f\"not a catalog root (type={c.get('type')})\"
print('OK:', c.get('id'), '-', c.get('title', '(no title)'))
"
If the URL doesn't end in catalog.json, isn't reachable, or isn't a catalog root, stop and tell the user. Do not proceed with an invalid entry.
The slug is the directory that contains catalog.json — the last path segment before the filename. No need to invent one.
# .../source-coop/nlebovits/ide-pergamino/catalog.json -> ide-pergamino
SLUG=$(basename "$(dirname "$CATALOG_URL")")
echo "$SLUG"
The file will be catalogs/$SLUG.yaml.
Use gh to fork (if needed), branch, add the file, and open the PR — all without leaving the working directory:
# CATALOG_URL and SLUG carry over from the steps above
# Fork (no-op if already forked) and clone to a temp dir
TMP=$(mktemp -d)
gh repo fork portolan-sdi/portolan-registry \
--clone "$TMP/portolan-registry" --remote
cd "$TMP/portolan-registry"
# Create the entry on a new branch
git checkout -b "add-$SLUG"
printf 'url: %s\n' "$CATALOG_URL" > "catalogs/$SLUG.yaml"
git add "catalogs/$SLUG.yaml"
git commit -m "Add $SLUG catalog"
git push -u origin "add-$SLUG"
# Open the PR against the upstream repo
gh pr create \
--repo portolan-sdi/portolan-registry \
--title "Add $SLUG catalog" \
--body "Registers \`$CATALOG_URL\` in the Portolan registry."
Give the user the PR URL (printed by gh pr create) and explain that CI will crawl and validate the catalog, then export its metadata to exports/catalogs.json once merged.
If the user prefers not to use GitHub, they can submit the same catalog.json URL through the web form at portolan-sdi.org.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub isaaccorley/geospatial-skills --plugin register-catalogOther plugins' skills for the same job