@aisuite/chub

中文文档
0.1.4发布于 2026/04/28MITES Module近 30 天下载 1.5万

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

原始使用文档
文档目录6 节
  1. Install
  2. Use as an Agent Skill
  3. Claude Code
  4. Cursor
  5. Other Agent Tools
  6. Commands

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.

版本与发布记录

@aisuite/chub 共发布 5 个版本,首次发布于 2026/03/05;过去 12 个月发布了 5 个版本。

版本发布日期距今
0.1.4latest2026/04/286 个月前
0.1.32026/03/177 个月前
0.1.22026/03/137 个月前
0.1.12026/03/068 个月前
0.1.02026/03/058 个月前

关于 @aisuite/chub 的常见问题

@aisuite/chub 是什么?

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

如何安装 @aisuite/chub?

在项目目录运行 npm install @aisuite/chub,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 chub、chub-mcp,可以用 npx chub 直接运行。

@aisuite/chub 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aisuite__chub 是否存在。

@aisuite/chub 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@aisuite/chub 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@aisuite/chub 可以商用吗?

@aisuite/chub 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@aisuite/chub 的下载量有多少?

根据 npm 官方下载统计,@aisuite/chub 在 2026/10/05 – 2026/11/03 这 30 天内被下载 15,339 次,日均约 511 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aisuite/chub 还在维护吗?

最新版本 0.1.4 发布于 2026/04/28(6 个月前);至今共发布 5 个版本,其中过去 12 个月发布了 5 个;首次发布于 2026/03/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。