wiki-mode
它能做什么
这个技能读取你为 Obsidian 知识库选择的归档方法,并建议新笔记应放在哪里。适合希望笔记遵循统一体系的人。
适用场景
- ✓当你想知道你的知识库使用哪种归档方法时。
- ✓当你想把知识库切换为其他方法,例如 PARA、LYT 或 Zettelkasten 时。
- ✓当你即将创建一份新笔记,并想知道它应放在哪里时。
技能链接
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/wiki-mode/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“根据我的知识库设置方式,关于某个客户项目的新笔记应该放在哪个文件夹里?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会读取你保存的方法设置,并请求辅助工具给出建议的位置。它只建议存放位置,不会保存笔记,也不会移动现有笔记。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Route by vault methodology
This skill returns filing suggestions. It does not write knowledge pages or
move existing notes. If .vault-meta/mode.json is absent, use generic. If
the file exists but is invalid, fail closed and repair it through a reviewed
configuration operation before suggesting routes; never silently substitute
Generic for corrupt user configuration.
Resolve the installed product root from this skill's own location, not from the vault or current working directory:
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
MODE_HELPER="$PRODUCT_ROOT/scripts/wiki-mode.py"
test -f "$CORE" && test -f "$MODE_HELPER"
Every ../wiki/references/ link in this file resolves the same way, relative
to this skill's own directory under $PRODUCT_ROOT, never relative to the
selected vault's wiki/ directory.
Read and route safely
Always select the vault explicitly:
python3 "$MODE_HELPER" --vault "$VAULT" get
python3 "$MODE_HELPER" --vault "$VAULT" config
python3 "$MODE_HELPER" --vault "$VAULT" route concept "Concept name"
python3 "$MODE_HELPER" --vault "$VAULT" route source "Source title"
The helper validates the selected vault, confines paths, sanitizes names, and prints a suggestion only. A calling skill may override the suggestion when the user supplies a more specific project, area, MOC, or parent note, but it must still apply its eventual writes through one operation transaction.
| Mode | Routing intent |
|---|---|
generic |
Type-based folders such as sources, entities, concepts, and sessions. |
lyt |
Atomic notes under wiki/notes/, connected through MOCs. |
para |
Projects, Areas, Resources, or Archives chosen by actionability. |
zettelkasten |
Flat atomic notes with time-sortable, collision-resistant identifiers and explicit links. |
Use the templates as structural guidance: LYT atomic,
LYT MOC, PARA area,
PARA project,
PARA resource, or
Zettelkasten atomic. They use canonical
type values from claude_obsidian/page_schema.py and a separate flat
methodology_role property:
| Template | Type | Methodology role |
|---|---|---|
| LYT atomic | concept |
atomic |
| LYT MOC | meta |
moc |
| PARA area | concept |
area |
| PARA project | entity |
project |
| PARA resource collection | concept |
resource |
| Zettelkasten atomic | concept |
zettel |
A resource template describes a topic collection. Use source instead when the
new page represents a particular captured source. The methodology role does not
add a router type: pass the canonical type and respect the chosen project, area,
or MOC destination. Structural MOCs use an explicit destination; meta is not a
routable new-note type. Existing user pages, custom type vocabularies, and saved
Dataview queries remain unchanged. Any requested migration needs its own reviewed
plan; switching mode never rewrites existing notes.
Change mode
A mode change is one configuration operation, dry-run first:
Read the current
.vault-meta/mode.json, or start from the helper's default config when it is absent.Validate the requested mode as exactly
generic,lyt,para, orzettelkasten. Preserve the other mode-specific settings.Choose and retain a pinned UTC timestamp and operation ID for both commands.
Preview the canonical configuration transaction; the command records the current target hash and limits the write to
.vault-meta/mode.json:python3 "$CORE" mode set "$MODE" --vault "$VAULT" \ --generated-at "$GENERATED_AT" --operation-id "$OPERATION_ID"Show the old mode, new mode, exact changed path, and complete preview. Copy its
approved_plan_sha256only after review.Apply by regenerating that exact vault-bound plan:
python3 "$CORE" mode set "$MODE" --vault "$VAULT" \ --generated-at "$GENERATED_AT" --operation-id "$OPERATION_ID" \ --approved-plan-sha256 "$APPROVAL_SHA256" --apply
Follow the operation transaction contract.
Do not use scripts/wiki-mode.py's legacy direct-write set action or a setup
script to bypass this workflow.
Changing mode affects routing for future
常见问题
更改方法时它会移动我的笔记吗?
不会。该技能不迁移或移动现有笔记,只返回建议。
如果没有设置方法怎么办?
当不存在设置文件时,知识库使用通用方法。
它会保存新内容吗?
不会。它只建议存放位置,保存由另一个技能处理。
详情
作者的原始描述
Read or configure the vault filing methodology and suggest destinations for planned knowledge creation under Generic, LYT, PARA, or Zettelkasten. Use for wiki mode, methodology mode, what is my vault mode, set vault mode, switch to PARA, use LYT, Zettelkasten setup, change mode, configure mode, or methodology routing. This skill does not save content or migrate notes.
热度
- GitHub 星标
- 16k
- 排名
- #10815
- 许可证
- MIT
- 更新时间
- 2026/10/25
评论
- …
同一仓库的更多技能
autoresearch
16k让你的智能体在设定的范围内研究某个主题,并起草带引用的报告。网络发现的内容只作为证据保存,不会自动加入你的笔记。
canvas
16k帮你的智能体在 Obsidian 中创建和更新可视化画板,画板可以容纳笔记、文件、链接和分组,适合制作思维导图和空间布局。
defuddle
16k帮你的智能体规划如何把网页清理成可读的文本,并保存源文件的本地副本。网络清理功能目前尚不可用。
obsidian-bases
16k帮你的智能体设计 Obsidian Bases 视图,使其像简单的数据库一样工作,支持筛选、公式,以及表格或卡片布局。