Sync local AI agent skills (npx skills) with a private GitHub Gist.
npm install
npm run build
npm linkRun without linking:
node bin/skillhub.js <command>Published package:
npx @yw9142/skillhub-cli <command>skillhub auth login
skillhub auth status
skillhub auth status --json
skillhub auth logout
skillhub auth logout --yes
skillhub auth logout --jsonauth login: prompts for a GitHub PAT (classic,gistscope), verifies access, and stores it viaconfauth status: shows login state, gist id, last successful sync timestamp, local skill count, and Gist API accessibilityauth logout: clears stored session keys (githubToken,gistId,lastSyncAt)
skillhub sync requires a subcommand.
skillhub sync pull
skillhub sync push
skillhub sync merge
skillhub sync autoCommon options:
--dry-run # compute plan only (no install/remove/upload/config write)
--json # single JSON output objectpull only:
--yes # skip deletion confirmation promptMode behavior:
pull: mirror remote to local (remote -> local). Installs missing local skills and removes extra local skills.push: mirror local to remote (local -> remote). Updates/creates remote Gist payload from local skills.merge: union local + remote, installs missing local skills, uploads when remote differs.auto: compareremote.updatedAtand locallastSyncAt; install from remote when remote is newer, otherwise upload local when needed.
skillhub.json in Gist:
{
"skills": [
{ "name": "vercel-composition-patterns", "source": "vercel-labs/agent-skills" }
],
"updatedAt": "2026-01-29T07:27:53.844Z"
}Backward compatibility for legacy skills: string[] payloads is preserved.
If you need npm auth, copy .npmrc.example to .npmrc and keep it local only.
Create release note:
npm run changesetVersion packages:
npm run version-packagesPublish:
npm run releaseCI release workflow publishes to GitHub Packages only:
- GitHub Packages publish uses
GITHUB_TOKENby default. - If needed, add
GH_PACKAGES_TOKEN(PAT withwrite:packages) for GitHub Packages. - GitHub Packages target package is
@yw9142/skillhub-cli.
npmjs publish is manual.