{"id":51197068,"url":"https://github.com/lewislulu/llm-wiki-skill","last_synced_at":"2026-07-16T06:00:45.200Z","repository":{"id":351714728,"uuid":"1201932323","full_name":"lewislulu/llm-wiki-skill","owner":"lewislulu","description":"Karpathy-style LLM knowledge base Agent Skill for OpenClaw/Codex. Experimental — will iterate over time.","archived":false,"fork":false,"pushed_at":"2026-04-16T06:01:13.000Z","size":121,"stargazers_count":281,"open_issues_count":1,"forks_count":54,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-16T08:09:22.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lewislulu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":"audit-shared/package-lock.json","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T11:10:04.000Z","updated_at":"2026-04-16T07:48:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lewislulu/llm-wiki-skill","commit_stats":null,"previous_names":["lewislulu/llm-wiki-skill"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lewislulu/llm-wiki-skill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewislulu%2Fllm-wiki-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewislulu%2Fllm-wiki-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewislulu%2Fllm-wiki-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewislulu%2Fllm-wiki-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lewislulu","download_url":"https://codeload.github.com/lewislulu/llm-wiki-skill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewislulu%2Fllm-wiki-skill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35532646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-27T21:31:06.298Z","updated_at":"2026-07-16T06:00:45.193Z","avatar_url":"https://github.com/lewislulu.png","language":"TypeScript","funding_links":[],"categories":["Documentation and Writing Skills"],"sub_categories":[],"readme":"# llm-wiki\n\n**An OpenClaw / Codex Agent Skill for building Karpathy-style LLM knowledge bases.**\n\n\u003e Experimental skill — will iterate over time.\n\u003e Please send your feedbacks in github issues.\n\nInspired by [Andrej Karpathy's llm-wiki Gist](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) and the community's work building on it.\n\n## What this is\n\nInstead of RAG (re-retrieving raw docs on every query), this pattern has the LLM **compile** raw sources into a persistent, cross-linked Markdown wiki. Every `compile`, `ingest`, `query`, `lint`, and `audit` pass makes the wiki richer. Knowledge compounds over time.\n\n- You own: sourcing raw material, asking good questions, steering direction, filing feedback on things the AI got wrong.\n- LLM owns: all writing, cross-referencing, filing, bookkeeping, and acting on your feedback.\n\nThe skill comes with two companion tools in this repo:\n\n- **`plugins/obsidian-audit/`** — an Obsidian plugin: select text in any page, leave a comment with severity, the comment is written into `audit/` as an anchored markdown file.\n- **`web/`** — a local Node.js preview server: renders the wiki with mermaid, KaTeX, and wikilinks, lets you select + file feedback from the browser, and shows open audits per page.\n\nBoth tools share a single TypeScript library (`audit-shared/`) so audit files written from Obsidian and the web viewer are byte-identical in shape.\n\n## Install\n\n```bash\n# Copy the skill into your agent's skills directory\ncp -r llm-wiki/ ~/.claude/skills/llm-wiki/\n# or for Codex\ncp -r llm-wiki/ ~/.codex/skills/llm-wiki/\n```\n\nThen reference it in your agent config, or simply paste `llm-wiki/SKILL.md` into your agent context.\n\n## Quick start\n\n```bash\n# 1. Scaffold a new wiki\npython3 llm-wiki/scripts/scaffold.py ~/my-wiki \"My Research Topic\"\n\n# 2. Add a source\ncp my-article.md ~/my-wiki/raw/articles/\n\n# 3. Tell your agent: \"ingest raw/articles/my-article.md\"\n\n# 4. Ask questions: \"what does the wiki say about X?\"\n\n# 5. Run lint periodically\npython3 llm-wiki/scripts/lint_wiki.py ~/my-wiki\n\n# 6. File a comment from the web viewer or Obsidian plugin, then process it\npython3 llm-wiki/scripts/audit_review.py ~/my-wiki --open\n# then tell the agent: \"audit: process the open comments\"\n```\n\n## Repo contents\n\n```\nllm-wiki-skill/\n├── llm-wiki/                    ← The skill\n│   ├── SKILL.md                 ← Main skill file (read by agent)\n│   ├── references/\n│   │   ├── schema-guide.md      ← CLAUDE.md schema template\n│   │   ├── article-guide.md     ← Article writing (divide \u0026 conquer, mermaid, KaTeX)\n│   │   ├── log-guide.md         ← log/ folder convention\n│   │   ├── audit-guide.md       ← audit file format + processing workflow\n│   │   └── tooling-tips.md      ← Obsidian, qmd, plugin + web\n│   └── scripts/\n│       ├── scaffold.py          ← Bootstrap new wiki directory\n│       ├── lint_wiki.py         ← 7-pass health check (links, audit, log shape)\n│       └── audit_review.py      ← Group open/resolved audits by target\n├── audit-shared/                ← Shared TypeScript library\n│   └── src/{schema,anchor,id,serialize,index}.ts\n├── plugins/obsidian-audit/      ← Obsidian plugin — file audit from vault\n└── web/                         ← Local Node.js preview + feedback server\n    ├── server/                  ← Express + markdown-it + KaTeX + wikilinks\n    └── client/                  ← Vanilla-TS SPA with mermaid + selection popover\n```\n\n## Running the web viewer\n\n```bash\n# one-time setup (builds audit-shared, installs deps, bundles client)\ncd audit-shared \u0026\u0026 npm install \u0026\u0026 npm run build \u0026\u0026 cd ..\ncd web \u0026\u0026 npm install \u0026\u0026 npm run build \u0026\u0026 cd ..\n\n# start the server against a wiki\ncd web\nnpm start -- --wiki \"/path/to/your/wiki-root\" --port 4175\n# open http://127.0.0.1:4175\n```\n\n## Building the Obsidian plugin\n\n```bash\ncd audit-shared \u0026\u0026 npm install \u0026\u0026 npm run build \u0026\u0026 cd ..\ncd plugins/obsidian-audit\nnpm install\nnpm run build\nnpm run link -- \"/path/to/your/Obsidian vault\"\n# Enable 'LLM Wiki Audit' in Obsidian → Settings → Community plugins.\n```\n\n## Use cases\n\n- **Research deep-dive** — reading papers/articles on a topic over weeks\n- **Personal wiki** — Farzapedia-style: journal entries compiled into personal encyclopedia  \n- **Team knowledge base** — fed by Slack threads, meeting notes, docs\n- **Reading companion** — building a rich companion wiki as you read a book\n\n## Related work\n\n- [Karpathy's original Gist](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f)\n- [pedronauck/skills karpathy-kb](https://github.com/pedronauck/skills/tree/main/skills/karpathy-kb) — full Obsidian vault integration\n- [Astro-Han/karpathy-llm-wiki](https://github.com/Astro-Han/karpathy-llm-wiki) — example implementation\n- [qmd](https://github.com/tobi/qmd) — semantic search for Markdown wikis\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewislulu%2Fllm-wiki-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewislulu%2Fllm-wiki-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewislulu%2Fllm-wiki-skill/lists"}