Command Palette

Search for a command to run...

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

skill-hub-query

БесплатноЗапускает вложенные скриптыНе проверен

Query, install, update, and edit AI agent skills on any compatible Skill Hub (self-hosted, or any Hub implementing the documented API contract). Dual-channel…

songhongleiот songhonglei1 132 установки в других каталогах

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

skill-hub-query

Drive any compatible Skill Hub from the command line with a single, predictable interface. Works with self-hosted Hubs that implement the documented API contract.

Heads-up: this tool talks to Hubs that implement the API contract below. It does NOT target clawhub.ai — that Hub has its own API surface and an official CLI named clawhub. Use this tool when you have a private or compatible Hub to drive.


Requirements

Command Used for If missing
bash (≥ 4.0) all scripts nothing works
curl every HTTP call nothing works
jq JSON parsing, cache queries nothing works
python3 (≥ 3.6, stdlib only) scripts/_zip_safe.py — listing and extracting skill archives install.sh cannot extract
file archive type detection in error paths degraded diagnostics only
git edit.sh owner pre-check via git config user.email set SKILL_HUB_OWNER_EMAIL instead

unzip is not required. Extraction goes through Python's zipfile because Info-ZIP unzip 6.00 ignores the ZIP spec's UTF-8 filename flag and mangles non-ASCII filenames — the installed skill then crashes on first run with a FileNotFoundError that points at the wrong culprit. Run bash scripts/doctor.sh to verify filename handling on your machine.


Agent workflow

Dual-channel auto-selection

When the user asks a Hub-related question ("what's on the hub", "install X", "search for Y"), run sync.sh / query.sh / install.sh directly — the scripts pick the right channel:

User state Channel Capability
Token set (env or credentials file) OpenAPI (<HUB_API_PREFIX>/* with auth header) Full features incl. private skills
No token Legacy fallback (<HUB_LEGACY_API_PREFIX>/* without auth) Search & install public skills

When falling back the first time, the script emits a one-shot notice suggesting the user request a token for long-term stability. After that it stays silent.

When to actively suggest the user configure a token

Only when the user explicitly needs to:

  • install a private skill (search finds it, but download requires auth)
  • get contract-stable, long-term behavior (legacy fallback may be removed)
  • when doctor.sh explicitly recommends it

Setting up the token (after the user provides one)

# Option A: env var (CI / temporary)
export SKILL_HUB_URL="https://hub.your-company.com"
export SKILL_HUB_TOKEN="<your-token>"

# Option B: credentials file (recommended, cross-skill reusable)
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/skill-hub-query"
cat > "${XDG_CONFIG_HOME:-$HOME/.config}/skill-hub-query/credentials.json" <<EOF
{
  "endpoint":   "https://hub.your-company.com",
  "token":      "<your-token>",
  "authHeader": "Authorization",
  "authScheme": "Bearer "
}
EOF
chmod 600 "${XDG_CONFIG_HOME:-$HOME/.config}/skill-hub-query/credentials.json"

Then verify with bash scripts/doctor.sh.

Never echo a full token back to the user, write it outside the credentials directory, or commit it to git.

"What's on the hub for X?"

  1. Silently bash sync.sh (incremental; zero HTTP if nothing changed)
  2. bash query.sh keyword X
  3. Reply with a user-readable table (name / author / version / updated / summary), not raw IDs
  4. If ≤5 hits include the summary; if many, list top 10 + total count

"Install X"

  1. bash sync.sh then bash query.sh slug X to get the latest version and summary
  2. Confirm first: "Will install {displayName} v{latest} (author X). Proceed?"
  3. After user approves, run: bash install.sh X --yes
  4. Without --yes, install.sh blocks on stdin for already-installed skills; in non-interactive mode it refuses outright — preventing silent overwrite
  5. Show: "installed; will be loaded on the next agent session"

"Install a batch"

  1. Query each slug for version + permission info
  2. Show one combined manifest + estimated download size, wait for approval
  3. After approval, install serially with install.sh <slug> --yes (avoid rate limiting); report failures separately

"Manage team members"

Runs team.sh (team member management: search / my teams / detail / member list / add / remove). Optional Hub capability — contract in references/api.md §5; if your Hub does not implement it, set SKILL_HUB_DISABLE_TEAM=1.

Field-tested pitfalls the script already defends against (do not bypass):

  • add returns suc
Полный SKILL.md на ClawHub

Установить skill-hub-query в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл skill-hub-query?

Query, install, update, and edit AI agent skills on any compatible Skill Hub (self-hosted, or any Hub implementing the documented API contract). Dual-channel: with a token it uses the authenticated API (full features including private skills); without a token it falls back to the unauthenticated channel (public skills only). Covers: list newly published skills, search by keyword / author / time / source, inspect version history, install or upgrade a specific version, and edit a skill's card metadata (display name, summary, tags, visibility, applicable position, etc.) via a safety-first GET -> diff -> backup -> PUT -> dual-channel verify -> auto-rollback flow, plus team member management (search teams / list members / add / remove with pre-write de-duplication and post-write verification). Trigger phrases include "what's new on the hub", "search for X skill", "install X", "update Y skill", "edit hub card info", "show skill version history", "add a team member", "remove from team", "list team members", "skill-hub-query". Use when the user asks what is on a hub, wants a skill installed or upgraded to an exact version, needs card metadata edited safely, or manages skill-hub team membership.

Как установить скилл skill-hub-query?

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

Скилл skill-hub-query запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить skill-hub-query с