Install
openclaw skills install @paudyyin/karpathy-llm-wikiUse when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'. 中文触发:'加入知识库'、'知识库查询'、'检查知识库'、'我知道什么关于'、'LLM wiki'、'编译知识'。
openclaw skills install @paudyyin/karpathy-llm-wikiBuild and maintain a personal knowledge base using LLMs. You manage two directories under wiki-kb/: wiki-kb/raw/ (immutable source material) and wiki-kb/wiki/ (compiled knowledge articles). Sources go into wiki-kb/raw/, you compile them into wiki-kb/wiki/ articles, and the wiki compounds over time.
Core ideas from Karpathy:
Three layers, all under wiki-kb/ in the user's workspace:
wiki-kb/raw/ — Immutable source material. You read, never modify. Organized by topic subdirectories (e.g., wiki-kb/raw/machine-learning/).
wiki-kb/wiki/ — Compiled knowledge articles. You have full ownership. Organized by topic subdirectories, one level only: wiki-kb/wiki/<topic>/<article>.md. Contains two special files:
wiki-kb/wiki/index.md — Global index. One row per article, grouped by topic, with link + summary + Updated date.wiki-kb/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.
Triggers only on the first Ingest. Check whether wiki-kb/raw/ and wiki-kb/wiki/ exist. Create only what is missing; never overwrite existing files:
wiki-kb/raw/ directory (with .gitkeep)wiki-kb/wiki/ directory (with .gitkeep)wiki-kb/wiki/index.md — heading # Knowledge Base Index, empty bodywiki-kb/wiki/log.md — heading # Wiki Log, empty bodyIf Query or Lint cannot find the wiki structure, tell the user: "Run an ingest first to initialize the wiki." Do not auto-create.
Fetch a source into wiki-kb/raw/, then compile it into wiki-kb/wiki/. Always both steps, no exceptions.
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.
Pick a topic directory. Check existing wiki-kb/raw/ subdirectories first; reuse one if the topic is close enough. Create a new subdirectory only for genuinely distinct topics.
Save as wiki-kb/raw/<topic>/YYYY-MM-DD-descriptive-slug.md.
descriptive-slug.md). The metadata Published field still appears; set it to Unknown.descriptive-slug-2.md).See references/raw-template.md for the exact format.
Determine where the new content belongs:
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:
wiki-kb/wiki/<topic>/ use ../../raw/<topic>/<file>.md (two levels up to wiki-kb/ root).After the primary article, check for ripple effects:
wiki-kb/wiki/index.md entries in other topics for articles covering related concepts.Archive pages are never cascade-updated (they are point-in-time snapshots).
Update wiki-kb/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-kb/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.
Search the wiki and answer questions. Examples of triggers:
wiki-kb/wiki/index.md to locate relevant articles.[Article Title](wiki-kb/wiki/topic/article.md) (workspace-relative paths for in-conversation citations; within wiki-kb/wiki/ files, use paths relative to the current file).When the user explicitly asks to archive or save the answer to the wiki:
references/archive-template.md. When converting conversation citations to the archive page, rewrite workspace-relative paths (e.g., wiki-kb/wiki/topic/article.md) to file-relative paths (e.g., ../topic/article.md or article.md for same-directory).
transformer-architectures-overview.md.wiki-kb/wiki/index.md. Prefix the Summary with [Archived].wiki-kb/wiki/log.md:
## [YYYY-MM-DD] query | Archived: <page title>
Quality checks on the wiki. Two categories with different authority levels.
Fix these automatically:
Index consistency — compare wiki-kb/wiki/index.md against actual wiki-kb/wiki/ files (excluding index.md and log.md):
(no summary) placeholder. For Updated, use the article's metadata Updated date if present; otherwise fall back to file's last modified date.[MISSING] in the index. Do not delete the entry; let the user decide.Internal links — for every markdown link in wiki-kb/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):
Raw references — every link in a Raw field must point to an existing wiki-kb/raw/ file:
See Also — within each topic directory:
These rely on your judgment. Report findings without auto-fixing:
Append to wiki-kb/wiki/log.md:
## [YYYY-MM-DD] lint | <N> issues found, <M> auto-fixed
Unknown when unavailable).wiki-kb/wiki/topic/article.md).wiki-kb/wiki/index.md and wiki-kb/wiki/log.md. Archive (from Query) updates both. Lint updates wiki-kb/wiki/log.md (and wiki-kb/wiki/index.md only when auto-fixing index entries). Plain queries do not write any files.