/api-learn:api-learn <library-name>from api-learn
Internalize project-domain APIs — collect official docs + examples for a given library/framework, store them in the project's .claude/references/, and register them in CLAUDE.md as the Knowledge Authority. Use for requests like "API 학습", "api learn", "문서 내재화", "레퍼런스 수집", "라이브러리 학습", "API 문서 저장", "api-learn", "문서 수집", "내재화", "internalize", "learn api", "react-query 문서", "zod 학습", "라이브러리 문서화".
Ships in api-learn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Collect and refine the official documentation for libraries/frameworks used in a project, and store it as reference documents inside the project.
Respond to the user in Korean.
Before collecting, determine whether the target library is a first-party Apple framework.
Criteria for an Apple framework:
Package.swift, Podfile, *.xcodeproj, or *.xcworkspace, identifying it as an Apple projectBased on the result:
Scope policy: This skill internalizes external official docs only. It does not collect or document local code usage patterns — if you need code-usage analysis, use a separate tool (e.g.
Grep,apple-review).
Run sequentially for the <library-name> passed as the argument:
Run only when Phase 0 identified an Apple framework.
{library} with mcp__xcode__DocumentationSearchRun only when Phase 0 identified an Apple framework.
**/apple-craft/skills/apple-craft/references/_index.md with Glob_index.md to find reference files related to the target libraryapple-craft reference)common-mistakes.md to collect anti-pattern info for the libraryresolve-library-idquery-docs (topic: per major API, tokens: max)WebSearchWebFetch:
If the Codex skill is available, use /codex:rescue to collect additional docs in parallel with Step 1~2.
codex:codex-rescue subagent in the background (read-only, without --write):
/codex:resultcodex-research to sourcessources: - codex-research: "{topic}"Guardrail: For Apple frameworks, Xcode DocumentationSearch + apple-craft references take priority over Codex. If a Codex result conflicts with the Xcode docs, adopt the Xcode docs. If the Codex skill is not installed, skip this step.
Refine the collected raw data into a single Markdown file in the format below.
{project}/.claude/references/{library}.md---
library: {library-name}
version: {detected-version}
collected: "{YYYY-MM-DD}"
sources:
- xcode-docs (Apple 프레임워크, DocumentationSearch 사용된 경우)
- apple-craft-ref: "{참조파일명}" (apple-craft 참조 사용된 경우)
- context7 (사용된 경우)
- web: "{공식문서URL}" (사용된 경우)
- codex-research: "{topic}" (Codex 사용된 경우)
---
# {Library Display Name}
## Overview
[라이브러리 소개: 목적, 핵심 컨셉, 언제 사용하는지]
## Core APIs
### {API 1}
**시그니처:**
[함수/클래스/훅 시그니처]
**파라미터:**
[각 파라미터 설명]
**반환값:**
[반환 타입 및 설명]
**예제:**
[공식 문서 예제 코드]
### {API 2}
[동일 구조 반복]
## Common Pitfalls & Migration Notes
[주의사항, 흔한 실수, 버전별 주요 변경점]
## Source URLs
- [각 출처 URL 나열]
Collection depth: comprehensive — target 500~2000 lines per file. Include the core content of the official docs without omission.
Version detection: Extract the version from the project's dependency files (package.json, Podfile, requirements.txt, etc.). For first-party Apple frameworks, record the minimum deployment target or Xcode version (e.g. "iOS 18+", "Xcode 26"). If undetectable, record "unknown".
_index.md updateIf .claude/references/_index.md does not exist, create it; if it exists, add/update the row for the library:
---
project: {project-name from nearest package.json/Package.swift/etc or directory name}
scan_date: "{YYYY-MM-DD}"
doc_count: {총 문서 수}
---
# API References Index
| Library | Version | Collected | Lines | Sources |
|---------|---------|-----------|-------|---------|
| {library} | {version} | {date} | {lines} | {sources} |
Check the project root CLAUDE.md:
Block to add:
## API References (.claude/references/)
아래 라이브러리 작업 시 해당 참조 문서를 학습 데이터보다 우선하세요.
목록: .claude/references/_index.md 참조
- 모르는 API → 참조 문서에서 먼저 검색
- 참조 문서와 학습 데이터 충돌 시 → 참조 문서 우선
- 참조 문서에 없는 경우 → context7 또는 웹 검색 폴백
If .claude/references/{library}.md already exists:
_index.mdRun only when a .wiki/ directory exists in the project:
.wiki/index.md for whether a wiki page exists for the library/wiki-ingest .claude/references/{library}.md
source_kind: api-learn, authority_path: .claude/references/{library}.mdLoose Coupling principle: api-learn works fully standalone even without
.wiki/. Wiki sync is purely a proposal; if.wiki/is absent, this phase is skipped silently.
After collection completes, report the following:
.wiki/ exists)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub oozoofrog/oozoofrog-plugins --plugin api-learn2 skills in this plugin