让 Claude Code 或 Codex 逐页读完论文与课程材料,编译成结构化、双向链接的知识库——不是 RAG,是 LLM Wiki。
A Claude Code and Codex plugin that reads every page of your PDFs and slides, compiles cited notes, and synthesizes cross-source concepts — not RAG, an LLM Wiki.
> /plugin marketplace add u7079256/paper-wiki
> /plugin install paper-wiki@paper-wiki
核心理念
RAG 每次提问都临时检索文本片段再拼答案,质量取决于切分和召回;paper-wiki 反过来——Claude 事先把每篇源文献从头读到尾,写成带引用的结构化笔记,再跨源综合出概念条目和研究空白。编译好的 wiki 本身就是产出,用 Obsidian 打开就是一张知识图谱。
Core Concept
RAG retrieves text chunks at query time and stitches an answer on the fly. paper-wiki takes the opposite approach: Claude reads every source page-by-page upfront, writes structured notes with citations, then synthesizes cross-source concepts and research gaps. The compiled wiki is the product — it opens as a knowledge graph in Obsidian.
工作流
Scope fence 守住边界(核心聚焦 / 相邻可纳入 / 硬排除),lifecycle 控制节奏(BUILDING → ACTIVE → FROZEN)。
Workflow
Scope fence guards boundaries (core focus / adjacent OK / exclusions). Lifecycle controls pace (BUILDING → ACTIVE → FROZEN).
/wiki-init → import → /wiki-compile → /wiki-critique → /wiki-ideate
↓ ↓
/wiki-search-latest ←── coverage gaps ┘
↓
/wiki-compile → /wiki-teach (deep understanding)
两种变体
两种变体共享同一套"先编译、后查询"的流程,针对不同场景做了定制。
Two Variants
Both variants share the same compile-then-query pipeline, tailored for different use cases.
文献调研和 novelty gap 分析
Literature survey & novelty gap analysis
| 源材料 | 论文(arXiv / 网页) |
| 主笔记 | wiki/papers/ |
| 综合层 | wiki/concepts/ |
| 特色 | wiki/gaps/ 新颖性分析 |
| 外部检索 | /wiki-search-latest、/wiki-ideate |
| Sources | Papers (arXiv / web) |
| Notes | wiki/papers/ |
| Synthesis | wiki/concepts/ |
| Unique | wiki/gaps/ novelty analysis |
| Search | /wiki-search-latest + /wiki-ideate |
复习备考,讲义压缩成可查知识库
Exam revision & lecture compression
| 源材料 | 讲义 / 实验 / 作业 |
| 主笔记 | wiki/lectures/ + wiki/practice/ |
| 综合层 | wiki/topics/ |
| 特色 | wiki/exam-scope.md 考试大纲骨架 |
| 外部检索 | 无 |
| Sources | Slides / labs / assignments |
| Notes | wiki/lectures/ + wiki/practice/ |
| Synthesis | wiki/topics/ |
| Unique | wiki/exam-scope.md spine |
| Search | none |
安装
两端都能从本仓库 marketplace 安装;bootstrap 项目自带两套入口。
Installation
Both runtimes install from this repository marketplace; bootstrapped projects carry both entry points.
> /plugin marketplace add u7079256/paper-wiki
> /plugin install paper-wiki@paper-wikicodex plugin marketplace add u7079256/paper-wiki
codex plugin add paper-wiki@paper-wikiWIKI.md。WIKI.md is canonical.后续更新:Claude Code 使用 /plugin marketplace update paper-wiki;Codex 使用 codex plugin marketplace upgrade paper-wiki。若 Git 主机校验失败,请先对照 GitHub 官方公布的 SSH fingerprint,切勿把未经核验的 ssh-keyscan 输出直接写进 known_hosts。
不想装 plugin 也行——直接 git clone 本仓库,用 bootstrap 脚本创建项目。
Update with /plugin marketplace update paper-wiki in Claude Code or codex plugin marketplace upgrade paper-wiki in Codex. If Git host verification fails, compare the key with GitHub's officially published SSH fingerprints; do not persist unverified ssh-keyscan output.
Don't want a plugin? git clone this repo and run the bootstrap below — bootstrapped projects are self-contained.
PS> .\scripts\bootstrap_new_wiki.ps1 -NewPath D:\my-wiki -Topic my-topic `
-ProjectName "My Wiki" -Variant research$ bash scripts/bootstrap_new_wiki.sh --path ~/my-wiki --topic my-topic \
--name "My Wiki" --variant research创建后任选一端:Claude Code 运行 /wiki-init;Codex 运行 $paper-wiki-project wiki-init。
Choose one runtime: Claude Code runs /wiki-init; Codex runs $paper-wiki-project wiki-init.
命令
Claude Code 用 /wiki-*;Codex 用 $paper-wiki-project wiki-* 或自然语言点名 action。
Commands
Claude Code uses /wiki-*; Codex uses $paper-wiki-project wiki-* or a natural-language request naming the action.
| 命令 | 功能 |
|---|---|
/wiki-init | 初始化(仅首次):填写主题和种子论文 / 解包并清点材料 |
/wiki-compile | 读取 raw/ 中的新材料,编译笔记,综合概念或主题 |
/wiki-search-latest <主题> | 搜索最新相关论文 research |
/wiki-critique <文件> | 对抗性审查:找漏洞、过度声明、公式错误 |
/wiki-ideate <gap> | 发现未试过的组合 research |
/wiki-teach <问题> | paper-wiki 自带查询与教学,不依赖外部 /teach |
wiki-teach action;wiki 里没有的内容会明确告知。| Command | What it does |
|---|---|
/wiki-init | One-time setup: fill topic + seeds (research) / unpack + inventory (course) |
/wiki-compile | Read new raw/ material, write notes, synthesize concepts |
/wiki-search-latest <topic> | Find recent papers to import research |
/wiki-critique <file> | Adversarial review: holes, overclaims, wrong formulas |
/wiki-ideate <gap> | Discover untried combinations research |
/wiki-teach <question> | Built-in query and teaching; no external /teach dependency |
wiki-teach action. Absent content is explicitly flagged.场景走读
从创建 wiki 到投稿,每个场景展示具体命令、预期输出和决策点。
Walkthroughs
From wiki creation to paper submission — concrete commands, expected outputs, and decision points.
PhD 生,新方向,8 周
| 重点 | scope fence 延迟填写、ideate 发现方向、reviewer 反馈后重开 wiki |
资深研究者,4 周快速验证
| 重点 | Day 1 即 ideate、精准补充、teach 出对比表写 related work |
长期维护者,6 周跨论文复用
| 重点 | 重开冻结 wiki、更新 scope fence、--Update 更新命令 |
PhD student, new direction, 8 weeks
| Focus | Deferred scope fence, ideate discovers direction, reviewer feedback reopens wiki |
Senior researcher, 4-week fast validation
| Focus | Day-1 ideate, precise expansion, teach generates comparison tables for writing |
Long-term maintainer, 6-week cross-paper reuse
| Focus | Reopen frozen wiki, update scope fence, --Update for stale commands |
项目结构
Project Layout
.claude-plugin/— Claude Code plugin 元数据.codex-plugin/— Codex plugin manifest.agents/plugins/— Codex marketplace 元数据skills/paper-wiki/— 双端共用 skill 与 action 合约scripts/— bootstrap 脚本 + OCR + PPTX 提取commands/— Claude slash adapter 与共享流程正文agents/— sub-agent(wiki-critic / wiki-searcher / wiki-ideator)templates/— 各变体的模板文件templates/memory/— 不含 secret 的本地说明模板docs/— 命令教程、OCR 配置指南、方法论、踩坑记录examples/— 无 GPU 快速上手 + 示例 wikidocs/llm-wiki.protocol.yaml— 机器可读的行为规约
.claude-plugin/— Claude Code plugin metadata.codex-plugin/— Codex plugin manifest.agents/plugins/— Codex marketplace metadataskills/paper-wiki/— shared skill and action contractsscripts/— bootstrap (.ps1 + .sh) + OCR + PPTXcommands/— Claude slash adapters over shared workflowsagents/— sub-agents (wiki-critic / wiki-searcher / wiki-ideator)templates/— {research, course} template filestemplates/memory/— non-secret local note templatesdocs/— tutorial, OCR setup, methodology, gotchasexamples/— no-GPU quickstart + sample wikidocs/llm-wiki.protocol.yaml— machine-readable behavior contract