skillhub README

README проекта с github.com/iflytek/skillhub. Одним файлом markdown: README.md.

SkillHub Logo

SkillHub

An enterprise-grade, open-source agent skill registry — publish, discover, and manage reusable skill packages across your organization.

DeepWiki Docs Discord License Build Docker Java React

GitHub Stars GitHub Watchers

iflytek%2Fskillhub | Trendshift  AAIF Associate Member

English | 中文


SkillHub Demo

SkillHub is a self-hosted platform that gives teams a private, governed place to share agent skills. Publish a skill package, push it to a namespace, and let others find it through search or install it via CLI. Built for on-premise deployment behind your firewall, with the same polish you'd expect from a public registry.

⭐ If SkillHub fits your team, star the repo to help other teams find it, and Watch → Custom → Releases to get notified when a new version ships.

Share Great Skills

Great Skills become more valuable when they are shared. If you have a Skill that has proved useful in real work or everyday life, share it with the SkillHub community and help grow an open, practical Skill ecosystem. We welcome Skills for daily life, office work, learning and research, travel and events, content creation, data analysis, and software development—not only engineering workflows.

High-quality community contributions may join the curated starter collection, making new SkillHub deployments useful from day one. You do not need to finish the full adaptation before joining in: open an issue with the Skill's source and the problem it solves, or submit a PR by following the Skill sharing guide.

Documentation

Governance and Safety

Highlights

Quick Start

To host your own registry using release images, start with:

curl -fsSL https://imageless.oss-cn-beijing.aliyuncs.com/runtime.sh | sh -s -- up

The default command pulls the latest stable release images. Use --version edge if you want the newest build from main.

Configure public URL (recommended for production):

curl -fsSL https://imageless.oss-cn-beijing.aliyuncs.com/runtime.sh | sh -s -- up --public-url https://skillhub.your-company.com

The --public-url parameter sets the public access URL for your SkillHub instance. This ensures:

For users in China (Aliyun mirror):

curl -fsSL https://imageless.oss-cn-beijing.aliyuncs.com/runtime.sh | sh -s -- up --aliyun --public-url https://skillhub.your-company.com --version latest

Keep the existing runtime home when rerunning or updating the deployment. The runtime script reuses its .env.release file; deleting the directory discards your custom configuration, including the public URL and generated anonymous download cookie secret.

If deployment runs into problems, inspect the ps and logs lifecycle commands printed by the runtime script, then retry up with the same runtime home. If you intentionally want a fresh configuration, back up .env.release before clearing the runtime home.

SkillHub CLI

Install and manage Agent skills from the command line:

# Install CLI
npm install -g @astron-team/skillhub

# Or run directly
npx @astron-team/skillhub@latest version

# Login
skillhub login --token sk_xxx --registry https://skill.xfyun.cn

# Search and install skills
skillhub search pdf
skillhub install pdf-parser --agent codex

# List installed skills
skillhub list

📖 Full guide: docs/skillhub/en/guide/cli.md

Prerequisites

Local Development

make dev-all

For developers in China: If Maven dependency download times out, configure Aliyun mirror. See Local Development Guide for details.

Then open:

By default, make dev-all starts the backend with the local profile. In that mode, local development keeps the mock-auth users below and also creates a password-based bootstrap admin account by default:

Use them with the X-Mock-User-Id header in local development.

The local bootstrap admin is enabled by default in application-local.yml:

Stop everything with:

make dev-all-down

Only when deliberately discarding local dependency data, reset with:

make dev-all-reset

Run make help to see all available commands.

Useful backend commands:

make test
make test-backend-app
make build-backend-app

Do not run ./mvnw -pl skillhub-app clean test directly under server/. skillhub-app depends on sibling modules in the same repo, and a standalone clean build can fall back to stale artifacts from the local Maven repository, which surfaces misleading cannot find symbol and signature-mismatch errors. Use -am, or the make test-backend-app and make build-backend-app targets above.

For the full development workflow (local dev → staging → PR), see docs/dev-workflow.md.

API Contract Sync

OpenAPI types for the web client are checked into the repository. When backend API contracts change, regenerate the SDK and commit the updated generated file:

make generate-api

For a stricter end-to-end drift check, run:

./scripts/check-openapi-generated.sh

This starts local dependencies, boots the backend, regenerates the frontend schema, and fails if the checked-in SDK is stale.

Container Runtime

Published runtime images are built by GitHub Actions and pushed to GHCR. This is the supported path for anyone who wants a ready-to-use local environment without building the backend or frontend on their machine. Published server and web images target linux/amd64, linux/arm64, and linux/riscv64; the scanner image currently targets linux/amd64 and linux/arm64.

Quick deployment with curl:

# Default (GHCR images)
curl -fsSL https://imageless.oss-cn-beijing.aliyuncs.com/runtime.sh | sh -s -- up --public-url https://skillhub.your-company.com

# Aliyun mirror (recommended for users in China)
curl -fsSL https://imageless.oss-cn-beijing.aliyuncs.com/runtime.sh | sh -s -- up --aliyun --public-url https://skillhub.your-company.com --version latest

Deployment parameters:

Parameter Description Example
--public-url <url> Public access URL (recommended) --public-url https://skill.example.com
--version <tag> Specific image tag --version v0.2.25
--ref <git-ref> Git ref for deployment files (GitHub raw mode) --ref v0.2.25
--aliyun Use Aliyun mirror (China) --aliyun
--home <dir> Runtime directory --home /opt/skillhub
--no-scanner Disable security scanner --no-scanner

--version selects image tags; it does not pin the deployment files. By default, those files come from main. To pin the installer, Compose file, environment template and application image tag together, use a released Git ref and tag:

curl -fsSL https://raw.githubusercontent.com/iflytek/skillhub/v0.2.25/scripts/runtime.sh | sh -s -- up --ref v0.2.25 --version v0.2.25 --home /opt/skillhub --public-url https://skillhub.your-company.com

This example uses GitHub raw and requires access to it. With the updated installer, --aliyun keeps only the three core files (runtime.sh, compose.release.yml, and .env.release.example) on the OSS root. The five optional analytics/Collector configuration files are fetched on demand through gh-proxy.org, using --ref (or SKILLHUB_REF, default main), just like the ordinary GitHub source. There is no installer-side commit or checksum list to update when editing these templates. Every use downloads the selected ref again; main is mutable and proxy caching means it is not guaranteed to reflect the latest commit immediately. For production, select a reviewed release tag or commit with --ref and a matching image --version. OSS core files are still not versioned by --ref; the publisher must keep them compatible with the chosen release. --version alone does not select a file ref. Download failures, empty responses and obvious wrong-format responses stop the optional operation without replacing the existing destination. This basic format check is not full YAML validation or cryptographic source verification: using the proxy requires trusting that third party. Availability is not guaranteed, and there is no silent fallback to another ref. Likewise, a custom SKILLHUB_RAW_BASE takes precedence over the Git-ref URL. The explicit custom source retains its existing behavior and does not use the default proxy path. Neither OSS core files nor an explicit custom source should be described as pinned by --ref. The script preserves an existing .env.release; record its settings and explicit image overrides separately. Pinning the application tag does not freeze every dependency image or replace a database backup.

Important: Configure --public-url for production deployments to ensure CLI install commands and Agent setup instructions display the correct URLs.

For sub-path deployments, keep the public URL and runtime base path aligned in .env.release: set SKILLHUB_PUBLIC_BASE_URL=https://skill.example.com/skillhub, SKILLHUB_WEB_BASE_PATH=/skillhub/, and SKILLHUB_WEB_API_BASE_URL=/skillhub.

Manual deployment:

  1. Copy the runtime environment template.
  2. Pick an image tag.
  3. Start the stack with Docker Compose.
cp .env.release.example .env.release

Recommended image tags:

Start the runtime:

make validate-release-config
docker compose --env-file .env.release -f compose.release.yml up -d

Then open:

Stop it with:

docker compose --env-file .env.release -f compose.release.yml down

The runtime stack uses its own Compose project name, so it does not collide with containers from make dev-all.

The production Compose stack now defaults to the docker profile only. It does not enable local mock auth. The release template (.env.release.example) enables the bootstrap admin by default, so zero-config quickstart via runtime.sh works out of the box:

Recommended production baseline:

If the GHCR package remains private, run docker login ghcr.io before docker compose up -d.

Upload Allowlist Override

Skill package upload validation uses the default extension allowlist from SkillPackagePolicy.java. SkillPublishProperties uses that same list by default for skillhub.publish.allowed-file-extensions.

If you need to replace the default allowlist at runtime, set:

SKILLHUB_PUBLISH_ALLOWED_FILE_EXTENSIONS=.md,.json,.xsd,.xsl,.dtd,.docx,.xlsx,.pptx

Spring Boot binds this environment variable to skillhub.publish.allowed-file-extensions. When set, it replaces the default allowlist instead of appending to it.

Monitoring

The optional monitoring/ directory provides Prometheus and Grafana deployment examples. It is not a ready-to-scrape backend configuration: the default application exposes only health and info Actuator endpoints. /actuator/prometheus also requires the SUPER_ADMIN or AUDITOR role under the current route policy, while the example scraper has no credentials configured.

Before enabling monitoring, configure metrics exposure and an authenticated access path appropriate to your deployment; verify that the scraper can actually read the endpoint. Do not make management endpoints public merely to satisfy the example. The example targets host.docker.internal:8080, which must resolve to your backend from the Prometheus container.

After adapting that configuration, start the optional stack:

cd monitoring
docker compose -f docker-compose.monitoring.yml up -d

Prometheus uses port 9090 and Grafana uses port 3001. Replace the example Grafana administrator credentials before exposing it. Confirm scrape targets are healthy and metrics are present; starting the containers alone does not establish monitoring coverage. For tracing and request correlation, see the observability developer guide.

Kubernetes

Basic Kubernetes manifests are available under deploy/k8s/:

For a configurable deployment with bundled PostgreSQL and Redis dependencies, use the Helm chart under charts/skillhub/:

helm dependency build ./charts/skillhub
helm upgrade --install skillhub ./charts/skillhub \
  --namespace skillhub \
  --create-namespace \
  -f values-production.yaml

See the Helm chart guide for required secrets, Ingress/TLS, external data services, storage migration, and upgrade constraints.

Apply them after creating your own secret:

kubectl apply -f deploy/k8s/configmap.yaml
kubectl apply -f deploy/k8s/secret.yaml
kubectl apply -f deploy/k8s/backend-deployment.yaml
kubectl apply -f deploy/k8s/frontend-deployment.yaml
kubectl apply -f deploy/k8s/services.yaml
kubectl apply -f deploy/k8s/ingress.yaml

Smoke Test

A lightweight smoke test script is available at scripts/smoke-test.sh.

Run it against a local backend:

./scripts/smoke-test.sh http://localhost:8080

Local Compose and staging runs can keep using one backend URL. For an ingress deployment where the public URL exposes application APIs but keeps Actuator on the backend service, set a separate Actuator target:

ACTUATOR_BASE_URL=http://skillhub-server:8080 \
  ./scripts/smoke-test.sh https://skillhub.example.com

The health check requires an Actuator JSON response, so an HTML SPA fallback is reported as a routing or target error instead of a successful health response.

Admin label-management smoke checks run only when current admin credentials are supplied explicitly:

SMOKE_ADMIN_USERNAME=admin SMOKE_ADMIN_PASSWORD='current-password' \
  ./scripts/smoke-test.sh http://localhost:8080

Use SMOKE_ADMIN_CHECKS=false for persistent environments where only non-admin smoke checks should run. The script no longer falls back to bootstrap admin password defaults.

Architecture

SkillHub system architecture

Backend (Spring Boot 3.2.3, Java 21):

Frontend (React 19, TypeScript, Vite):

SkillHub and the Agent Skills Ecosystem

SkillHub is a registry and governance platform — not a skill collection. It is complementary to open skill catalogs such as anthropics/skills: that repository popularized the Agent Skill format (a SKILL.md with name / description frontmatter plus supporting files) and ships a curated set of example skills. SkillHub is where your organization hosts, versions, governs, and distributes those skills privately.

anthropics/skills SkillHub
What it is A curated collection of example Agent Skills + the format spec A self-hosted registry & governance platform for skills
Layer Content — the skills themselves Infrastructure — hosting, versioning, discovery, access control
Hosting Public GitHub repository Your own infrastructure, behind your firewall
Versioning Git history Semantic versions, tags (beta / stable), latest tracking
Access control Public Namespaces, RBAC, review & audit logging
Distribution Clone / copy files Full-text search + CLI install

Because SkillHub speaks the same SKILL.md format, skills from anthropics/skills — or any Agent Skill folder — publish straight into your registry:

# Grab a skill from an open collection...
git clone https://github.com/anthropics/skills

# ...and publish it into your private SkillHub registry
export SKILLHUB_REGISTRY=https://skillhub.your-company.com
export SKILLHUB_TOKEN=YOUR_API_TOKEN
npx @astron-team/skillhub@latest publish ./skills/<category>/<skill-name>

⚖️ Licensing: honor each skill's own license when republishing. Most skills in anthropics/skills are Apache 2.0, but the document skills (DOCX/PDF/PPTX/XLSX) are source-available rather than open source — check the skill's LICENSE before redistributing.

In short: use collections like anthropics/skills for content, and SkillHub to distribute it across your organization under governance.

Usage with Agent Platforms

SkillHub works as a skill registry backend for several agent platforms. Point any of the clients below at your SkillHub instance to publish, discover, and install skills.

OpenClaw

OpenClaw is an open-source agent skill CLI. Configure it to use your SkillHub endpoint as the registry:

# Configure registry URL
export CLAWHUB_REGISTRY=https://skillhub.your-company.com

# Authenticate once if needed
clawhub login --token YOUR_API_TOKEN

# Search and install skills
npx clawhub search email
npx clawhub install my-skill
npx clawhub install my-namespace--my-skill

# Publishing uses the first-party SkillHub CLI
export SKILLHUB_REGISTRY=https://skillhub.your-company.com
export SKILLHUB_TOKEN=YOUR_API_TOKEN
npx @astron-team/skillhub@latest publish ./my-skill --namespace my-space

my-space--my-skill is the canonical compat slug. SkillHub parses it as namespace my-space plus skill slug my-skill.

ClawHub compatibility covers search, inspection, and installation. Its publish protocol is not compatible with SkillHub; use the first-party CLI shown above.

💡 Tip: The above commands are not only applicable to OpenClaw, but also to other CLI Coding Agents or Agent assistants by specifying the installation directory (--dir). For example: npx clawhub --dir ~/.claude/skills install my-skill

📖 Complete OpenClaw Integration Guide →

Hermes Agent

Hermes Agent uses the standard SKILL.md format and recursively discovers skills under $HERMES_HOME/skills/. Use SkillHub CLI's explicit --dir option to install a complete SkillHub package into Hermes without a registry adapter, then verify it with hermes skills list.

📖 Complete Hermes Agent Integration Guide →

DeepSeek Harness

DeepSeek Harness (dsh) discovers standard SKILL.md packages from .dsh/skills and the shared .agents/skills roots. Install directly into its native user directory with the first-party SkillHub CLI:

skillhub install my-skill --agent dsh --scope user

Project-scoped installs use <repository>/.dsh/skills; run them from the repository root. dsh watches its skill roots, so newly installed skills are discovered without restarting the process.

📖 Complete DeepSeek Harness Integration Guide →

HarnessClaw Engine

HarnessClaw Engine is a Go LLM programming assistant engine that exposes its capabilities over WebSocket. It loads skills from SKILL.md files with YAML frontmatter and parameter substitution, scanning each configured directory for skill-name/SKILL.md (default ~/.harnessclaw/workspace/skills/, with earlier directories taking priority on name conflicts). Install a SkillHub package straight into that directory with the CLI's --dir option, no registry adapter required:

npx clawhub --dir ~/.harnessclaw/workspace/skills install my-skill

AstronClaw

AstronClaw is a cloud AI assistant built on OpenClaw's core capabilities, providing 24/7 online service through enterprise platforms like WeChat Work, DingTalk, and Feishu. It features a built-in skill system with over 130 official skills. You can connect it to a self-hosted SkillHub registry to enable one-click skill installation, search repository, dialogue-based automatic installation, and even custom skills management within your organization.

Loomy

Loomy is a desktop AI work partner focusing on real office scenarios. It integrates deeply with local files and system tools to build efficient automated workflows for individuals and small teams. By connecting Loomy to your SkillHub registry, you can easily discover and install organization-specific skills to enhance your local desktop automation and productivity.

astron-agent

astron-agent is the iFlytek Astron agent framework. Skills stored in SkillHub can be referenced and loaded by astron-agent, enabling a governed, versioned skill lifecycle from development to production.

SkillHub is part of the iFlytek Astron open-source ecosystem. If SkillHub is useful to you, these sibling projects may be too:


🌟 Show & Tell — Have you built something with SkillHub? We'd love to hear about it! Share your use case, integration, or deployment story in the Discussions → Show and Tell category.

Contributing

Contributions are welcome. Please open an issue first to discuss what you'd like to change.

📞 Support

License

Apache License 2.0

skillhub (iflytek/skillhub)

Ищем в базе…

Что это такое?SkillHub — это реестр агентских навыков с открытым исходным кодом, который можно развернуть на собственных серверах. Он позволяет компаниям публиковать, версионировать и контролировать многоразовые пакеты навыков для агентов внутри своей сети.
Это коллекция навыков вроде anthropics/skills или что-то другое?Нет, SkillHub — это инфраструктура, а не контент: это платформа-реестр и управления для приватного хранения, версионирования и распространения пакетов Agent Skill. Она дополняет готовые коллекции навыков, такие как 'anthropics/skills'.
Как это запустить?Запустите полный локальный стек командой `make dev-all` или загрузите опубликованные образы для выполнения и разверните их с помощью прилагаемого установочного скрипта на основе curl, передав --public-url для продакшена.
Что нужно установить перед запуском SkillHub?Docker и Docker Compose — указанные требования для стека CLI/реестра; для локальной разработки бэкенда дополнительно нужны Maven и Java 21.
Есть ли подводные камни при сборке или развертывании?Если запустить `./mvnw -pl skillhub-app clean test` напрямую в каталоге server/, можно подтянуть устаревшие артефакты и получить вводящие в заблуждение ошибки, поэтому лучше использовать цели make. Кроме того, у начального администратора по умолчанию задан пароль (ChangeMe!2026), который нужно сменить перед выходом в продакшен.
Для кого создан SkillHub?Для команд корпоративной разработки и платформенных команд, которым нужен закрытый реестр агентских навыков с контролем, вместо использования публичных репозиториев навыков. Есть владение пространствами имён, процессы проверки и журналирование аудита.
Можно ли запустить это на Kubernetes или только в Docker?Оба варианта: SkillHub поставляется со стеком Docker Compose для быстрого развертывания, а также с базовыми манифестами Kubernetes и Helm-чартом, включающим PostgreSQL и Redis для развертывания в кластере. Опубликованные образы собираются для linux/amd64, arm64 и riscv64.
Защищает ли он закрытые навыки?Да, он рассчитан на размещение на собственной инфраструктуре с полным суверенитетом данных. Отдельные документы по управлению описывают категории данных, сроки хранения, переносимость и порядок реагирования на инциденты для самостоятельно развернутых экземпляров.
Для чего нужен слой совместимости с ClawHub?Он позволяет существующим клиентам реестров в стиле ClawHub работать с SkillHub, при этом собственный REST API и CLI SkillHub остаются основным поддерживаемым интерфейсом.
Какой стек используется для бэкенда и фронтенда?Бэкенд работает на Spring Boot 3.2.3 с Java 21, PostgreSQL 16 и Redis; фронтенд построен на React 19 с TypeScript, Vite, TanStack Router/Query и Tailwind CSS/Radix UI.
Как хранятся пакеты навыков?Для разработки пакеты хранятся в локальной файловой системе, а для продакшена — в S3 или MinIO. Переключение между ними выполняется через конфигурацию без изменения кода.
Можно ли следить за работающим развертыванием?Да, в комплекте есть стек Prometheus + Grafana, который собирает метрики из эндпоинта Actuator бэкенда для мониторинга.
Какие есть похожие проекты?casdoor, omnara, anythingmcp, JeecgBoot, labtether, OpenBot, obot, edict
Автор
iflytek
Размер
77.1 MB
Звёзды
5.4K
Возраст
8 мес
Коммиты · 90 дней