Command Palette

Search for a command to run...

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

git-backed-catalog

БесплатноБез исполняемых скриптовНе проверен

Create, maintain, or contribute to a Portolan catalog whose metadata is stored in a git repository, with CI that validates each change. Use when someone wants…

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

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

Git-Backed Portolan Catalogs

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:

  • Rollback. Git keeps every previous version of the catalog and the changes between them.
  • A validation loop. CI runs rashid on every pull request. Edit, validate, fix, and repeat until the checks pass. Scheduled checks run documented queries against published data.
  • A contribution path. Someone who finds a wrong license can open a pull request instead of hunting for a contact address.

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.

Catalog navigation

Apply the navigation contract in the repository's generator and checks. Replace the template's root vcs and issues placeholders.

Mode A: create a new git-backed catalog

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:

  1. Point catalog.publish.yaml at your storage: write_prefix, public_base, and region.
  2. Name the catalog in catalog/catalog.json: id, title, and description.
  3. Rewrite catalog/README.md and catalog/AGENTS.md.
  4. Rewrite the repository README.md.
  5. Decide official or mirror. A mirror collection needs 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).
  6. Add a logo, optionally, as a root rel: icon link with an image media type (PORTO-CORE-075).
  7. Replace the TODO(setup) hrefs in the vcs and issues links the template provides. Both are absolute URLs, because the repository is outside the published catalog.
  8. Add collections.
  9. Finish: no 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.
  10. Outside the 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.

Declare the current schema version

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.

Raise the validator floor in the gate

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

Adding a collection

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).

Полный SKILL.md на GitHub

Установить git-backed-catalog в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл git-backed-catalog?

Create, maintain, or contribute to a Portolan catalog whose metadata is stored in a git repository, with CI that validates each change. Use when someone wants to publish a catalog they can roll back and take pull requests on, or wants to fix metadata in someone else's catalog.

Как установить скилл git-backed-catalog?

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

Скилл git-backed-catalog запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить git-backed-catalog с