publish — скилл для Claude Code: публикация задач Harbor
Скилл publish публикует задачи и датасеты Harbor в реестр. Проверяет авторизацию, идентификаторы задач и проводит через все шаги загрузки.
Apache-2.0 202 установок ★ 7 321 обновлён 2026-10-23
npx skills add harbor-framework/harbor --skill publish -a claude-codeЧто делает publish
Скилл проверяет, залогинен ли пользователь (uvx harbor auth status), затем убеждается, что в task.toml прописан идентификатор вида <org>/<name>. Если его нет, запускает uvx harbor task update с флагом --org. Для датасетов сначала инициализирует манифест dataset.toml командой uvx harbor dataset init, после чего добавляет задачи из локальных папок или реестра через uvx harbor dataset add. Перед публикацией датасета синхронизирует дайджесты изменённых задач командой uvx harbor sync.
По умолчанию публикует приватно; флаг --public делает задачу или датасет общедоступным. Тег latest добавляется автоматически, дополнительные теги задаются через -t. После публикации видимость можно изменить на hub.harborframework.com или через uvx harbor task visibility. Датасет запускается командой uvx harbor run -d "<org>/<dataset>@v1.0".
Какие задачи решает
- залить задачу Harbor в реестр с проверкой идентификатора организации
- опубликовать датасет с метрикой и набором задач из разных папок
- синхронизировать дайджесты локальных задач перед повторной публикацией
- добавить теги версии и сделать датасет публичным одной командой
Примеры запросов агенту
- Опубликуй задачу из папки
tasks/simple-mathв реестр Harbor - Создай датасет
myorg/benchmark-2024с описанием «Тесты на агентов» и добавь задачи изtasks/ - Синхронизируй дайджесты датасета и опубликуй его с тегом
v2.1и флагом--public
Как установить publish
1Через Skills CLI (Vercel)
npx skills add harbor-framework/harbor --skill publish -a claude-code2Вручную: положить файлы
~/.claude/skills/publish/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/publish/
1Через Skills CLI (Vercel)
npx skills add harbor-framework/harbor --skill publish -a codex2Вручную: положить файлы
.agents/skills/publish/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add harbor-framework/harbor --skill publish -a cursor2Вручную: положить файлы
.cursor/skills/publish/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install harbor-framework/harbor skills/publish2Вручную: положить файлы
.github/skills/publish/SKILL.md1Через Skills CLI (Vercel)
npx skills add harbor-framework/harbor --skill publish -a gemini-cli2Командой платформы
gemini skills install https://github.com/harbor-framework/harbor --path skills/publishВручную: положить файлы
.devin/skills/publish/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add harbor-framework/harbor --skill publish -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о publish
Как установить publish в Claude Code?
Выполни npx skills add harbor-framework/harbor --skill publish -a claude-code, скилл появится в ~/.claude/skills/publish/SKILL.md.
Что делает скилл publish?
Проводит через публикацию задач и датасетов Harbor: проверяет авторизацию, идентификаторы, синхронизирует дайджесты и загружает в реестр с нужными тегами и видимостью.
Что нужно для публикации датасета Harbor?
Сначала инициализируй манифест dataset.toml через uvx harbor dataset init, добавь задачи командой uvx harbor dataset add, синхронизируй дайджесты через uvx harbor sync, затем запусти uvx harbor publish.
Исходный текст
SKILL.md · Apache-2.0
--- name: publish description: Publish a Harbor task or dataset to the registry. Use when the user wants to upload, publish, or share tasks or datasets/benchmarks on the Harbor registry. --- Help the user publish a Harbor task or dataset to the registry. Walk them through each step, checking prerequisites and confirming before running publish commands. All commands use `uvx harbor` so the user does not need to install the CLI globally. ## Prerequisites 1. **Auth**: Ensure the user is logged in by running `uvx harbor auth status`. If not logged in, prompt them to run `uvx harbor auth login`. 2. **Task identifiers**: All tasks must have a `[task]` section in their `task.toml` with a name like `<org>/<name>`. If missing, run: ```bash uvx harbor task update "<path/to/task>" --org "<org>" ``` To update all tasks in a directory: ```bash uvx harbor task update "<path/to/tasks>" --org "<org>" --scan ``` ## Publishing a task ```bash uvx harbor publish "<path/to/task>" ``` Publish multiple tasks or all tasks in a directory: ```bash uvx harbor publish "<path/to/task-a>" "<path/to/task-b>" uvx harbor publish "<path/to/tasks>" ``` ## Publishing a dataset ### 1. Initialize the dataset manifest (if no `dataset.toml` exists) ```bash uvx harbor dataset init "<org>/<dataset>" \ --description "<description>" \ --author "Jane Doe <[email protected]>" ``` Add `--with-metric` if the user needs a custom metric script. If omitted, the dataset uses the default metric (average reward across tasks, with missing values treated as 0). **Auto-add behavior:** If `dataset init` is run in a directory that already contains tasks, those tasks are automatically added to the manifest. After init, **ask the user if they want to add additional tasks** — either from the Harbor registry or from other local folders. ### 2. Add additional tasks and files (optional) ```bash cd "<path/to/dataset>" uvx harbor dataset add "<path/to/task-a>" "<path/to/task-b>" # local tasks from elsewhere uvx harbor dataset add "<path/to/folder>" --scan # all tasks in another folder uvx harbor dataset add org/task-name # published tasks from registry uvx harbor dataset add org/dataset-name # all tasks from a published dataset uvx harbor dataset add metric.py # metric file (same dir as dataset.toml) uvx harbor dataset remove "<org>/<task-name>" # remove a task ``` Specific versions: `org/task@tag`, `org/task@revision`, or `org/task@sha256:<hash>`. ### 3. Sync digests (if tasks/metrics changed since last publish) ```bash uvx harbor sync uvx harbor sync --upgrade # also upgrade remote tasks to latest ``` ### 4. Publish the dataset ```bash uvx harbor publish "<path/to/dataset>" ``` `uvx harbor publish` automatically refreshes digests of local tasks in the dataset directory. ## Publish options (tasks and datasets) - `-t / --tag`: add tags (repeatable). `latest` is always included. - `-c / --concurrency`: control upload concurrency. - `--public`: make public (private by default). - `--no-tasks` (datasets only): skip publishing tasks in the dataset directory. Example: ```bash uvx harbor publish "<path>" -t v1.0 --public ``` ## After publishing - Visibility can be changed later with `uvx harbor task visibility` / `uvx harbor dataset visibility` or on https://hub.harborframework.com/. - Run a published dataset with: ```bash uvx harbor run -d "<org>/<dataset>@v1.0" -a "<agent>" -m "<model>" ```
© harbor-framework · Apache-2.0 · harbor-framework/harbor