@andy-hub/cli
v0.2.0
Published
Install a component (skill, agent, …) from Agent Hub into the right local folder for your client (opencode, Cline, …).
Maintainers
Readme
@andy-hub/cli
Download a component (skill, agent, …) from Agent Hub (GET /api/install/...) and extract it under a per-kind folder (skills → ~/.agents/skills, agents → ~/.config/opencode/agents) or --dir, preserving the archive layout.
Requirements
- Node.js 18+
Install
npm install -g @andy-hub/cliUsage
andy-hub install --registry https://your-registry.example.com my-ns my-skill 1.0.0
andy-hub install my-ns/[email protected]
# Agents install the same way; --kind picks the default folder
andy-hub install --kind agent my-ns/[email protected] # → ~/.config/opencode/agents/triage-bot.md
# Target a specific client with --dir
andy-hub install my-ns/[email protected] --dir .opencode/skills # opencode (project)
andy-hub install my-ns/[email protected] --dir ~/.config/opencode/skills # opencode (global)
andy-hub install my-ns/[email protected] --dir .cline/skills # Cline (workspace)
andy-hub install --kind agent my-ns/[email protected] --dir .opencode/agents # opencode agents--kind (default skill) selects the default install folder and the single-file
fallback name (SKILL.md for skills, AGENT.md for agents). --dir overrides the folder.
Folder conventions:
- Skills — opencode reads
~/.config/opencode/skills/<name>/SKILL.mdand.opencode/skills/…, and also the agent-compatible~/.agents/skills/…(the CLI default). Cline reads~/.cline/skills/<name>/SKILL.mdand.cline/skills/…. - Agents — opencode reads
~/.config/opencode/agents/<name>.mdand.opencode/agents/<name>.md.
Help: andy-hub --help
Without global install
npx --yes @andy-hub/cli install --registry https://your-registry.example.com my-ns/[email protected]Publishing (maintainers)
Requires npm login and permission to publish under your npm org @andy-hub (must match the package scope).
npm login
cd cli && npm publish --dry-run && npm publishScoped packages need publishConfig.access: "public" (already set in this package).
License
MIT
