# Context Hub (chub) > CLI tool for searching and fetching LLM-optimized documentation and skills. Install: npm install -g @aisuite/chub ## Content Types - doc: API/SDK reference documentation. Versioned, language-specific. Entry file: DOC.md - skill: Task recipes, automation patterns, coding playbooks. Standalone. Entry file: SKILL.md ## Commands ### chub search [query] Search docs and skills. No query lists all entries. Flags: --tags Filter by tags (comma-separated) --json JSON output with { total, results[] } Examples: chub search # list everything chub search "stripe" # fuzzy search by name/description chub search stripe/payments # exact id returns full detail chub search --tags automation # filter by tag ### chub get Fetch one or more docs or skills by ID. Auto-detects type (doc vs skill). Auto-infers language when only one is available. Flags: --lang Language variant (js, py, ts, etc.) --version Specific doc version --full Fetch all files, not just the entry point --file Fetch specific file(s) by path (comma-separated) -o, --output Write to file or directory --json JSON output with { id, type, content, path, additionalFiles?, annotation? } Examples: chub get stripe/api # single doc (auto-infers lang if only one) chub get openai/chat-api --lang py # specific language chub get pw-community/login-flows # fetch a skill chub get stripe/api openai/chat-api # multiple entries chub get acme/widgets --file references/advanced.md # specific reference file chub get acme/widgets --full # all files chub get stripe/api -o .context/stripe.md # save to file Behavior: - When additional reference files exist beyond the entry point, output includes a footer listing them - Use --file to fetch specific reference files without fetching everything - If an annotation exists for the entry, it is appended after the content ### chub annotate [id] [note] Attach persistent notes to a doc or skill. Notes appear on future `chub get` calls. Flags: --clear Remove annotation for this entry --list List all annotations --json JSON output Examples: chub annotate stripe/api "Use idempotency keys for POST requests" # set note chub annotate stripe/api # view current note chub annotate stripe/api "Updated note" # replaces previous note chub annotate stripe/api --clear # remove note chub annotate --list # list all annotations Storage: ~/.chub/annotations/ (local, per-machine) ### chub feedback [id] [rating] [comment] Rate a doc or skill (up/down). Sent to the registry for maintainers. Flags: --label