sourcecoop
БесплатноБез исполняемых скриптовНе проверенUpload geospatial data to Source Cooperative with proper metadata and READMEs using Portolan CLI.
от portolan-sdi★ 15 звёзд на GitHubОб этом скилле
Source Cooperative Upload Skill
You are helping a user publish a Portolan catalog to Source Cooperative, an open data commons for geospatial data. This skill covers the upload path. To build the catalog from a data source, use the portolan-bootstrap skill first, then return here.
The Portolan spec is ground truth. The CLI and the validator implement it. Run portolan <cmd> --help for the flags of any command below. Do not restate the help text in your answers.
Prerequisites
Source Cooperative serves its object storage through a data proxy at data.source.coop. The source-coop CLI authenticates you against the proxy and issues temporary S3 credentials. Check for it first:
source-coop --version
This skill describes version 0.3.0. An older version does not refresh expired credentials. Install it with Homebrew, or with the installer script the CLI README documents:
brew install source-cooperative/tap/source-coop
You also need a Source Cooperative account with write access to the repository. The user without access requests it at [email protected].
Workflow Overview
- Gather the organization and product names.
- Log in with
source-coop, set the remote and the endpoint in.env, and export the credentials. - Initialize the catalog with a license.
- Add files.
- Write metadata: contact, license, providers,
source_url. - Generate READMEs and write
AGENTS.md. - Run the validator locally.
- Push, then probe the published host.
Step 1: Gather Information
Ask the user for:
- The Source Cooperative organization slug (required). Examples:
nlebovits,radiant-mlhub,vida. - The product name (optional). Defaults to the current directory name.
The proxy addresses the account as the bucket and the repository as the key prefix. Build the remote URL from them:
s3://{org}/{product}/
The same URL form works for every storage region. Source Cooperative stores repositories in more than one region, such as us-west-2, ca-central-1, and an Azure region in West Europe. The proxy finds the region of the repository. The remote contains no region.
Do not use a regional bucket such as s3://us-west-2.opendata.source.coop/{org}/{product}/ or s3://ca-central-1.opendata.source.coop/{org}/{product}/. The source-coop credentials are valid only at the proxy. AWS rejects them at a regional bucket with InvalidAccessKeyId.
Step 2: Log in and set the remote
source-coop login opens a browser for the OAuth2 authorization code flow. It caches the temporary credentials and a refresh token in the OS keyring:
source-coop login
login receives the OAuth2 redirect on a local port. On a machine with no browser, forward a port over SSH and give the same port to login:
ssh -L 8400:127.0.0.1:8400 user@server
source-coop login --port 8400
Run the second command on the server. Open the URL that it prints in a local browser.
The remote
The remote is the destination that portolan push writes to. The proxy addresses the account as the bucket and the repository as the key prefix. portolan push reads the destination from PORTOLAN_REMOTE when you give it no argument.
The CLI refuses to store remote, profile, region, and s3_endpoint in .portolan/config.yaml. That file is pushed with the catalog. Put the remote and the proxy endpoint in .env at the catalog root. portolan push excludes .env from the upload.
cat > .env << 'EOF'
PORTOLAN_REMOTE=s3://{org}/{product}/
PORTOLAN_S3_ENDPOINT=https://data.source.coop
EOF
portolan config list
config list shows remote and s3_endpoint with (from env). Without the endpoint, the push goes to AWS and fails with InvalidAccessKeyId.
The credentials
portolan push reads the credentials from the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN environment variables. Export them in the shell you push from:
eval "$(source-coop creds --format env)"
The credentials expire, and the shell keeps the old values. source-coop creds refreshes expired credentials from the cached refresh token. When an upload fails with AccessDenied or 403 Forbidden, run the eval line again.
The AWS profile
portolan-cli 0.9.0 reads endpoint_url from an AWS profile. With the
portolan-cli[aws] extra installed, it also runs the profile's
credential_process through botocore and can refresh credentials during a
transfer. Select the profile with portolan push --profile source-coop, or
set AWS_PROFILE=source-coop. The environment export above also works.
The aws CLI, boto3, rclone, and DuckDB run credential_process from ~/.aws/config. The Source Cooperative docs g
Установить sourcecoop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sourcecoop?
Upload geospatial data to Source Cooperative with proper metadata and READMEs using Portolan CLI.
Как установить скилл sourcecoop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sourcecoop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic