CLI Reference
The skhub CLI is your tool for installing, managing, and syncing AI agent skills.
Installation
Or use with npx:
Commands Overview
skhub add
Install a skill from the platform, a specific version, a skillset, or a GitHub repository.
Arguments
<slug>— Skill identifier in formatusername/skill-name<version>— Specific version to install (optional)<github-repo-url>— GitHub repository URL to import from
Options
Examples
How Installation Works
- Fetches skill metadata from the platform
- Downloads skill files
- Writes to target directory:
.agents/— Main installation directory.claude/— Symlink to.agents/(when--target both)
- Updates
skills.jsonmanifest
skhub list
List all installed skills in the current project or globally.
Options
Output
skhub remove
Remove an installed skill.
Arguments
<slug>— Skill identifier to remove
Options
Examples
skhub sync
Reinstall all skills from skills.json. Useful when:
- Files are missing or corrupted
- Updating to latest versions
- Setting up a new machine
Options
Examples
skhub login
Authenticate with the Agent Skill Hub platform. Opens a browser for OAuth authentication.
How It Works
- CLI generates a session ID
- Opens browser to platform login page
- User authenticates via GitHub
- CLI polls for approval
- API token is stored locally
Token Storage
Authentication tokens are stored at:
skhub logout
Remove stored authentication credentials.
This revokes the API token on the server and deletes local credentials.
skhub whoami
Display the currently authenticated user.
Output
Configuration
Environment Variables
Project Root Detection
The CLI detects your project root by looking for (in order):
skills.jsonfile.gitdirectory
skills.json
The manifest file tracking installed skills:
Locations:
- Local:
./skills.json(project root) - Global:
~/.skhub/skills.json
Target Directories
When --target both is used, .claude/ contains symlinks to .agents/.

