IMA Karpathy LLM Wiki Knowledge Base
Paste the following prompt into your AI chat to install this skill:
Please follow the guide at https://skillhub.cn/install/skillhub.md to install @user_a0501ee4/iwk into your AI assistant.
About this skill
Problem
Many personal knowledge bases remain piles of fragmented PDFs, notes, and web snippets. At query time, the model may re-search raw documents every turn, producing answers that are hard to audit, hard to link, and blind to contradictions, orphan pages, or missing concepts. ima-wiki-karpathy treats Tencent ima as a durable knowledge store and compiles source material into structured Wiki pages instead of re-running raw-document RAG on every request.
How It Works
The skill follows a Karpathy-style three-layer model: raw/ holds immutable source material, wiki/ holds LLM-generated, cross-linked Markdown pages, and CONFIG.md defines page templates, directory rules, and negative constraints. The main operations are:
- Ingest: reads a PDF, file path, or pasted text, combines it with CONFIG.md and the current index.md, asks the LLM to emit JSON page updates, and writes or updates notes through the ima API.
- Query: retrieves the most relevant Wiki pages, answers with citations such as [source: page title], and explicitly says when the Wiki has no relevant information.
- Lint: scans pages for contradictions, isolated pages, and gaps, then produces a health-check report.
- Convert: extracts PDF text, tables, and metadata with pdfplumber, renders structured Markdown, and optionally continues into Ingest.
Boundaries
This skill fits knowledge bases with a stable topic and long-term accumulation. The quality of CONFIG.md strongly shapes output: the more protocol-like the schema, the more consistent the generated pages. Batch operations should respect API rate limits and include retries. Export Markdown before significant edits as a backup. If the goal is one-off retrieval without maintaining structured pages, the workflow is heavier than necessary.
Use Cases
- Extract a paper PDF into Markdown with tables, then compile it into ima Wiki pages using CONFIG.md.
- Query a local Wiki for an algorithm explanation and require page-level citations in the answer.
- Run a Wiki health check to locate orphan pages, contradictions, and concept gaps, then generate a report.
- Convert a report PDF into readable Markdown for team review before deciding whether to ingest it.
Best For
- Researchers maintaining personal technical notes who want to turn paper PDFs into citable, interlinked Wiki pages.
- Team leads managing knowledge bases who need scattered sources compiled into structured pages under a shared schema.
- Engineers using Tencent ima for notes who want auditable answers without building a RAG stack.
- Product managers curating project docs who need PDFs and notes converted into a queryable knowledge base.
Related Skills
Reads conversation-trace files to generate an animal- or mythology-based soul mirror card and Johari Window insights.
A Deling knowledge-base research workflow that clarifies intent, runs broad and vertical searches, supplements with web sources, validates diversity, and traces key claims.
A SiYuan knowledge-base management skill for double-link parent indexes, MOCs, numbered documents, tags, repo sync, and WeChat import workflows.
A structured workflow for academic literature reviews, covering multi-database search, screening, thematic synthesis, citation validation, and PDF output.