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…
от songhonglei1 132 установки в других каталогахОб этом скилле
skill-hub-query
- Version: 1.4.0
- License: MIT
- Author: Evan Song (https://github.com/Songhonglei)
- Repository: https://github.com/Songhonglei/build-better-skills/tree/main/skills/skill-hub-query
- Part of:
build-better-skillssuite — see Stages for the lifecycle map.
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 |
unzipis not required. Extraction goes through Python'szipfilebecause Info-ZIPunzip6.00 ignores the ZIP spec's UTF-8 filename flag and mangles non-ASCII filenames — the installed skill then crashes on first run with aFileNotFoundErrorthat points at the wrong culprit. Runbash scripts/doctor.shto 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.shexplicitly 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?"
- Silently
bash sync.sh(incremental; zero HTTP if nothing changed) bash query.sh keyword X- Reply with a user-readable table (name / author / version / updated / summary), not raw IDs
- If ≤5 hits include the summary; if many, list top 10 + total count
"Install X"
bash sync.shthenbash query.sh slug Xto get the latest version and summary- Confirm first: "Will install {displayName} v{latest} (author X). Proceed?"
- After user approves, run:
bash install.sh X --yes - Without
--yes, install.sh blocks on stdin for already-installed skills; in non-interactive mode it refuses outright — preventing silent overwrite - Show: "installed; will be loaded on the next agent session"
"Install a batch"
- Query each slug for version + permission info
- Show one combined manifest + estimated download size, wait for approval
- 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):
addreturns suc
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic