Add Claude Code plugin for seamless chub integration

Author: naga-kCreated Mar 27, 2026Updated Mar 27, 2026

Problem

The current process for setting up chub with Claude Code requires multiple manual steps:

  1. Install chub globally: npm install -g @aisuite/chub
  2. Find the SKILL.md file in the repo
  3. Manually create the directory: mkdir -p ~/.claude/skills/get-api-docs
  4. Copy the file: cp cli/skills/get-api-docs/SKILL.md ~/.claude/skills/get-api-docs/
  5. Remember to run chub update periodically

The README mentions this in a single sentence that's easy to miss. Compared to other tools like gstack which have clear one-liner install flows, this creates unnecessary friction for adoption.

For example, gstack's entire install is a single copy-paste command:

bash
git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && ./setup

Solution

I created a Claude Code plugin that wraps the existing get-api-docs skill with zero-setup experience:

https://github.com/naga-k/chub-claude-plugin

Install is three commands pasted into Claude Code:

/plugin marketplace add naga-k/chub-claude-plugin
/plugin install chub@chub-claude-plugin
/reload-plugins

The plugin:

  • Uses npx --yes @aisuite/chub for all commands — no global install needed, works in all scopes (user, project, local)
  • Includes a SessionStart hook that runs npx --yes @aisuite/chub update to refresh the doc registry each session
  • Passes claude plugin validate cleanly
  • Has been submitted to the official Anthropic plugin marketplace

Suggestion

You could either:

  1. Create an official plugin under the context-hub repo (ideal — users would trust an official plugin more)
  2. Fork or reference mine as a starting point — MIT licensed, happy to hand it over
  3. At minimum, improve the README with a dedicated "Claude Code Setup" section. For example, a one-liner:
    bash
    mkdir -p ~/.claude/skills/get-api-docs && curl -o ~/.claude/skills/get-api-docs/SKILL.md https://raw.githubusercontent.com/andrewyng/context-hub/main/cli/skills/get-api-docs/SKILL.md
    Or a prompt users can paste into Claude Code:

    "Install the chub get-api-docs skill by downloading https://raw.githubusercontent.com/andrewyng/context-hub/main/cli/skills/get-api-docs/SKILL.md to ~/.claude/skills/get-api-docs/SKILL.md"

Happy to help with any of these approaches.