Optimization get-api-docs
외부 SDK/라이브러리 공식 문서를 직접 조회하여 hallucination을 방지한다. context-hub 방식으로 최신 API 시그니처를 가져온다.
install
source · Clone the upstream repo
git clone https://github.com/sunLeee/optimization
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sunLeee/optimization "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/reference/adk/get-api-docs" ~/.claude/skills/sunleee-optimization-get-api-docs && rm -rf "$T"
manifest:
.claude/skills/reference/adk/get-api-docs/SKILL.mdsource content
get-api-docs
외부 SDK/라이브러리 사용 전 공식 문서를 조회하여 hallucination을 방지한다. context-hub(Andrew Ng, 2026) 방식에서 영감을 받아, 로컬 document-specialist agent가 공식 docs를 직접 읽어온다.
동작 방식
- 인자로 패키지명 수신 (예:
,fastapi
,pydantic
)google-adk
agent에게 공식 docs URL 전달document-specialist- 핵심 API 시그니처 + 예제 추출
에 저장.omc/research/{library}-api-docs.md- 이후 구현 시 해당 파일을 컨텍스트로 참조
사용법
/get-api-docs fastapi /get-api-docs "google.adk.agents" /get-api-docs pydantic --version 2.0
Gotchas
- 내부망 환경에서 PyPI JSON API 직접 호출 실패 시: 공식 docs URL을 수동으로 지정
agent가 없는 경우:document-specialist
로 직접 조회WebFetch- 캐시된 결과는
에 저장되므로 재실행 시 재사용 가능.omc/research/ - 항상
로 먼저 시도 → 실패 시document-specialist
fallbackWebFetch
레퍼런스
- context-hub (Andrew Ng): https://github.com/andrewyng/context-hub
- ADR-042: .claude/docs/adr/ADR-042-context-hub-api-docs.md