OpenParable
Skip to content
← Back to skills

Context Hub

Agent Building
context-hub

Context Hub is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use Context Hub (chub) for curated, versioned API/SDK docs and agent skills. Keep OpenAI tasks on official docs first.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/context-management/context-hub/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/context-hub, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Context Hub Skill

Use chub as a fast retrieval layer for third-party API/SDK integration docs.

When to Use This Skill

Triggered by:

  • "查某个 SDK 的最新用法"
  • "这个第三方 API 怎么接"
  • "给我某库某版本的示例代码"
  • "查文档并按语言返回"
  • "搜索某个 provider 的文档条目"

Prerequisites

  1. Install Node.js and npm
  2. Install chub manually:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 npm install -g --prefix "$HOME/.local" @aisuite/chub
export PATH="$HOME/.local/bin:$PATH"
  1. Verify:
chub --cli-version

Routing Policy

  1. OpenAI tasks in Claude Code: prioritize official OpenAI docs first (developers.openai.com / platform.openai.com).
  2. Non-OpenAI tasks: prioritize chub.
  3. If chub has no matching entry, fallback to official vendor docs or source code.

Core Workflow

  1. Search the registry:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 chub search "<query>" --limit 10
  1. Fetch the doc/skill entry with language/version:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 chub get <id> --lang py
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 chub get <id> --lang js --version <version>
  1. Pull references when needed:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 chub get <id> --file references/<file>.md
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 chub get <id> --full
  1. Use --json when downstream parsing is required.

Optional Commands (Explicit User Request Only)

Do not run these by default. Run only when the user explicitly asks:

chub annotate <id> "<note>"
chub feedback <id> up
chub feedback <id> down --label outdated

Guardrails

  • Official vendor docs and SDK source code remain the source of truth for high-risk decisions.
  • For OpenAI topics, use official OpenAI docs as primary evidence.
  • Do not claim behavior that chub output does not show.
  • Do not auto-send feedback or annotations without explicit consent.