
andrewyng/context-hub
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
コーディングエージェントはAPIを幻覚し、セッションで学んだことを忘れてしまいます。Context Hubは厳選されたバージョン管理済みドキュメントを提供し、さらに各タスクでより賢くなれる機能を提供します。
概要
コーディングエージェントはAPIを幻覚し、セッションで学んだことを忘れてしまいます。Context Hubは厳選されたバージョン管理済みドキュメントを提供し、さらに各タスクでより賢くなれる機能を提供します。このリポジトリ内のすべてのコンテンツはマークダウンとしてオープンかつ管理されており、エージェントが正確に何を読み取り、貢献してフィードバックできます。 Chubはコーディングエージェントが使うために設計されています(あなた自身が使うためではありません!)。エージェントに使うよう促すことができます(例:「CLIコマンドchubを使ってOpenAIを呼び出すための最新のAPIドキュメントを取得してください。動作を理解するために'chub help'を実行してください。」))または、SKILL.md を使ってChubを使うためのエージェントスキルを作成し、理想的にはエージェントにこのスキルの使用を思い出すよう促す方法もあります。(Claudeコードを使っている場合は、ディレクトリ~/.claude/skills/get-api-docsを作成し、そこに SKILL.md 入れてください。) 次回のためにローカルで注釈を付けることができます: — chub feedback stripe/API up or down — ドキュメントを賛否両論で投票して、時間をかけてみんなにとって良くなれるようにしましょう。 バージョン付きで、言語ごとに特定されている。「知っておくべきこと。
概要(AI 翻訳)
コーディングエージェントはAPIを幻覚し、セッションで学んだことを忘れてしまいます。Context Hubは厳選されたバージョン管理済みドキュメントを提供し、さらに各タスクでより賢くなれる機能を提供します。このリポジトリ内のすべてのコンテンツはマークダウンとしてオープンかつ管理されており、エージェントが正確に何を読み取り、貢献してフィードバックできます。
クイックスタート
仕組み
Chubはコーディングエージェントが使うために設計されています(あなた自身が使うためではありません!)。エージェントに使うよう促すことができます(例:「CLIコマンドchubを使ってOpenAIを呼び出すための最新のAPIドキュメントを取得してください。動作を理解するために’chub help’を実行してください。」))または、SKILL.md を使ってChubを使うためのエージェントスキルを作成し、理想的にはエージェントにこのスキルの使用を思い出すよう促す方法もあります。(Claudeコードを使っている場合は、ディレクトリ~/.claude/skills/get-api-docsを作成し、そこに SKILL.md 入れてください。)
ほとんどの場合、簡単です — 検索、取ってきて、使うだけです:
エージェントがギャップを発見した場合、次回のためにローカルに注釈を付けることができます:
フィードバックは著者にフィードバックされます — chub feedback stripe/api upまたは[down] — 文書を賛否で投票し、時間をかけて皆のためにより良いものになるようにします。
コンテンツタイプ
バージョン付きで、言語ごとに特定された。「知っておくべきこと」
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Context Hub
Coding agents hallucinate APIs and forget what they learn in a session. Context Hub gives them curated, versioned docs, plus the ability to get smarter with every task. All content is open and maintained as markdown in this repo — you can inspect exactly what your agent reads, and contribute back.
Quick Start
npm install -g @aisuite/chub
chub search openai # find what's available
chub get openai/chat --lang py # fetch current docs (Python version)
How It Works
Chub is designed for your coding agent to use (not for you to use!). You can prompt your agent to use it (e.g., “Use the CLI command chub to get the latest API documentation for calling OpenAI. Run ‘chub help’ to understand how it works.”) Or by creating an agent skill to use Chub using SKILL.md, and ideally prompting your agent to remember to use this skill. (If you are using Claude Code, create the directory ~/.claude/skills/get-api-docs and put SKILL.md there.)
Most of the time, it’s simple — search, fetch, use:
chub search "stripe payments" # find relevant docs
chub get stripe/api --lang js # fetch the doc
# Agent reads the doc, writes correct code. Done.
When the agent discovers a gap, it can annotate locally for next time:
chub annotate stripe/api "Needs raw body for webhook verification"
# Next session, chub get notes that an annotation exists. Pass --with-annotations
# to include it — annotations are treated as untrusted input by default.
Feedback flows back to authors — chub feedback stripe/api up or down — vote the docs up or down so they can get better for everyone over time.
Content Types
Versioned, language-specific. “What to know.”
chub get openai/chat --lang py # Python variant
chub get openai/chat --lang js # JavaScript variant
More content types than API documentation (such as agent skills) are on the roadmap.
Commands
| Command | Purpose |
|---|---|
chub search [query] |
Search docs and skills (no query = list all) |
chub get [--lang py|js] |
Fetch docs or skills by ID |
chub annotate |
Attach a note to a doc or skill |
chub annotate --clear |
Remove annotations |
chub annotate --list |
List all annotations |
chub feedback |
Upvote or downvote a doc (sent to maintainers) |
For the full list of commands, flags, and piping patterns, see the CLI Reference.
Self-Improving Agents
Context Hub is designed for a loop where agents get better over time.
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add andrewyng/context-hub