get-api-docs
하는 일
이 스킬은 chub 도구를 사용해 소프트웨어 라이브러리와 온라인 서비스의 최신 문서를 가져옵니다. AI에게 API나 SDK를 쓰는 코드를 요청하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓OpenAI나 Stripe 같은 API를 사용하라고 AI에게 요청할 때.
- ✓특정 SDK나 라이브러리를 쓰는 코드를 요청할 때.
- ✓일반 웹 검색 대신 에이전트가 최신 문서를 확인하기를 원할 때.
스킬 링크
https://github.com/andrewyng/context-hub/blob/main/cli/skills/get-api-docs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Stripe API를 사용해 결제 링크를 만드는 코드를 작성하고 싶어요. 최신 문서를 참고해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 chub 도구를 설치하거나 실행하고, 맞는 문서를 검색한 뒤, 코드를 쓰기 전에 문서를 읽습니다. 사용한 문서에 대한 피드백을 남길 수도 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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.
자주 묻는 질문
설치해야 할 것이 있나요?
에이전트가 chub 도구를 확인하고, 없고 설정이 허용하면 설치합니다.
일반 웹 검색보다 나은가요?
스킬은 일반 웹 검색보다 더 정확하고 최신인 문서를 찾는다고 설명합니다.
어떤 언어의 문서를 가져올 수 있나요?
선택한 언어에 따라 Python, JavaScript, TypeScript 문서를 가져올 수 있습니다.
상세 정보
작성자의 원본 설명
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
repo: andrewyng/context-hub
인기도
- GitHub 스타
- 14k
- 순위
- #11268
- 라이선스
- MIT
- 업데이트
- 2026. 5. 31.
댓글
- …
이 저장소의 다른 스킬
bloc-cubit
14k에이전트에게 Flutter 앱의 상태를 Bloc이나 Cubit으로 관리하는 방법을 가르칩니다. 각 도구를 고르는 기준과 테스트용 기본값을 포함합니다.
riverpod
14k에이전트가 Riverpod으로 Flutter 앱의 상태를 관리하도록 가르칩니다. 프로바이더, 비동기 데이터, 테스트를 다룹니다.
document-extraction
14k에이전트가 PDF, 이미지, 스프레드시트를 읽어 깨끗한 텍스트로 바꾸고, LandingAI ADE 서비스로 송장 합계 같은 항목을 뽑아내도록 돕습니다.
document-workflows
14k에이전트가 많은 문서를 일괄 처리하고, 검색용으로 준비하며, 결과를 데이터베이스에 넣는 파이프라인을 만들도록 돕습니다.