/documentation:llm-wiki [init|ingest|query|lint|sync|export|qmd-index|lancedb-sync] [args]from documentation
Implements the Karpathy LLM Wiki pattern: compiles project docs (specs/ADRs/meeting notes) from wiki/raw/ into a cross-referenced markdown wiki. Supports init, ingest, query, lint, sync, export, qmd-index, lancedb-sync commands with hybrid search via qmd and optional LanceDB vector index.
Ships in documentation. 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.
참고: Karpathy LLM Wiki. 검색이 아닌 컴파일이 핵심 — 한 번 이해한 것은 계속 다듬어 재활용한다.
트리거: "위키 초기화", "wiki 초기화", "wiki ingest", "문서 wiki로 정리", "프로젝트 컨텍스트 위키", "llm wiki", "knowledge base 구축", "wiki query", "서드파티 소스 컴파일".
이 스킬은 워크스페이스 CLAUDE.md의 "LLM Wiki 활용 규칙"을 실제 실행 가능하게 한다.
프로젝트 루트에 init 명령으로 생성되는 구조:
wiki/
├── index.md # 자동 재빌드 (수동 편집 금지)
├── log.md # ingest 이력
├── raw/ # 원본 소스 드롭존 (불변)
│ └── YYYY-MM-DD_{source}.md
├── {page}.md # 컴파일된 위키 페이지 ([[wiki-link]] 교차참조)
├── .gitignore # raw/private/, .lancedb/ 기본 제외
└── .lancedb/ # 선택적 벡터 인덱스 (lancedb-sync 시)
프로젝트 루트 CLAUDE.md에는 "LLM Wiki 활용 규칙" 블록이 init 시 자동 추가된다.
---
title: "Rate Limiter Design"
type: decision # concept | decision | entity | meeting | policy | comparison
tags: [api, reliability]
status: active # draft | active | stale | archived
confidence: high # high | medium | low | tentative
created: 2026-04-19
updated: 2026-04-19
sources: [raw/2026-04-18_arch-review.md]
---
상세는 page-templates.md 참조.
init — 구조 초기화실행: scripts/init.sh [project-root]
wiki/ 디렉토리 구조 생성 (raw/ 포함)wiki/index.md, log.md, .gitignore 초기 파일CLAUDE.md에 LLM Wiki 블록 추가 (claude-md-block.md)ingest <source> — 소스 컴파일실행: LLM 주도 워크플로 (스크립트 없음)
상세 5단계: ingest-workflow.md
raw/에 드롭된 파일 또는 인자 경로)log.md에 기록페이지 유형 선택은 page-templates.md 6종(concept/decision/entity/meeting/policy/comparison) 참조.
query <질문> — 위키 검색qmd 감지 시 (하이브리드 검색):
qmd query "<질문>" 호출[[wiki-link]]로 출처 인용qmd 미감지 시 (graceful degrade — INDEX.md 라우팅):
wiki/index.md 읽어 관련 페이지 후보 3-5개 식별[[link]] 2-hop 확장brew install qmd" 안내 첨부qmd 설정·MCP 연동: qmd-integration.md.
lint — 건강 점검실행: scripts/lint_wiki.py [--wiki-dir PATH]
검사 항목:
[[wiki-link]]title, updated)confidence: low 또는 tentative 페이지 플래그Exit code: 0 = clean, 1 = issues found.
sync — index.md 재빌드실행: scripts/sync_index.py [--wiki-dir PATH]
wiki/*.md 스캔 → frontmatter type 별로 그룹화 → index.md 재생성. 수동 편집은 덮어씌워지므로 index에는 내용을 쓰지 말 것.
export <template> — 템플릿 출력실행: LLM 주도 워크플로
지원 템플릿:
onboarding — 신규 팀원 온보딩 가이드adr-summary — decision 유형 페이지 목록 + 요약release-notes — 지정 기간의 변경 페이지 요약qa-export — 축적된 지식을 별도 Q&A 문서로qmd-index — qmd 인덱스 (선택)실행: scripts/qmd_index.sh [wiki-dir]
qmd 설치 전제. 없으면 설치 안내 후 exit 1:
brew install qmdnpm install -g @tobilu/qmd내부적으로 qmd index wiki/ + qmd context add 실행. Claude Code MCP 통합은 qmd-integration.md.
lancedb-sync — LanceDB 벡터 인덱스 (선택)실행: scripts/lancedb_sync.py [--wiki-dir PATH] [--model MODEL]
Phase 3 옵션. pip install lancedb duckdb sentence-transformers 전제. 없으면 설치 안내 후 exit 1.
상세·SQL 쿼리 예·Embedding Atlas 연결: lancedb-integration.md.
query는 항상 작동 (qmd 있으면 하이브리드, 없으면 INDEX.md 라우팅으로 degrade)qmd-index, lancedb-sync)은 의존성 없으면 설치 안내 + exit 1init은 환경 감지만 할 뿐 종료 코드에 영향 없음intent: INTENT.md 변경 시 wiki/raw/로 복사 후 ingest → Why/What/Not이 decision·entity 페이지로 분해 (의도 변경 이유는 git log INTENT.md 커밋 메시지에서 추출).wiki/를 Obsidian vault로 열면:
[[wiki-link]] 네이티브 네비게이션raw/는 LLM이 수정하지 않음 (read-only for wiki purposes)wiki/*.md는 LLM이 증분 갱신 (컴파일)원본 설계 결정 기록: karpathy-pattern.md.
wiki/index.md 수동 편집 (sync에 덮어씌워짐 — 내용은 페이지에)wiki/raw/의 원본 수정 (불변 원칙 위반 — 새 버전을 새 파일로 드롭)[[link]] 호환성 저하 — slug는 영어/하이픈 권장)lint 미실행 상태로 장기 방치 (고아·끊어진 링크 누적)references/claude-md-block.md (opens in a new tab)references/ingest-workflow.md (opens in a new tab)references/karpathy-pattern.md (opens in a new tab)references/lancedb-integration.md (opens in a new tab)references/page-templates.md (opens in a new tab)references/qmd-integration.md (opens in a new tab)scripts/init.sh (opens in a new tab)scripts/lancedb_sync.py (opens in a new tab)scripts/lint_wiki.py (opens in a new tab)scripts/qmd_index.sh (opens in a new tab)scripts/sync_index.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub roboco-io/plugins --plugin documentationOther plugins' skills for the same job