# Context Hub Skill
Standalone agent skill for Context Hub (`chub`).
This repository is meant to be installed with the open `skills` CLI so one
skill can be shared across Claude Code, Cursor, Codex, and other compatible
coding agents.
## Install
List the skills published by this repo:
```bash
npx skills add andrewyng/context-hub-skill --list
```
Install `context-hub` globally for the most common coding agents:
```bash
npx skills add andrewyng/context-hub-skill --skill context-hub -g -a claude-code -a cursor -a codex -y
```
Install only for Claude Code:
```bash
npx skills add andrewyng/context-hub-skill --skill context-hub -g -a claude-code -y
```
Install only for Cursor:
```bash
npx skills add andrewyng/context-hub-skill --skill context-hub -g -a cursor -y
```
Install only for Codex:
```bash
npx skills add andrewyng/context-hub-skill --skill context-hub -g -a codex -y
```
If you omit `-a`, the `skills` CLI detects installed agents and prompts for the
target. If you omit `-g`, the install is project-scoped instead of user-scoped.
## What The Skill Does
The `context-hub` skill is designed to minimize setup friction:
- It checks whether `chub` is already installed.
- If `chub` is missing and the environment allows it, it installs `@aisuite/chub`.
- It starts with `chub help` so the agent reads the current bootstrap guidance
for the installed CLI version.
- It tells the agent to use `chub search` and `chub get` instead of guessing
from model memory when the task depends on current third-party docs.
- It reminds the agent to save concise annotations and leave feedback after
using a doc or skill.
## Lowest-Friction Usage
After installing the skill, you can tell your agent something like:
```text
Use Context Hub whenever this task depends on current third-party docs, SDKs,
APIs, frameworks, or agent workflows.
```
From there, the skill should guide the agent to install `chub` if needed, run
`chub help`, and use Context Hub as the source of truth.
Prompts that should be strong matches for this skill:
```text
Build a Next.js app that uses the latest OpenAI API. Verify the current model
names, recommended model config, and setup steps before writing code.
```
```text
Integrate Stripe subscriptions into this app using the current SDK docs and
check whether the API version or webhook setup has changed since your cutoff.
```
## Repository Layout
Public skills live under `skills/`:
```text
skills/
context-hub/
SKILL.md
```
This keeps the repo aligned with the current `skills` CLI discovery rules and
easy to extend later with additional public or experimental skills.