Documentation

// cli

CLI Reference

Command-line tool documentation

Installation

npm install -g skillhub

Available Commands

skillhub install <skill-id>

Install a skill (--platform, --target-dir, --project, --force, --no-api)

skillhub search <query>

Search for skills (--platform, --limit, --page, --sort recommended|aiScore|downloads|stars|rating|recent, --wide, --json)

skillhub list

List installed skills (--platform, --target-dir, --project, --all)

skillhub update [skill-name]

Update a skill or use --all to update all

skillhub uninstall <skill-name>

Remove an installed skill (--platform, --target-dir, --project)

skillhub config

Manage CLI settings (--set, --get, --list)

Examples

Install globally:

$ npx skillhub install anthropics/skills/pdf✓ Skill installed to ~/.claude/skills/pdf/

Install in current project:

$ npx skillhub install anthropics/skills/pdf --project✓ Skill installed to ./.claude/skills/pdf/

Install for a custom agent runtime:

$ export SKILLHUB_INSTALL_DIR=/workspace/skills$ npx skillhub install openclaw/skills/sql-toolkit✓ Skill installed to /workspace/skills/sql-toolkit/

Search for skills:

$ npx skillhub search pdf

Recommended search (default) boosts strong AI review scores:

$ npx skillhub search "code review" --limit 5# Sort options: recommended (default), aiScore, downloads, stars, rating, recent

Show full descriptions and complete skill IDs:

$ npx skillhub search documentation --sort aiScore --wide

Return machine-readable results:

$ npx skillhub search documentation --sort aiScore --json# AI -- means no AI score yet; skill IDs are printed in full for install commands.

Update all installed skills:

$ npx skillhub update --all

Built-in Platforms and Custom Targets

docs.content.platformsDesc

Claude~/.claude/skills/
Codex~/.codex/skills/
Copilot.github/instructions/
Cursor.cursor/rules/
Windsurf.windsurf/rules/
Any runtimedocs.content.platformCustomPath

Custom runtime targets

Set a default directory once, or pass it per command. Do not combine --target-dir with --project.

export SKILLHUB_INSTALL_DIR=/workspace/skillsnpx skillhub install openclaw/skills/sql-toolkit✓ Skill installed to /workspace/skills/sql-toolkit/

Configuration

Settings are stored in ~/.skillhub/config.json

defaultPlatform

Default platform for installations

apiUrl

SkillHub API URL

githubToken

GitHub token for higher API rate limits