/kci-citation-network:kci-citation-networkfrom kci-citation-network
Collects a citation network from the KCI (Korean Citation Index) OpenAPI using a keyword seed, producing nodes/edges JSONL. Optionally renders into Obsidian notes. Useful for Korean humanities citation analysis where OpenAlex has no coverage.
Ships in kci-citation-network. 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.
Read when SKILL.md points to them; scripts run unread.
nodes.jsonl·edges.jsonl이 쓰였고, 같은 인자로 재실행해도 노드가 사라지거나 중복되지 않는다(체크포인트가 이어 받는다). API 오류로 받지 못한 논문은 완료로 기록되지 않는다.--vault): 이 스킬이 만들지 않은 노트는 덮어쓰지 않고, 자동 구역 앞뒤의 수동 메모는 보존되며, 생성 노트의 frontmatter는 유효한 YAML이다.tests/test_kci_citation_collect.py·tests/test_kci_graph_to_wiki.py다.Korean humanities citation data is not in OpenAlex (verified: Korean journal articles return referenced_works=0, cited_by_count=0). The working source is the 한국연구재단 KCI 참고문헌 서비스 on data.go.kr. This skill collects references via that API and renders a citation network into an Obsidian vault — the Korean-humanities equivalent of the Zotero Citation-Network tool, but keyed on KCI IDs instead of DOIs.
Verified reality (2026-07): ~25% of a Korean humanities paper's references carry REFE_BIBL_ARTI_ID (an exact KCI-article join key → direct citation edge, no fuzzy matching). The rest are 문집·단행본·해외·학위논문 (not KCI-indexed) and stay as text references. A focused corpus (one author/topic) yields a dense connected network; a broad sample yields a sparse one.
The reference endpoint is refInfo/openApiM320List — prefix M, not D. The D-prefix operations are traps:
openApiD272List (OA학술지-참고문헌): OA full-text 반입 논문 전용 → empty for 한문학/국어학.openApiD321List (KCI참고문헌공동저자): partial author subset only (0–10 refs).openApiM320List (KCI참고문헌): full reference list with TITL, CRET_NM, PUBI_YR, and REFE_BIBL_ARTI_ID.Params: serviceKey, pageNo, recordCnt (max 100 — larger is rejected), artiId. Response is XML.
KCI_DATA_GO_KR_KEY_DECODING environment variable, or put it in a .env file in your working directory. Scripts never print the key.scripts/kci_citation_collect.py(수집), scripts/kci_search.py(키워드 씨앗 검색), scripts/kci_graph_to_wiki.py(Obsidian 렌더 — 선택).--vault 인자로만 연결되고(렌더를 건너뛰면 JSONL만 남음), LLM 호출은 어디에도 없다. 고급: 자체 수집 파이프라인이 있으면 KCI_INGEST_DIR 환경변수로 그쪽 검색기를 우선시킬 수 있다(없으면 동봉 kci_search 사용).사용자가 “「운양 김윤식」으로 인용망 수집해줘”처럼 키워드만 지정하면, 이 스킬이 아래 1→2를
대신 실행한다: --query로 씨앗을 모으고, 제목 목록을 보여 동명이인·무관 논문을 걸러
확인받은 뒤 수집한다. 비대화형이면 씨앗 후보 목록만 산출하고 수집은 하지 않는다. 키가 없으면 발급 절차(위 Prerequisites)를 안내하고 종료한다.
Run from any working directory — outputs land under --out-dir (cwd-relative). ${SKILL_DIR} below means this skill's directory. (macOS/Linux에서는 py -3 대신 python3.)
# 0단계: 씨앗 후보 미리보기 — 키 불필요, 수집 안 함. 무관·동명이인 행을 지워 seeds.tsv로 저장
py -3 ${SKILL_DIR}/scripts/kci_citation_collect.py --query "운양 김윤식" --max 40 --preview
# 검색어로 씨앗 자동 수집 — 동봉 kci_search가 처리, 추가 설치 불필요
py -3 ${SKILL_DIR}/scripts/kci_citation_collect.py --query "운양 김윤식" --max 40 --out-dir out/kys
# 또는 큐레이션한 artiId 목록(줄당 "ARTID<탭>제목<탭>연도")
py -3 ${SKILL_DIR}/scripts/kci_citation_collect.py --arti-ids seeds.tsv --out-dir out/kys
# 스노볼: 인용된 KCI 논문도 노드로 1홉 확장
py -3 ${SKILL_DIR}/scripts/kci_citation_collect.py --query "운양 김윤식" --snowball --out-dir out/kys
실측(2026-08-26): --query "운양 김윤식" --max 3 → 3편 처리, 노드 17·엣지 14,
직접인용률 26.4% — 아래 「~25%」 서술과 일치.
Outputs out/kys/{nodes,edges,refs}.jsonl + collect.seen (checkpoint/resume). 100건↑는 나눠 실행.
--snowball의 확장 깊이는 --max-depth(기본 1 = 위 주석의 1홉)로 정한다. 씨앗이 깊이 0, 씨앗의 참고문헌이 1이며, 상한을 넘은 논문도 노드·엣지로는 남고 그 논문의 참고문헌만 캐지 않는다. 몇 건이 그렇게 멈췄는지 실행 끝에 보고한다.nodes.jsonl을 먼저 복원해 병합한다. 지난 실행에서 발견한 피인용 노드가 유지되며, 복원 건수를 실행 시작에 보고한다.resultCode 오류·중간 페이지 누락은 예외로 올라가 그 논문이 collect.seen에 들어가지 않으므로, 키·네트워크를 고친 뒤 같은 명령을 다시 돌리면 그 논문부터 재시도한다. 실패 건수도 끝에 보고한다.씨앗 검색의 robots 고지: KCI robots.txt는 전면 Disallow라 씨앗 검색(kci_search)은
respect_robots=False로 동작한다(수집 본체는 data.go.kr 공식 API라 무관). 요청 간격을
지키는 소규모 개인 연구 전제이며 판단·책임은 사용자에게 있다.
Disambiguation matters. --query uses KCI KEYALL and over-matches (e.g. “김윤식” hits both 雲養 金允植 1835 and 국문학자 김윤식 1936). Review titles and curate a seed TSV for a clean set.
py -3 ${SKILL_DIR}/scripts/kci_graph_to_wiki.py --in-dir out/kys \
--vault "<vault-root>" --folder "wiki/인용망/운양김윤식" --seeds-only
--seeds-only: 씨앗 논문만 노드로 (피인용된 외부 KCI 논문 제외) → 깨끗한 코어 인용망. 생략 시 인용된 KCI 논문까지 노드(스노볼형).[[wikilinks]] for 인용/피인용. Auto region is between <!-- KCI-AUTO --> markers; manual 메모 both above and below that region is preserved on re-run.--folder if you want the generated note.wiki/ (never references/, writing/, highlights/).Obsidian Graph View → filter path:"인용망/..." to see the citation network. Foundational papers surface as high-in-degree hubs. If your vault has a search/embedding index (e.g. qmd), re-index after the write — wiki 노트가 새로 생겼기 때문이다.
이 스킬의 scripts/ 3종이 canonical이다. <corpus-pipeline>/scripts/의 동명 파일(collect·graph_to_wiki)은 파이프라인 통합용 사본이며, 로직을 고칠 때는 여기를 먼저 고치고 그쪽에 반영한다. kci_search.py는 kci_ingest의 검색 계층 발췌(분기: 한자 감지를 문자클래스에서 코드포인트 판별로 교체 — 확장 B 커버, CJK 계약 준수).
hanmun-research-assistant (front door) → academic-research-workflow (연구사·심사). 같은 슈트의 portable·share 스킬: kci-korean-studies-trends (연도×분야 동향 보고 — 2026-08-26 portable 승격, 단독 공유본 있음).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hw725/korean-humanities --plugin kci-citation-networkOther plugins' skills for the same job