jpskill.com
✍️ ライティング コミュニティ

get-api-docs

Use this skill to get documentation for third-party APIs, SDKs or libraries before writing code that uses them to ensure you have the latest, most accurate documentation. This is a better way to find documentation than doing web search. This includes when a user asks for tasks like "use the OpenAI API", "call the Stripe API", "use the Anthropic SDK", "query Pinecone", or any other time the user asks you to write code against an external service and you need current API reference. Fetch the docs with chub before answering, rather than relying on your pre-trained knowledge, which may be outdated because of recent changes to these APIs. Be sure to use this skill when the user asks for the latest docs, latest API behavior, or explicitly mentions chub or Context Hub. Ensure `chub` is available, run `chub --help`, then follow the instructions there.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o get-api-docs.zip https://jpskill.com/download/22412.zip && unzip -o get-api-docs.zip && rm get-api-docs.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22412.zip -OutFile "$d\get-api-docs.zip"; Expand-Archive "$d\get-api-docs.zip" -DestinationPath $d -Force; ri "$d\get-api-docs.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して get-api-docs.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → get-api-docs フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] get-api-docs

chub を介して API ドキュメントを取得する

ライブラリや API のドキュメントが必要な場合は、トレーニングデータから推測するのではなく、chub CLI を使用して取得してください。これにより、最新かつ正確な API を入手できます。

ステップ 1 - chub が存在することを確認し、使用するための最新の手順を取得する

以下を実行します。

chub --help

これにより、chub が存在しないというエラーが表示された場合は、まずインストールしてから再度実行してください。環境に node、npm、ネットワークアクセス、およびパッケージマネージャーの権限がある場合は、次のようにインストールします。

npm
install -g @aisuite/chub

ステップ 2 — 適切なドキュメントを見つける

競合がある場合は、chub --help の出力からの指示に従ってください。それが最新のガイダンスになります。ただし、適切なドキュメントを検索するための主要なコマンドは chub search です。

chub search "<keywords>" --json

結果から最適な id を選択します(例: openai/chatanthropic/sdkstripe/api)。何も一致しない場合は、より広範な用語を試してください。

ステップ 3 — ドキュメントを取得する

繰り返しになりますが、競合がある場合は、この代わりに chub --help からの最新の指示に従ってください。しかし、関連するドキュメントを取得するための主要なコマンドは次のとおりです。

chub get <id> --lang py    # または --lang js, --lang ts

--lang パラメータを含めることを忘れないでください。

ステップ 4 — ドキュメントを使用し、フィードバックを残す

取得したコンテンツを読み、それを使用して正確なコードを作成したり、質問に答えたりしてください。記憶している API の形状に頼らず、ドキュメントに書かれていることを使用してください。

最後に、タスクを完了した後、ドキュメントに記載されていないこと(落とし穴、回避策、バージョン固有の癖、プロジェクト固有の詳細など)を発見した場合は、将来のセッションがよりスマートに開始されるように保存してください。

chub annotate <id> "Webhook verification requires raw body — do not parse before verifying"

アノテーションはローカルに保存され、セッション間で永続化され、将来の chub get 呼び出しで自動的に表示されます。メモは簡潔で実用的なものにしてください。ドキュメントにすでに記載されていることを繰り返さないでください。

さらに、すべての開発者を支援するために、chub --help の指示に従って chub feedback を使用してドキュメントに関するフィードバックを提供してください。フィードバックコメントには、秘密情報、ソースコード、プライベートなアーキテクチャの詳細、またはその他の機密情報を含めないでください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Get API Docs via chub

When you need documentation for a library or API, fetch it with the chub CLI rather than guessing from training data. This gives you the current, correct API.

Step 1 - Ensure chub exists and get the latest instructions for using it

Run

chub --help

If this results in an error showing that chub does not exist, then install it first, and run it again. If the environment has node, npm, network access, and package-manager permission, install it as follows:

npm install -g @aisuite/chub

Step 2 — Find the right documents

If there is a conflict, follow the instructions from the output of chub --help since that will be the latest guidance. However, a key command for searching for the right documentation is chub search:

chub search "<keywords>" --json

Pick the best-matching id from the results (e.g. openai/chat, anthropic/sdk, stripe/api). If nothing matches, try some broader terms.

Step 3 — Fetch the docs

Again, follow the latest instructions from chub --help instead of this if there is a conflict. But a key command for fetching the relevant docs is:

chub get <id> --lang py    # or --lang js, --lang ts

Remember to include the --lang parameter.

Step 4 — Use the docs and leave feedback

Read the fetched content and use it to write accurate code or answer the question. Do not rely on memorized API shapes — use what the docs say.

Finally, after completing the task, if you discovered something not in the doc — a gotcha, workaround, version quirk, or project-specific detail — save it so future sessions start smarter:

chub annotate <id> "Webhook verification requires raw body — do not parse before verifying"

Annotations are local, persist across sessions, and appear automatically on future chub get calls. Keep notes concise and actionable. Don't repeat what's already in the doc.

Additionally, to help all developers, give feedback on the documentation using chub feedback, following the instructions in chub --help . Do not include secrets, source code, private architecture details, or other sensitive information in feedback comments.