wiki
它能做什么
这个技能设置 Obsidian 知识库,并为每项任务指引你使用正确的 wiki 工具。适合开始建立长期的第二大脑,或采用现有知识库的人。
适用场景
- ✓当你想把一个新的 Obsidian 知识库建立为知识库时。
- ✓当你已有 Obsidian 知识库,并想将其纳入 wiki 体系时。
- ✓当你不确定某项任务应使用哪个 wiki 技能时。
技能链接
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/wiki/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的文档文件夹中建立一个新的 Obsidian 知识库,并先告诉我将会创建哪些内容。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先选定知识库,然后以试运行方式执行设置步骤,列出所有修改,之后才会应用任何内容。在你批准经审阅的计划之后,它才会应用设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Wiki orchestration
Treat the installed product as code and the selected user vault as data. Never use the plugin/product root as a vault, even when the current directory happens to be the product checkout.
Resolve the portable core from this skill's installation and invoke it by absolute path:
CORE=/absolute/product/root/scripts/claude-obsidian.py
python3 "$CORE" --help
Resolve a vault in this order: explicit --vault,
CLAUDE_OBSIDIAN_VAULT, the nearest .claude-obsidian.json, then an
unambiguous initialized vault at or above the current directory. Fail closed when
selection is missing or ambiguous.
Baseline setup requires no network egress. Do not fetch templates, plugins, or remote content unless the user separately approves the destinations and budget.
Set up a vault
Use the deterministic setup commands. Both are dry-run by default.
For a new, separate vault:
python3 "$CORE" init /absolute/path/to/vault \
--generated-at <ISO-UTC> --operation-id init-reviewed
python3 "$CORE" init /absolute/path/to/vault \
--generated-at <ISO-UTC> --operation-id init-reviewed \
--approved-plan-sha256 <reviewed-sha256> --apply
For an existing Obsidian vault:
python3 "$CORE" adopt /absolute/path/to/vault \
--generated-at <ISO-UTC> --operation-id adopt-reviewed
python3 "$CORE" adopt /absolute/path/to/vault \
--generated-at <ISO-UTC> --operation-id adopt-reviewed \
--approved-plan-sha256 <reviewed-sha256> --apply
Before --apply, show the selected path and changed-path preview, then pass
the emitted approved_plan_sha256 unchanged. Do not use
--force unless the user has reviewed the conflicts and explicitly approved
replacement. Setup is non-destructive by default and creates no upstream Git
remote.
If the user asks for a domain-specific scaffold, establish the baseline first, then read modes.md. Draft the additional pages and configuration as one operation-level transaction. Never mutate vault files with host Write/Edit tools or an Obsidian transport.
Route operations
Route the user's intent without silently broadening it:
| Intent | Skill |
|---|---|
| Ingest supplied sources | wiki-ingest |
| Answer from existing vault knowledge | wiki-query |
| Save a specific conversation result | save |
| Research the public web under a budget | autoresearch |
| Check vault health | wiki-lint |
| Draft a cited glossary or consolidate overlapping notes | wiki-ingest, with an explicitly reviewed scope |
| Roll up log entries | wiki-fold |
| Work with a canvas | canvas |
Query is read-only. Persistence from a query must be an explicit, separately scoped Save operation. Never capture a transcript or update the hot cache merely because a session ended.
Mutation contract
Read operation-transactions.md before
any custom scaffold or mutation. One logical operation must produce one inspected
and recoverable claude-obsidian.transaction.v1 bundle. Parallel agents may
return drafts and evidence only; the orchestrator merges them and applies once.
Every canonical page create or removal includes an active index or MOC update
in that bundle; update the overview only when the stable high-level picture
changed. Raw source payloads are create-only. There are no automatic commits.
Use provenance.md when initializing or changing source and claim ledgers. Unsupported evidence stays unsupported; never invent a source, quote, date, locator, or confidence.
After a successful apply, report the operation ID and exact changed paths. If the user explicitly wants a Git checkpoint, run it separately:
python3 "$CORE" checkpoint OPERATION_ID --vault /absolute/path/to/vault
On a conflict, re-read and rebuild. On interruption, use transaction recover.
Reuse an operation ID only with the identical bundle.
Installation context
Read install-modes.md when installation or host behavior matters. Hooks are optional adapters; portable behavior lives in the core and skills.
Conditional references
Read only the reference needed for the current request:
- frontmatter.md when defining or adopting a property schema;
- css-snippets.md for requested Obsidian visual customization;
- git-setup.md for explicit local Git or checkpoint setup;
- [plugins.md](re
常见问题
设置时会下载任何内容吗?
不会。基础设置不需要网络访问,任何下载都需要单独批准。
它会不经询问就应用修改吗?
不会。设置会先以预览方式运行,只有在计划获得批准后才会应用修改。
它如何选择知识库?
它会使用明确指定的路径、已保存的设置、项目配置文件,或附近唯一已初始化的知识库。
详情
作者的原始描述
Initialize, adopt, and route work for a separate Obsidian knowledge vault through the portable claude-obsidian core. Use for vault setup, scaffolding, workspace selection, cross-project configuration, or choosing the correct wiki sub-skill. Triggers: /wiki, set up wiki, scaffold vault, create knowledge base, adopt this vault, Obsidian vault, second brain setup, persistent wiki.
热度
- GitHub 星标
- 16k
- 排名
- #10818
- 许可证
- MIT
- 更新时间
- 2026/10/25
评论
- …
同一仓库的更多技能
autoresearch
16k让你的智能体在设定的范围内研究某个主题,并起草带引用的报告。网络发现的内容只作为证据保存,不会自动加入你的笔记。
canvas
16k帮你的智能体在 Obsidian 中创建和更新可视化画板,画板可以容纳笔记、文件、链接和分组,适合制作思维导图和空间布局。
defuddle
16k帮你的智能体规划如何把网页清理成可读的文本,并保存源文件的本地副本。网络清理功能目前尚不可用。
obsidian-bases
16k帮你的智能体设计 Obsidian Bases 视图,使其像简单的数据库一样工作,支持筛选、公式,以及表格或卡片布局。