Add Claude Code plugin for seamless chub integration
Problem
The current process for setting up chub with Claude Code requires multiple manual steps:
- Install chub globally:
npm install -g @aisuite/chub - Find the SKILL.md file in the repo
- Manually create the directory:
mkdir -p ~/.claude/skills/get-api-docs - Copy the file:
cp cli/skills/get-api-docs/SKILL.md ~/.claude/skills/get-api-docs/ - Remember to run
chub updateperiodically
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:
git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && ./setupSolution
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-pluginsThe plugin:
- Uses
npx --yes @aisuite/chubfor all commands — no global install needed, works in all scopes (user, project, local) - Includes a
SessionStarthook that runsnpx --yes @aisuite/chub updateto refresh the doc registry each session - Passes
claude plugin validatecleanly - Has been submitted to the official Anthropic plugin marketplace
Suggestion
You could either:
- Create an official plugin under the context-hub repo (ideal — users would trust an official plugin more)
- Fork or reference mine as a starting point — MIT licensed, happy to hand it over
- At minimum, improve the README with a dedicated "Claude Code Setup" section. For example, a one-liner:Or a prompt users can paste into Claude Code:
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"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.
Source: andrewyng/context-hub