MCP HubMCP Hub
스킬 목록으로 돌아가기

karpathy-llm-wiki

Astro-Han
업데이트됨 5 days ago
1,033
142
1,033
GitHub에서 보기
메타aidesign

정보

이 스킬은 개발자가 개인용 LLM 기반 지식 베이스를 구축하고 유지할 수 있도록 도와주며, `raw/` 디렉토리에서 소스 자료를 관리하고 `wiki/`에 컴파일된 아티클을 보관합니다. 소스 수집, 지식 질의, 품질 린팅과 같은 작업을 수행하며, LLM이 위키를 작성 및 유지하고 인간은 읽고 질문한다는 원칙을 따릅니다.

빠른 설치

Claude Code

추천
기본
npx skills add Astro-Han/karpathy-llm-wiki -a claude-code
플러그인 명령대체
/plugin add https://github.com/Astro-Han/karpathy-llm-wiki
Git 클론대체
git clone https://github.com/Astro-Han/karpathy-llm-wiki.git ~/.claude/skills/karpathy-llm-wiki

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Karpathy LLM Wiki

Build and maintain a personal knowledge base using LLMs. You manage two directories: raw/ (immutable source material) and wiki/ (compiled knowledge articles). Sources go into raw/, you compile them into wiki articles, and the wiki compounds over time.

Core ideas from Karpathy:

  • "The LLM writes and maintains the wiki; the human reads and asks questions."
  • "The wiki is a persistent, compounding artifact."

Architecture

Three layers, all under the user's project root:

raw/ — Immutable source material. You read, never modify. Organized by topic subdirectories (e.g., raw/machine-learning/).

wiki/ — Compiled knowledge articles. You have full ownership. Organized by topic subdirectories, one level only: wiki/<topic>/<article>.md. Contains two special files:

  • wiki/index.md — Global index. One row per article, grouped by topic, with link + summary + Updated date.
  • wiki/log.md — Append-only operation log.

SKILL.md (this file) — Schema layer. Defines structure and workflow rules.

Templates live in references/ relative to this file. Read them when you need the exact format for raw files, articles, archive pages, or the index.

Initialization

Triggers only on the first Ingest. Check whether raw/ and wiki/ exist. Create only what is missing; never overwrite existing files:

  • raw/ directory (with .gitkeep)
  • wiki/ directory (with .gitkeep)
  • wiki/index.md — heading # Knowledge Base Index, empty body
  • wiki/log.md — heading # Wiki Log, empty body

If Query or Lint cannot find the wiki structure, tell the user: "Run an ingest first to initialize the wiki." Do not auto-create.


Ingest

Fetch a source into raw/, then compile it into wiki/. Always both steps, no exceptions.

Fetch (raw/)

  1. Get the source content using whatever web or file tools your environment provides. If nothing can reach the source, ask the user to paste it directly.

  2. Pick a topic directory. Check existing raw/ subdirectories first; reuse one if the topic is close enough. Create a new subdirectory only for genuinely distinct topics.

  3. Save as raw/<topic>/YYYY-MM-DD-descriptive-slug.md.

    • Slug from source title, kebab-case, max 60 characters.
    • Published date unknown → omit the date prefix from the file name (e.g., descriptive-slug.md). The metadata Published field still appears; set it to Unknown.
    • If a file with the same name already exists, append a numeric suffix (e.g., descriptive-slug-2.md).
    • Include metadata header: source URL, collected date, published date.
    • Preserve original text. Clean formatting noise. Do not rewrite opinions.

    See references/raw-template.md for the exact format.

Compile (wiki/)

Determine where the new content belongs:

  • Same core thesis as existing article → Merge into that article. Add the new source to Sources/Raw. Update affected sections.
  • New concept → Create a new article in the most relevant topic directory. Name the file after the concept, not the raw file.
  • Spans multiple topics → Place in the most relevant directory. Add See Also cross-references to related articles elsewhere.

These are not mutually exclusive. A single source may warrant merging into one article while also creating a separate article for a distinct concept it introduces. In all cases, check for factual conflicts: if the new source contradicts existing content, annotate the disagreement with source attribution. When merging, note the conflict within the merged article. When the conflicting content lives in separate articles, note it in both and cross-link them.

See references/article-template.md for article format. Key points:

  • Sources field: author, organization, or publication name + date, semicolon-separated.
  • Raw field: markdown links to raw/ files, semicolon-separated.
  • Relative paths from wiki/<topic>/ use ../../raw/<topic>/<file>.md (two levels up to project root).

Cascade Updates

After the primary article, check for ripple effects:

  1. Scan articles in the same topic directory for content affected by the new source.
  2. Scan wiki/index.md entries in other topics for articles covering related concepts.
  3. Update every article whose content is materially affected. Each updated file gets its Updated date refreshed.

Archive pages are never cascade-updated (they are point-in-time snapshots).

Post-Ingest

Update wiki/index.md: add or update entries for every touched article. When adding a new topic section, include a one-line description. The Updated date reflects when the article's knowledge content last changed, not the file system timestamp. See references/index-template.md for format.

Append to wiki/log.md:

## [YYYY-MM-DD] ingest | <primary article title>
- Updated: <cascade-updated article title>
- Updated: <another cascade-updated article title>

Omit - Updated: lines when no cascade updates occur.


Query

Search the wiki and answer questions. Examples of triggers:

  • "What do I know about X?"
  • "Summarize everything related to Y"
  • "Compare A and B based on my wiki"

Steps

  1. Read wiki/index.md to locate relevant articles.
  2. Read those articles and synthesize an answer.
  3. Prefer wiki content over your own training knowledge. Cite sources with markdown links: [Article Title](wiki/topic/article.md) (project-root-relative paths for in-conversation citations; within wiki/ files, use paths relative to the current file).
  4. Output the answer in the conversation. Do not write files unless asked.

Archiving

When the user explicitly asks to archive or save the answer to the wiki:

  1. Write the answer as a new wiki page. See references/archive-template.md. When converting conversation citations to the archive page, rewrite project-root-relative paths (e.g., wiki/topic/article.md) to file-relative paths (e.g., ../topic/article.md or article.md for same-directory).
    • Sources: markdown links to the wiki articles cited in the answer.
    • No Raw field (content does not come from raw/).
    • File name reflects the query topic, e.g., transformer-architectures-overview.md.
    • Place in the most relevant topic directory.
  2. Always create a new page. Never merge into existing articles (archive content is a synthesized answer, not raw material).
  3. Update wiki/index.md. Prefix the Summary with [Archived].
  4. Append to wiki/log.md:
    ## [YYYY-MM-DD] query | Archived: <page title>
    

Lint

Quality checks on the wiki. Two categories with different authority levels.

Deterministic Checks (auto-fix)

Fix these automatically:

Index consistency — compare wiki/index.md against actual wiki/ files (excluding index.md and log.md):

  • File exists but missing from index → add entry with (no summary) placeholder. For Updated, use the article's metadata Updated date if present; otherwise fall back to file's last modified date.
  • Index entry points to nonexistent file → mark as [MISSING] in the index. Do not delete the entry; let the user decide.

Internal links — for every markdown link in wiki/ article files (body text and Sources metadata), excluding Raw field links (validated by Raw references below) and excluding index.md/log.md (handled above):

  • Target does not exist → search wiki/ for a file with the same name elsewhere.
    • Exactly one match → fix the path.
    • Zero or multiple matches → report to the user.

Raw references — every link in a Raw field must point to an existing raw/ file:

  • Target does not exist → search raw/ for a file with the same name elsewhere.
    • Exactly one match → fix the path.
    • Zero or multiple matches → report to the user.

See Also — within each topic directory:

  • Add obviously missing cross-references between related articles.
  • Remove links to deleted files.

Heuristic Checks (report only)

These rely on your judgment. Report findings without auto-fixing:

  • Factual contradictions across articles
  • Outdated claims superseded by newer sources
  • Missing conflict annotations where sources disagree
  • Orphan pages with no inbound links from other wiki articles
  • Missing cross-topic references
  • Concepts frequently mentioned but lacking a dedicated page
  • Archive pages whose cited source articles have been substantially updated since archival

Post-Lint

Append to wiki/log.md:

## [YYYY-MM-DD] lint | <N> issues found, <M> auto-fixed

Conventions

  • Standard markdown with relative links throughout.
  • wiki/ supports one level of topic subdirectories only. No deeper nesting.
  • Today's date for log entries, Collected dates, and Archived dates. Updated dates reflect when the article's knowledge content last changed. Published dates come from the source (use Unknown when unavailable).
  • Inside wiki/ files, all markdown links use paths relative to the current file. In conversation output, use project-root-relative paths (e.g., wiki/topic/article.md).
  • Ingest updates both wiki/index.md and wiki/log.md. Archive (from Query) updates both. Lint updates wiki/log.md (and wiki/index.md only when auto-fixing index entries). Plain queries do not write any files.

GitHub 저장소

Astro-Han/karpathy-llm-wiki
경로: SKILL.md
0
agent-skillclaude-codecodexcursorkarpathyknowledge-base

연관 스킬

content-collections

메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기

polymarket

메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기

creating-opencode-plugins

메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기

sglang

메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기