Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

llm-wiki

/llm-wiki

Buduje i utrzymuje katalog wiki, który agent czyta zamiast ponownie przetwarzać surowe dokumenty w każdej sesji, z wyłączeniem kodu źródłowego.

Repozytorium
context_forge ↗
Licencja
MIT
Ostatnia zmiana repozytorium
06.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 06.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Buduje i utrzymuje katalog wiki, który agent czyta zamiast ponownie przetwarzać surowe dokumenty w każdej sesji, z wyłączeniem kodu źródłowego.

Wyzwalacze z opisu

build a wikistop re-reading docs every session
Oryginalny opis (EN)

Build and maintain a wiki/ the agent reads instead of re-ingesting raw docs. Use for "build a wiki", "stop re-reading docs every session". Not for source code.

Jak działa

  1. Architecture
  2. Setup
  3. Operations
  4. Measuring the Saving
  5. When NOT to Build a Wiki
  6. Integration with contextforge
  7. Additional Resources
Sekcje z nagłówków SKILL.md, w oryginale · 134 linii, 631 słów
Podgląd SKILL.md
---
name: llm-wiki
description: Build and maintain a wiki/ the agent reads instead of re-ingesting raw docs. Use for "build a wiki", "stop re-reading docs every session". Not for source code.
---

# LLM Wiki

Build and maintain a persistent wiki Claude can reference instead of re-ingesting raw documents each session. Derived from Karpathy's LLM Wiki pattern.

**Why it works:** Raw docs reloaded every session = wasted tokens. A wiki page is a distilled artifact: a few hundred words read instead of the whole source, every session it is needed.

## Architecture

```
raw-sources/   (immutable originals)
  └── docs, PDFs, changelogs, README files

wiki/          (LLM-maintained markdown pages)
  ├── index.md        ← content catalog
  ├── log.md          ← append-only ingest/query log
  └── [topic].md      ← one page per concept

CLAUDE.md / AGENTS.md / GEMINI.md   (tells the agent: "reference wiki/ instead of raw-sources/")
```

## Setup

Create wiki directory at project root:

```bash
mkdir -p wiki
printf '# Wiki Index\n\n## Pages\n' > wiki/index.md
printf '# Ingest Log\n' > wiki/log.md
```

Add to the agent instruction file (`CLAUDE.md`, `AGENTS.md` for Codex, `GEMINI.md` for Gemini CLI):

```markdown
## Knowledge Base
Wiki at `wiki/`. Reference wiki pages instead of raw source files.
Do not re-read raw docs unless wiki page is missing or stale.
```

## Operations

### Ingest: Add New Source to Wiki

When user provides a doc, URL, or file to ingest:

1. Read the source
2. Identify 3-5 key concepts worth persisting
   — if the source is smaller than the wiki page would be (a short README,
   a config file), skip it: re-reading it is cheaper than maintaining a copy
3. Create or update `wiki/[topic].md` per concept (one page per topic)
4. Update `wiki/index.md` with new pages
5. Append to `wiki/log.md`: `[DATE] INGEST: [source] → [pages updated]`

Per wiki page format:
```markdown
# [Topic]
_Last updated: [DATE] | Source: [origin]_

## Summary
[2-3 sentence distillation]

## Key Points
- [point 1]
- [point 2]

## Related
- [[other-wiki-page]]
```

### Query: Answer from Wiki

When user asks a question:

1. Search `wiki/index.md` for relevant pages
2. Read matching wiki pages
3. Synthesize answer with citations: `(wiki/[page].md)`
4. Create a new page only if answering required going back to raw sources —
   that gap is the signal a page is missing. Synthesis alone is not a page.
5. Log to `wiki/log.md` only when the wiki changed (`[DATE] INGEST/UPDATE: …`).
   Don't log read-only queries — a write per question is ceremony, and the
   log would outgrow the wiki.

### Lint: Health Check

Periodically check wiki integrity:

```
Contradictions:  pages with conflicting claims
Stale pages:     source file's mtime is newer than the page's "Last updated"
Orphaned pages:  not referenced in index.md
Missing links:   [[references]] with no matching file
```

A stale page is worse than no page — it answers confidently and wrong.
Re-ingest or delete; never leave it.

Report format:
```
WIKI HEALTH
===========
Pages: [N]
Last ingest: [DATE]
Issues found:
- [issue 1]
- [issue 2]
Recommendation: [action]
```

## Measuring the Saving

Numbers depend on the source. Measure, don't assume: run `estimate-tokens`
before ingesting (raw doc word count × 1.3) and after (the wiki pages a
typical question actually reads × 1.3). Report both to the user.

## When NOT to Build a Wiki

- **Source code** — the code is its own source of truth; a wiki copy drifts
  the moment the code changes. Wiki *decisions and concepts*, grep the code.
- **Sources smaller than their page** (short README, config file) —
  re-reading the original is cheaper than maintaining a copy.
- **One-off questions** — answer from the doc directly; a wiki pays off on
  the second read, not the first.
- **Anything with a maintained upstream reference** (official API docs you
  can fetch) — wiki only the project-specific deltas and gotchas.

## Integration with context_forge

- Run `/context-forge:estimate-tokens` after wiki setup to measure baseline
- Add the `wiki/` reference to the instruction file via `optimize-claudemd`

## Additional Resources

- **`references/wiki-patterns.md`** — Page templates and multi-project wiki setups
Pliki w paczce (2)
  • SKILL.md 4 KB
  • references/wiki-patterns.md 2 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · kyuna0312/context_forge100MIT
sammcj/agentic-coding100Apache-2.0
seaworld008/commonly-used-high-value-skills100MIT
iging/sauron100MIT
akillness/jeo-skills100MIT
StevenGuo42/llm-wiki-skills100GPL-3.0
alirezarezvani/claude-skills100MIT
ivy00johns/skill-madness100MIT
rcarvalhoxavier/homelab-harness100MIT

Migawka bazy z 13.11.2026 · wersja paczki 3370af2bb913 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 86wiki-ingest
    Wprowadza wiedzę z sesji agenta do osobistej bazy wiki LLM Meiqiu, gdy użytkownik o to prosi.
  • 100docs-wiki
    Prowadzi wiki dokumentacji w formacie Open Knowledge: dodaje i przenosi strony, aktualizuje je po zmianach w kodzie i odpowiada na pytania z dokumentów.
  • 90llm-wiki-ingest
    Wprowadza nowe surowe źródło do paczki LLM Wiki OKF: przetwarza plik z raw/sources lub raw/assets, streszcza artykuł, artykuł naukowy lub transkrypt i zapisuje go w wiki.
  • 95wiki
    Buduje i obsługuje wiki w stylu Karpathy'ego: powiązaną bazę wiedzy w Markdown, do której dodaje się treści, zadaje pytania i sprawdza spójność.
  • 100wiki
    Uzupełnia bazę wiedzy llm-wiki na zdalnym serwerze o szczegóły implementacyjne z bieżącej sesji.
  • 100add-karpathy-llm-wiki
    Dodaje do grupy NanoClaw trwałą bazę wiedzy w formie wiki, opartą na wzorcu LLM Wiki Karpathy'ego.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.