mcpField
K
karpathy-llm-wiki

karpathy-llm-wiki

github.com/learnprompt生産性118133 回インストール16 週間前に更新
リポジトリ

karpathy-llm-wiki について

karpathy-llm-wikiは、研究資料、記事、メモ、チャットログから個人用ナレッジベースを整えるスキルとワークフローです。LLMでMarkdownページを編集・相互リンクし、重複や矛盾を確認してダイジェストを作成します。

主な機能

  1. 01複数の情報源から資料を取り込む
  2. 02エンティティページを編集・更新
  3. 03重複や矛盾を検出
  4. 04関連する文脈を使ってWikiを検索
  5. 05週次ダイジェストを生成

活用シーン

  1. 01週ごとの読書リストをWikiに整理
  2. 02関連ページ間の主張の食い違いを確認
  3. 03研究資料に基づくリンク付きメモを管理
  4. 04新しい資料の週次まとめを作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/learnprompt/andrej-karpathy-skills --skill karpathy-llm-wiki

インストール後、Claude Code で/karpathy-llm-wikiを入力して読み込まれたか確認します。

詳細

スキル 2:LLM Wiki / 個人用ナレッジベース(LLM ナレッジベース)

出典:https://x.com/karpathy/status/2039805659525644595 | https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f 「59k いいね — LLM ナレッジベース」— いいね数トップ 2 の投稿

基本原則

あなたが探索し、LLM が管理します。

あなたは世界を読み、未加工の情報を記録します。LLM はそれらをまとめ、相互リンクを付け、重複を排除し、リンターでチェックし、矛盾を見つけ出します。Obsidian ボルトは入力ではなく、出力です。

アーキテクチャ

RAW INPUTS                 LLM LAYER                  OUTPUT
──────────                 ─────────                  ──────
Papers (PDF/arXiv)  ──→   ingest.py              ──→  entities/*.md
Articles (URL)      ──→   compile_wiki.py        ──→  index.md
Chat logs           ──→   lint_wiki.py           ──→  contradiction_log.md
Notes (voice/text)  ──→   query_wiki.py          ──→  slides/
                          update_entity.py       ──→  weekly_digest.md

5 つの基本プロンプト

1. 取り込みプロンプト
You are a knowledge compiler. Given this raw source:

[PASTE RAW CONTENT]

Source URL/title: [SOURCE]
Date: [DATE]

Extract and output:
1. Key entities (people, concepts, tools, papers) — one per line with a 2-sentence description
2. Key claims with confidence level (high/medium/speculative)
3. Connections to existing topics: [LIST YOUR KNOWN TOPICS]
4. Contradictions with anything you know: [WHAT YOU ALREADY BELIEVE]
5. Suggested entity page updates (format: ENTITY_NAME | UPDATE_TEXT)
2. Wiki エントリーの編集プロンプト
You are maintaining a personal knowledge wiki. Update the entity page for [ENTITY_NAME].

Existing page content:
[CURRENT_PAGE_CONTENT]

New information to integrate:
[NEW_INFO]

Rules:
- Preserve all existing information; only add or correct
- Flag contradictions with: ⚠️ CONFLICT: [old claim] vs [new claim]
- Keep the page under 500 words
- End with: "Last updated: [DATE] | Sources: [LINKS]"
3. 週次取り込みプロンプト(毎週実行)
Process this week's reading list:
[PASTE 5-10 ITEMS: title + URL + 1-sentence summary]

For each item:
1. Extract top 3 entities to update
2. List 2-3 key claims worth adding to wiki
3. Note any contradictions with existing knowledge
4. Suggest connections to other entities in my wiki

Output as structured markdown, one section per item.
4. リント/矛盾チェックプロンプト
Review these wiki entries for consistency:

[PASTE 3-5 RELATED ENTITY PAGES]

Find and report:
1. Factual contradictions between pages
2. Duplicate information that should be merged
3. Outdated claims that should be flagged
4. Missing cross-links between related entities

Format: ISSUE | PAGE | LINE | SUGGESTED FIX
5. クエリプロンプト
Search my personal knowledge wiki to answer this question:

Question: [QUESTION]

Wiki context:
[PASTE RELEVANT PAGES]

Answer with:
1. Direct answer (2-3 sentences)
2. Supporting evidence from wiki (with page citations)
3. Gaps: what I don't know yet
4. Suggested reading to fill gaps

メモリ/コンテキストの衛生管理(汚染防止ルール)

Karpathy は、LLM のメモリが「頑張りすぎる」と指摘しました。2 か月前の質問が、今後のすべての会話に悪影響を与える可能性があります。これを防ぐ方法は次のとおりです。

  • ナレッジに LLM 内蔵メモリを決して頼らず、代わりに Wiki を使います
  • 新しいトピックでは新しいセッションを開始し、古いコンテキストを引き継がないようにします
  • 明示的にリセットします:長いセッションを続ける場合は、「X に関する以前のコンテキストはすべて無視してください」と最初に伝えます
  • Wiki のバージョンを管理します:Wiki の変更を git でコミットし、変更内容を比較できるようにします

フォルダー構成(Obsidian 互換)

wiki/
├── entities/
│   ├── people/
│   │   └── andrej-karpathy.md
│   ├── concepts/
│   │   ├── agentic-engineering.md
│   │   └── llm-simulator.md
│   └── tools/
│       └── claude.md
├── index.md              ← master entity list, auto-updated
├── contradiction_log.md  ← conflicts to resolve
├── weekly_digest/
│   └── 2026-W21.md
└── raw/                  ← source dumps before compilation

週次の運用サイクル

Monday:    Dump week's reads into raw/
Tuesday:   Run ingest prompt on each item
Wednesday: Run lint/contradiction check
Thursday:  Update entity pages
Friday:    Generate weekly_digest.md with LLM

ワークフロー

ワークフローに属するもの:研究から公開まで(コンテンツクリエイター/研究者)

位置上流下流
ステップ 2karpathy-autoresearch(研究成果から未加工の素材を作成)karpathy-output-evolution(知識を公開可能な形式に変換)

全体の流れ:autoresearch → llm-wiki → output-evolution → education-first

月次振り返りワークフローでも、振り返りの結論を永続化するために使います。

プロンプトの契約

Maintain this as an LLM wiki. From the new sources provided, update existing Markdown pages, create only necessary new pages, preserve all citations and source links, flag any contradictions with existing knowledge, and output a structured change log showing: pages updated, new pages created, contradictions found, and open questions.

確認チェックリスト

  • 元の情報源(raw sources)は変更されない状態で保たれている
  • 各 Wiki ページに出典リンクがある
  • 矛盾は明示的に記録されている(黙って上書きされていない)
  • changelog に今回の更新内容がすべて記録されている
  • 不要な新規ページが作成されていない(既存ページの更新を優先する)
  • index ページからすべての項目に移動できる

コメント