360 Secure SkillHub
360 安全技能中心

Obsidian Sync KB

核心功能:可将Obsidian「笔记同步助手」收件箱内容构建为可检索本地知识库,支持构建/刷新索引、关键词查询、内容标记、统计等操作。典型场景:需结构化Obsidian同步笔记为检索-ready知识库时使用。通过命令行操作,查询可指定主题、输出格式,返回带Obsidian路径与原URL的引用结论、关键摘录等,还生成主题卡片、更新日志和每日摘要。

pangkaifeng
pangkaifeng
热度 39.83
最近更新 2026-05-11 17:37:23
分类:知识依赖:代码执行 / 读写文件 / 联网浏览搜索应用场景:笔记整理 / 研究 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add obsidian-sync-kb
Metadata
name
obsidian-sync-kb
description
Build a searchable local knowledge base from an Obsidian vault's "笔记同步助手" inbox, then answer with citations, topic cards, update logs, and daily digests for OpenClaw. Use when users want to structure synced Obsidian notes into a retrieval-ready knowledge base.

Obsidian Sync KB

Turn an Obsidian 笔记同步助手 inbox into a local retrieval-ready knowledge base for OpenClaw.

Setup

Initialize the skill for a specific vault:

python3 scripts/setup_config.py --vault-root "/absolute/path/to/ClawVault"

The setup script writes scripts/config.yaml. You can also skip setup and set OBSIDIAN_SYNC_KB_VAULT=/absolute/path/to/ClawVault.

Commands

Build or refresh the index:

python3 scripts/kb_tool.py build-index
python3 scripts/kb_tool.py build-index --force-full-rescan
python3 scripts/kb_tool.py build-index --disable-network

Query the inbox knowledge base:

python3 scripts/kb_tool.py query "怎么更好让 AI 做检索"
python3 scripts/kb_tool.py query "OpenClaw harness" --topic openclaw --format json

Promote and curate:

python3 scripts/kb_tool.py promote
python3 scripts/kb_tool.py star retrieval-rag --type topic
python3 scripts/kb_tool.py stats

Behavior

  • Treat the synced inbox as read-only source material.
  • Build normalized docs, chunks, topic cards, update logs, and a daily change digest.
  • Prefer source notes, original URLs, and obsidian:// references before external search.
  • Return 简要结论, 相关文章, 关键摘录, and 引用来源.
  • Every citation must include the Obsidian path and original URL when available.
  • If a hit is a bad_capture or needs_manual_access, make that explicit instead of treating it as a valid source.