Loading...
Loading...
Compare original and translation side by side
Experimental skill — iterating. Authored by Lewis Liu (lylewis@outlook.com) · Inspired by Karpathy's llm-wiki Gist
实验性功能——持续迭代中。 作者:Lewis Liu (lylewis@outlook.com) · 灵感来自Karpathy的llm-wiki Gist
compileingestquerylintauditCLAUDE.mdwiki/index.mdcompileingestquerylintauditCLAUDE.mdwiki/index.md<wiki-root>/
├── CLAUDE.md ← Schema: scope, conventions, current articles, gaps
├── log/ ← Per-day operation log (one file per day)
│ ├── 20260409.md
│ └── 20260410.md
├── audit/ ← Human feedback inbox (one file per comment)
│ ├── 20260409-143022-claude-code-size.md
│ └── resolved/ ← Processed feedback, archived with resolution notes
├── raw/ ← Immutable source documents (LLM reads, never writes)
│ ├── articles/
│ ├── papers/
│ ├── notes/
│ └── refs/ ← Pointer files for large binaries kept outside raw/
├── wiki/ ← LLM-generated knowledge (LLM writes, you read)
│ ├── index.md ← Master catalog — every page, structured by category
│ ├── concepts/ ← Concept/topic pages (split into subfolders when >1200 words)
│ ├── entities/ ← People, tools, papers, organizations
│ └── summaries/ ← Per-source summary pages
└── outputs/
└── queries/ ← Query answers (promote durable ones to wiki/)CLAUDE.mdreferences/schema-guide.md<wiki-root>/
├── CLAUDE.md ← 配置文件:范围、规范、现有文章、内容缺口
├── log/ ← 每日操作日志(每天一个文件)
│ ├── 20260409.md
│ └── 20260410.md
├── audit/ ← 人工反馈收件箱(每条评论对应一个文件)
│ ├── 20260409-143022-claude-code-size.md
│ └── resolved/ ← 已处理的反馈,附带解决说明归档
├── raw/ ← 不可变的源文档(LLM仅读取,不写入)
│ ├── articles/
│ ├── papers/
│ ├── notes/
│ └── refs/ ← 指向raw/目录外大型二进制文件的指针文件
├── wiki/ ← LLM生成的知识内容(LLM写入,你读取)
│ ├── index.md ← 主目录——所有页面,按类别结构化展示
│ ├── concepts/ ← 概念/主题页面(超过1200字时拆分到子文件夹)
│ ├── entities/ ← 人物、工具、论文、组织
│ └── summaries/ ← 每个源文档的摘要页面
└── outputs/
└── queries/ ← 查询答案(将持久化内容升级到wiki/目录)CLAUDE.mdreferences/schema-guide.mdwiki/concepts/<topic>/wiki/concepts/<topic>/index.mdwiki/concepts/<topic>/<aspect>.mdwiki/index.mdwiki/tech/claude-code/
├── index.md (overview + links to sub-pages)
├── Claude_Code_Architecture.md
├── Claude_Code_Agent_Framework.md
├── Claude_Code_Bridge_System.md
├── Claude_Code_Query_Engine.md
├── Claude_Code_Skills_Plugins.md
├── Claude_Code_State_Management.md
└── Claude_Code_Tool_System.mdwiki/concepts/<topic>/wiki/concepts/<topic>/index.mdwiki/concepts/<topic>/<aspect>.mdwiki/index.mdwiki/tech/claude-code/
├── index.md (概述 + 子页面链接)
├── Claude_Code_Architecture.md
├── Claude_Code_Agent_Framework.md
├── Claude_Code_Bridge_System.md
├── Claude_Code_Query_Engine.md
├── Claude_Code_Skills_Plugins.md
├── Claude_Code_State_Management.md
└── Claude_Code_Tool_System.md```mermaid
flowchart LR
A[raw/article.md] --> B[summary]
B --> C[concept page]
C --> D[index.md]
```$f(x) = \sum_i w_i x_i$$$...$$```mermaid
flowchart LR
A[raw/article.md] --> B[summary]
B --> C[concept page]
C --> D[index.md]
```$f(x) = \sum_i w_i x_i$$$...$$raw/<subfolder>/raw/refs/<slug>.md---
kind: ref
external_path: /Volumes/external/models/llama-3-70b/
size: ~140 GB
---[[raw/refs/<slug>]]raw/<subfolder>/raw/refs/<slug>.md---
kind: ref
external_path: /Volumes/external/models/llama-3-70b/
size: ~140 GB
---[[raw/refs/<slug>]]audit/audit/auditaudit/*.mdaudit/resolved/# Resolutionlog/YYYYMMDD.mdreferences/audit-guide.mdaudit/audit/auditaudit/*.mdaudit/resolved/# Resolutionlog/YYYYMMDD.mdreferences/audit-guide.mdlog/YYYYMMDD.mdlog/YYYYMMDD.mdcompilecompileraw/index.mdindex.mdCLAUDE.mdwiki/index.mdconcepts/<topic>/wiki/index.md## [HH:MM] compile | <what you did — files touched, splits, merges>raw/index.mdindex.mdCLAUDE.mdwiki/index.mdconcepts/<topic>/wiki/index.md## [HH:MM] compile | <操作内容——涉及文件、拆分、合并>ingestingestraw/articles/<slug>.mdraw/papers/<slug>.mdraw/notes/<slug>.mdraw/refs/<slug>.mdwiki/summaries/<slug>.mdreferences/article-guide.mdwiki/concepts/wiki/entities/wiki/index.md## [HH:MM] ingest | <slug> — <one-line description> (touched N pages)raw/articles/<slug>.mdraw/papers/<slug>.mdraw/notes/<slug>.mdraw/refs/<slug>.mdwiki/summaries/<slug>.mdreferences/article-guide.mdwiki/concepts/wiki/entities/wiki/index.md## [HH:MM] ingest | <slug> — <单行描述>(涉及N个页面)queryquerywiki/index.md[[Page Name]]outputs/queries/<YYYY-MM-DD>-<question-slug>.mdwiki/concepts/index.md## [HH:MM] query | <question-slug>## [HH:MM] promote | ...wiki/index.md[[页面名称]]outputs/queries/<YYYY-MM-DD>-<question-slug>.mdwiki/concepts/index.md## [HH:MM] query | <question-slug>## [HH:MM] promote | ...lintlintpython3 scripts/lint_wiki.py <wiki-root>[[Target]]Target.mdwiki/index.md[[X]]log/audit/*.mdtarget## [HH:MM] lint | <N> issues found, <M> fixedpython3 scripts/lint_wiki.py <wiki-root>[[Target]]Target.mdwiki/index.md[[X]]target## [HH:MM] lint | <N>个问题被发现,<M>个已修复auditauditaudit/python3 scripts/audit_review.py <wiki-root> --openanchor_beforeanchor_textanchor_afterCLAUDE.md# Resolution# Resolution
2026-04-10 · accepted.
Fixed the file count (was "~1,900", corrected to "~1,800" per commit abc123).
Updated: tech/Claude_Code.md lines 47–48.audit/audit/resolved/## [HH:MM] audit | resolved 20260409-143022-a1b2 — <one-line what>resolved/references/audit-guide.mdaudit/python3 scripts/audit_review.py <wiki-root> --openanchor_beforeanchor_textanchor_afterCLAUDE.md# Resolution# Resolution
2026-04-10 · 已接受。
修正文件数量(原为"~1,900",根据提交abc123改为"~1,800")。
更新:tech/Claude_Code.md第47–48行。audit/audit/resolved/## [HH:MM] audit | resolved 20260409-143022-a1b2 — <单行描述>resolved/references/audit-guide.md| Tool | Purpose |
|---|---|
| Obsidian | IDE for browsing the wiki; graph view shows connections |
| Obsidian plugin — select text → add feedback → writes to |
| Local Node.js server — preview the wiki with mermaid/math rendered; select → feedback → |
| Bootstrap a new wiki directory tree |
| Seven-pass health check |
| Group open/resolved audits by target file |
| qmd | Optional local semantic search (useful at >100 pages) |
| 工具 | 用途 |
|---|---|
| Obsidian | 维基浏览IDE;图谱视图展示关联关系 |
| Obsidian插件——选中文本→添加反馈→写入 |
| 本地Node.js服务器——预览维基,渲染mermaid/数学公式;选中文本→提交反馈→写入 |
| 快速搭建新维基目录结构 |
| 七轮健康检查 |
| 按目标文件分组展示未处理/已处理审计 |
| qmd | 可选本地语义搜索(页面超过100个时实用) |
python3 scripts/scaffold.py <wiki-root> "<Topic Title>"log/<today>.mdaudit/audit/resolved/CLAUDE.mdwiki/index.mdCLAUDE.mdoutputs/queries/lintauditpython3 scripts/scaffold.py <wiki-root> "<主题标题>"log/<today>.mdaudit/audit/resolved/CLAUDE.mdwiki/index.mdCLAUDE.mdoutputs/queries/lintauditwiki/index.mdwiki/index.mdindex.mdundefinedindex.mdundefinedOne-sentence scope of the wiki.
维基范围的单行描述。
Rules:
- Every wiki page must appear exactly once in `index.md`. `lint` enforces this.
- Folder-split concepts show hierarchy via indented bullets.
- `index.md` + `CLAUDE.md` together are what the AI reads at session start.
规则:
- 每个维基页面必须在`index.md`中精确出现一次。`lint`检查会强制执行此规则。
- 拆分到文件夹的概念通过缩进项目符号展示层级。
- `index.md` + `CLAUDE.md`是AI会话开始时读取的内容。log/log/references/log-guide.mdlog/YYYYMMDD.md## [HH:MM] <op> | <one-line description>compileingestquerylintauditpromotesplitscaffoldgrep -rh "^## \[" log/ | tail -20references/log-guide.mdlog/YYYYMMDD.md## [HH:MM] <操作> | <单行描述>compileingestquerylintauditpromotesplitscaffoldgrep -rh "^## \[" log/ | tail -20references/schema-guide.mdCLAUDE.mdreferences/article-guide.mdreferences/log-guide.mdlog/references/audit-guide.mdreferences/tooling-tips.mdreferences/schema-guide.mdCLAUDE.mdreferences/article-guide.mdreferences/log-guide.mdlog/references/audit-guide.mdreferences/tooling-tips.md