mh-obsidian
由 mohdalhashemi98-hue 提供
DevOps & Cloud简介
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
描述
该技能的功能
Interact with Obsidian vaults from the command line using obsidian-cli. Supports searching, creating, moving, and deleting notes while preserving wikilink integrity across the vault.
Moving or renaming notes via obsidian-cli updates all wikilinks vault-wide, which a plain file rename does not.
何时使用
- Search note content for a forgotten idea across a large vault
- Create a new note from a script or template automatically
- Rename a note without breaking wikilinks to it
- Find which vault is currently active on a machine
- Batch-create meeting notes from a scheduled workflow
示例工作流
User asks: find all notes mentioning 'project alpha' and create a summary note
- 1
Run obsidian-cli print-default --path-only to confirm the active vault path
- 2
Run obsidian-cli search-content 'project alpha' to retrieve matching notes and snippets
- 3
Compile relevant excerpts into a summary string
- 4
Run obsidian-cli create 'Projects/Project Alpha Summary' --content '<summary>' --open
A new note at Projects/Project Alpha Summary is created in the vault and opened in Obsidian
前置要求
- obsidian-cli installed (brew install yakitrak/yakitrak/obsidian-cli)
- Obsidian desktop app installed with URI handler active
安装
clawhub install mohdalhashemi98-hue/mh-obsidian运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。