# organize-wiki file contract organize-wiki writes the domains file and moves paper folders; DeepPaperNote reads the domains file when it chooses a new paper's domain. Neither imports the other's code. ## Library layout - The vault and paper folder come from DeepPaperNote's configuration, `~/.deeppapernote/config.json` (or `DEEPPAPERNOTE_CONFIG_PATH`): `obsidian_vault`, `papers_dir`, `output_language`. `--vault` and `--papers-dir` win. A vault holds `.obsidian/`. - A **domain** is a folder directly under the papers root. A **paper folder** is a folder directly under a domain. Its notes are the `.md` files directly inside it. - A paper's **id** is `/`, relative to the papers root. - A folder directly under the papers root that holds `.md`, `.zh-CN.md`, `.en.md`, or `.deeppapernote.json` is a paper folder without a domain, reported as an anomaly. - A paper's **domain tag** is `papers/`, whitespace written as `_`. A conforming note has frontmatter whose `tags` hold exactly one `papers/` tag, its domain tag. ## Domains file `/DeepPaperNote/domains.md`: ```md --- aliases: [领域分类] tags: [paper-domains] updated: 2026-11-07 --- # 领域分类 > 这份约定由整理知识库 skill 与你一起维护。DeepPaperNote 保存新论文时按它选择领域文件夹。 ## 长视频理解 - 定义:理解长视频的模型、方法与基准。 - 收录:长视频问答、长视频基准、视频记忆机制。 - 不收录:短视频动作识别(去 计算机视觉)。 - 代表论文:[[LVBench.zh-CN|LVBench]]、[[VideoAgent|VideoAgent]] ``` - Each `##` heading is a domain folder name. Under it, `-