Obsidian wiki vault 原生工具:wiki_query、wiki_write、wiki_rename、wiki_scaffold、wiki_archive、wiki_lint 覆盖 BM25 链接图检索、带 sha256 源追踪的簿记式写入、全库改名、模式化脚手架、源归档与健康检查,并内置跨进程锁与可选 git 自动提交。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-plugin-wiki-tools
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Lion-1209/dsh-plugin-wiki-tools
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
English | 中文
Native DeepSeek Harness tools for an Obsidian wiki vault: wiki_query, wiki_write, and wiki_lint implement the mechanical core of the wiki skill suite — path routing, frontmatter completion, index/log bookkeeping, source delta tracking, and health checks — so the model spends its turns on synthesis instead of filesystem chores.
Pair with dsh-plugin-wiki-skills for the prompt-level skills (wiki, wiki-ingest, wiki-query, wiki-lint, save).
Attribution
The vault layout and operation contracts follow the LLM Wiki pattern (Andrej Karpathy) as embodied by claude-obsidian (MIT, © 2026 AgriciDaniel). This package is an independent plain-ESM implementation of the mechanical core; it contains no code or skill text from claude-obsidian.
Tools
| Tool | What it does |
|---|---|
wiki_query |
Quick mode returns hot.md + index.md verbatim (the skill's read order); standard mode is full-text search over content pages with snippets and the inbound/outbound link graph |
wiki_write |
Writes one page with complete bookkeeping: type→folder routing, frontmatter completion (keeps created and unknown fields on update), filename-uniqueness guard, master-index entry, log entry; with source_path, records the source hash and skips unchanged sources unless force |
wiki_lint |
Health check: duplicate filenames, dead wikilinks, orphan pages, frontmatter gaps, empty sections, stale index entries, stale hot cache — report only, with suggestions, written to wiki/meta/lint-report-<date>.md |
Install and configure
dsh plugin --profile web add dsh-plugin-wiki-tools
vaultPath is required. The boot fails loud until you set it from your profile's cordis.patch.yml:
- id: wiki-tools
config:
vaultPath: /absolute/path/to/vault
# optional: reroute page types to your vault's folders; index section
# headings follow the mapped folder name (e.g. "## Areas")
typeFolders:
domain: wiki/areas
The vault is the directory holding wiki/ and .raw/ — scaffold it first with the wiki skill's SCAFFOLD operation. maxQueryResults (default 10) is optional. wiki_write refreshes existing index entries in the section's own style (: or —), so em-dash vaults stay consistent.
Design notes
- The vault is host-local user data outside any session workspace (cross-project referencing is the point), so the tools read and write through
node:fsagainst the explicitly configured absolute root — not a dsh filesystem seam. - Writes serialize per target file in-process; filenames are guarded unique vault-wide because wikilinks resolve by bare name.
- Registers on
ctx.toolsviadefineTool; schemas stay stable regardless of vault contents.
Develop
npm install
node --test
License
中文
Obsidian wiki vault 的 DeepSeek Harness 原生工具:wiki_query、wiki_write、wiki_lint 实现知识库技能套件的机械核心(路径路由、frontmatter 补全、索引/日志簿记、来源增量追踪、健康检查),让模型把轮次花在综合而非文件操作上。与 dsh-plugin-wiki-skills 配套使用。
出处
vault 布局与操作契约遵循 LLM Wiki 模式(Karpathy),形态来自 claude-obsidian(AgriciDaniel,MIT)。本包为独立的纯 ESM 实现,不含 claude-obsidian 的代码或技能文本。
安装与配置
dsh plugin --profile web add dsh-plugin-wiki-tools
vaultPath 为必填项:在你的 profile cordis.patch.yml 里覆盖 wiki-tools 行的 config 指向 vault 根目录(含 wiki/ 与 .raw/,先用 wiki 技能的 SCAFFOLD 操作搭建),否则启动时会明确报错并给出示例。
链接
同类插件
superdesigndev/treg★ 477
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
zhaoolee/notes#dsh-plugin★ 147
将 DSH 对话导出为锤子便签风格 PNG,或在配置的账号工作区中新建和更新 Markdown 便签。
taxueseek/argo#dsh-plugin★ 101
专为 agent 打造的搜索工具:多语言,覆盖中文/英文/学术/代码/购物/金融/新闻/百科。
omdsh-dev/dsh-data-agent★ 55
让 AI 帮你连数据库、写 SQL。
heartleo/hn-cli#hacker-news★ 50
用于获取 Hacker News 榜单、讨论串、搜索和用户资料的工具。
geml-spec/geml#integrations/dsh-plugin★ 24
按块寻址的文档读写:MCP server 提供 geml_get / geml_set / geml_check 等工具,Agent 只取回或改写 Markdown、GEML 文档中的某一个块,而不是整篇文件。另带 GEML 写作技能,以及把项目调用图构建为 GEML codemap 并浏览的代码图谱技能。