JSPM

@aisuite/chub

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2532
  • Score
    100M100P100Q136615F
  • License MIT

CLI for Context Hub - search and retrieve LLM-optimized docs and skills

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aisuite/chub) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Context Hub CLI

    Install the CLI and give your AI agent access to curated, versioned documentation.

    Install

    npm install -g @aisuite/chub

    Use as an Agent Skill

    The CLI ships with a skill that teaches agents to fetch docs automatically instead of guessing from training data. Install it into your agent tool of choice:

    Claude Code

    Copy the skill into your project:

    mkdir -p .claude/skills
    cp $(npm root -g)/@aisuite/chub/skills/get-api-docs/SKILL.md .claude/skills/get-api-docs.md

    Or install it globally (applies to all projects):

    mkdir -p ~/.claude/skills
    cp $(npm root -g)/@aisuite/chub/skills/get-api-docs/SKILL.md ~/.claude/skills/get-api-docs.md

    Cursor

    Copy the skill into your project's rules directory:

    mkdir -p .cursor/rules
    cp $(npm root -g)/@aisuite/chub/skills/get-api-docs/SKILL.md .cursor/rules/get-api-docs.md

    Other Agent Tools

    The skill is a standard markdown file at skills/get-api-docs/SKILL.md. Copy it to wherever your agent tool reads custom instructions from.

    Commands

    chub search "stripe"                 # find docs
    chub get stripe/api                  # fetch a doc
    chub get stripe/api --lang js        # specific language
    chub get stripe/api --version 19.1.0 # specific version
    chub annotate stripe/api "note"      # local annotation
    chub feedback stripe/api up          # rate a doc

    For the full command reference, see CLI Reference.