Agent skill
context-hub
Use Context Hub (chub) for curated, versioned API/SDK docs and agent skills. Keep OpenAI tasks on official docs first.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/context-hub
SKILL.md
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
- Install Node.js and npm
- Install
chubmanually:
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"
- Verify:
chub --cli-version
Routing Policy
- OpenAI tasks in Claude Code: prioritize official OpenAI docs first (
developers.openai.com/platform.openai.com). - Non-OpenAI tasks: prioritize
chub. - If
chubhas no matching entry, fallback to official vendor docs or source code.
Core Workflow
- Search the registry:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 chub search "<query>" --limit 10
- 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>
- 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
- Use
--jsonwhen 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
chuboutput does not show. - Do not auto-send feedback or annotations without explicit consent.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?