skillhub/docs/skillhub/en/quickstart.md
XiaoSeS 9ebb99226d
docs: refresh bilingual guides and skill suite usage (#1028)
* docs: refresh bilingual user and operator guides

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

* docs: align lifecycle and suite illustrations

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

* docs: refresh bilingual technology stack diagrams

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

* docs: expand verified workflows and reorganize documentation

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

* docs: expand sidebar groups by default

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

* docs: address independent review wording findings

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

---------

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-10-28 17:40:59 +08:00

5 KiB

Quick Start: Install and Use a Skill

Install your first skill and use it in your Agent. This guide uses an existing registry; no SkillHub server deployment is needed.

Before you begin

  • An Agent that supports skill directories, such as Codex or Claude Code.
  • Node.js 18 or later and npm; check with node --version.
  • A project directory and a reachable SkillHub registry.

Run the commands in a terminal. @team/example-skill is a placeholder, not a guaranteed public package. Replace it with an actual search result. Before a project-scoped installation, enter the project root that your Agent will open.

1. Install the CLI and select a registry

npm install -g @astron-team/skillhub
skillhub version

The default registry is https://skill.xfyun.cn. For a self-hosted instance, set its actual URL in your terminal:

export SKILLHUB_REGISTRY=https://skillhub.example.com

For PowerShell, set the registry with:

$env:SKILLHUB_REGISTRY="https://skillhub.example.com"

For a single command, append --registry https://skillhub.example.com. Use the same registry for search, login, and installation. Identically named skills from different registries are different installation sources.

Public skills support anonymous search and installation. Publishing and restricted resources require authentication:

skillhub login
skillhub whoami

If no token is resolved from command arguments, environment variables, or saved registry credentials, follow the device-authorization instructions in the browser. When a token is found, login validates that identity rather than automatically asking you to choose another account. Use skillhub login --no-open on a remote terminal. Available sign-up and login methods depend on the instance configuration.

2. Find and install a skill

skillhub search pdf

Review the skill's purpose, version, visibility, and instructions on its detail page. Replace the placeholder @team/example-skill below with a real search result.

From the target project root:

skillhub install @team/example-skill --scope project --agent codex
skillhub list --agent codex

For Claude Code, use --agent claude-code. Use --scope user to share an installation across projects. Codex project installations use .codex/skills/<slug>/; Claude Code uses .claude/skills/<slug>/. User installations use the corresponding directory under your home directory.

Verify the destination

Read the destination printed by installation, then inspect skillhub list --agent codex: the coordinate, version, Agent, directory, and status should match your choice. list filters by the active registry; switching registries does not delete local files.

missing means the recorded directory does not exist. ok only means the directory exists, not that the Agent loaded or successfully executed the skill. Check SKILL.md in the actual destination before continuing.

3. Use it in your Agent

Open the project in your Agent and start a new session or reload skills if required. Confirm that the Agent discovers the skill, then make a concrete request:

Use example-skill and follow its instructions to process the following material: …

Use the name in SKILL.md and the Agent's discovery results. Installation does not execute a skill or configure its required tools and credentials. If discovery fails, check the CLI's destination, current project, scope, and target Agent; see the FAQ.

For a collection, use skillhub suite install, then start with its entry skill. See Skill Suites.

4. Update and manage installations

skillhub upgrade @team/example-skill --check
skillhub upgrade @team/example-skill

Review the plan before updating and preserve local changes you need. Do not use --force by default. See the CLI guide for removal, team workspace synchronization, and command details.

Troubleshoot the first installation

Symptom Check first Next step
Skill not found Registry, spelling, login identity, and visibility Confirm a published coordinate/version in the UI; see discovery
Directory conflict Whether the destination belongs to another source or contains your own files Preserve needed files; do not force an unknown directory; see CLI reference
Installed but not discovered Agent profile, project root, and user/project scope Check the printed path, then reload or start a session according to the Agent's discovery behavior
Discovered but execution fails Required tools, inputs, and credentials Follow SKILL.md; the registry does not configure or execute those requirements

Next steps

Install a Skill Suite when you need a coordinated collection, or use the CLI reference for more commands. For publishing, team administration, hosting, or development, choose your next task in the documentation map.