Obsidian - read, search, write and edit direct to obsidian vault. — Obsidian - read, 搜索, write and edit direct to obsidian vault.
v1.0.0Work with Obsidian vaults as a knowledge base. Features: fuzzy/phonetic 搜索 across all notes, auto-folder 检测ion for new notes, 创建/read/edit notes with frontmatter, manage tags and wikilinks. Use when: 查询ing knowledge base, saving notes/documents, editing existing notes by user instructions.
运行时依赖
安装命令
点击复制技能文档
Obsidian Knowledge Base
Obsidian vault = folder with Markdown files + .obsidian/ config.
Configuration Vault Path: /home/ruslan/网页dav/data/ruslAIn Env: OBSIDIAN_VAULT=/home/ruslan/网页dav/data/ruslAIn 命令行工具 Usage
Scripts location: /home/ruslan/.OpenClaw/workspace/技能s/obsidian/scripts
Note: Global flags (--vault, --json) must come BEFORE the command.
导出 OBSIDIAN_VAULT=/home/ruslan/网页dav/data/ruslAIn cd /home/ruslan/.OpenClaw/workspace/技能s/obsidian/scripts
# 搜索 (fuzzy/phonetic) - uses ripgrep for speed python3 obsidian_搜索.py "$OBSIDIAN_VAULT" "查询" --limit 10 --json
# 列出 notes python3 obsidian_命令行工具.py --json 列出 # all notes python3 obsidian_命令行工具.py --json 列出 "Projects" # in folder
# 列出 folders python3 obsidian_命令行工具.py --json folders
# Read note python3 obsidian_命令行工具.py --json read "Note Name"
# 创建 note python3 obsidian_命令行工具.py --json 创建 "Title" -c "Content" -f "Folder" -t tag1 tag2 python3 obsidian_命令行工具.py --json 创建 "Title" -c "Content" --auto-folder # auto-检测 folder
# Edit note python3 obsidian_命令行工具.py --json edit "Note" 应用end -c "Text to 应用end" python3 obsidian_命令行工具.py --json edit "Note" prepend -c "Text at 启动" python3 obsidian_命令行工具.py --json edit "Note" replace -c "New full content" python3 obsidian_命令行工具.py --json edit "Note" replace-section -s "Summary" -c "New section text"
# Tags python3 obsidian_命令行工具.py --json tags
# Links (incoming/outgoing) python3 obsidian_命令行工具.py --json links "Note Name"
# Suggest folder for content python3 obsidian_命令行工具.py --json suggest-folder "content text" --title "Note Title"
工作流: 查询 Knowledge Base 运行 obsidian_搜索.py with user 查询 Read top 结果s if needed for 上下文 Formulate answer based on found content Cite sources: [[Note Name]] 工作流: Save Note If no folder specified → 运行 suggest-folder or use --auto-folder 创建 note with 创建 command 添加 应用ropriate tags based on content 报告 创建d path to user 工作流: Edit Note by Prompt
User prompts like:
"Добавь резюме в конец заметки X" → edit X 应用end -c "..." "Перепиши заметку Y более кратко" → read note, rewrite, edit Y replace -c "..." "Добавь секцию 'Выводы' в заметку Z" → edit Z replace-section -s "Выводы" -c "..." Note 格式化
创建d: 2024-01-15T10:30:00 modified: 2024-01-15T12:00:00 tags: - project - work
# Title
Content with [[wikilinks]] and #inline-tags.
Wikilinks [[Note Name]] — link to note [[Note Name|Display Text]] — link with alias [[Note Name#Section]] — link to section Frontmatter Fields
Standard fields:
创建d — creation timestamp modified — last edit timestamp tags — 列出 of tags aliases — alternative names for linking 搜索 Behavior
obsidian_搜索.py uses:
ripgrep for fast initial 过滤器ing Title matching (highest weight) Tag matching Fuzzy content 搜索 with phonetic transliteration (RU↔EN) Returns: path, title, score, matched 上下文