mimimaster/piwin/llm-wiki
Claude Code and agent skill by mimimaster/piwin
- community
Checking that the SKILL.md file is still in the repository.
Knowledge management, document synthesis, and concept graph maintenance following Andrej Karpathy's LLM-Wiki pattern. Use when ingesting articles/docs/papers, creating or querying wiki concepts, maintaining cross-links, or performing wiki health checks.
Install
npx vskill@latest install mimimaster/piwin/llm-wikiSKILL.md
Andrej Karpathy LLM-Wiki Pattern
"The central idea of LLM-Wiki is that the LLM acts as the encyclopedist and curator of a personal, compounding knowledge base formatted in plain Markdown with[[wikilinks]]."
A structured knowledge architecture where LLMs ingest raw information, distill it into interconnected concept pages, maintain a master index, record an append-only audit trail, and continuously verify graph health.
Architecture Overview
The Three Layers
- Raw Sources (`raw/`): Read-only raw documents, articles, transcripts, or web clips.
- Distilled Wiki (`concepts/`): High-signal, synthesized encyclopedia pages in Markdown.
- Control & Audit (`INDEX.md` + `LOG.md`): Table of contents and journal of all changes.
The 3 Core Operations
1. Ingest Workflow (消化提炼)
When given new documents, text, notes, or technical materials:
- Read `INDEX.md` First:
- Inspect the current catalog to see what concepts already exist.
- Avoid creating duplicates or conflicting definitions.
- Decompose & Synthesize:
- Do not simply dump the entire raw file into a page.
- Break down ideas into atomic, durable concepts (e.g.
[[Direct Preference Optimization]], notPaper Summary March 2024). - Create or update 1 to 5 interconnected concept pages.
- Format Each Concept Page:
```markdown
title: Concept Name aliases: [Acronym, Alt Name] tags: [domain, sub-domain] summary: One-sentence concise definition. updated: YYYY-MM-DD
# Concept Name
## Definition & Core Intuition Clear, concise explanation of the concept.
## Key Mechanisms & Components Structured breakdown with cross-references like [[Related Concept]].
## Relationships & Connections
- Extends: [[Prior Concept]]
- Applied in: [[Application Concept]]
- Contrasted with: [[Alternative Concept]]
```
- Maintain Cross-links (`[[wikilinks]]`):
- Use
[[Concept Name]]or[[Target Slug|Display Label]]. - Every concept page must link to at least 1 parent or related concept.
- Update Index & Log:
- Use tool
wiki_writeto save concepts, which automatically records entries intoINDEX.mdandLOG.md.
2. Query Workflow (检索与联想)
When answering questions using the knowledge base:
- Check `INDEX.md`:
- Call
wiki_read(name: "INDEX")to locate matching concepts.
- Read Target Concepts:
- Call
wiki_read(name: "...")for the most relevant concepts.
- Traverse Connected Outlinks:
- If deeper context is required, read the outlinks discovered in the target concept.
- Synthesize & Cite:
- Formulate the response incorporating explicit
[[wikilinks]]so the user can explore the concept network.
3. Lint Workflow (巡检与健康维护)
Periodically or after bulk ingestions:
- Run
wiki_lint:
- Inspects
~/.piwin/wiki/concepts/. - Identifies broken links (
[[Target]]pointing to non-existent concept files). - Identifies orphan concepts (zero backlinks and omitted from
INDEX.md).
- Fix detected issues:
- For broken links: create the stub concept or correct the typo.
- For orphans: link them from
INDEX.mdand related parent concepts.
Tools Reference
wiki_read: Read a concept page,INDEX, orLOG.wiki_write: Create or update a concept page with automaticINDEX.mdandLOG.mdsync.wiki_lint: Run comprehensive graph health check./wiki: Slash command for terminal / chat operations (/wiki lint,/wiki log).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/llm-wiki/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mimimaster/piwin/llm-wiki)