← 返回 Skills 市场
archlab-space

Obsidian Vault Writer

作者 devasher · GitHub ↗ · v0.2.1 · MIT-0
cross-platform ✓ 安全检测通过
61
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install obsidian-vault-writer
功能描述
Use when saving content to an Obsidian vault, appending to daily notes, or writing structured output from another skill into a vault. Designed for VPS and he...
使用说明 (SKILL.md)

Obsidian Vault Writer

Append and write content to Obsidian vaults using notesmd-cli. Works without the Obsidian desktop app — suitable for servers, VPS, and CI environments.

For Obsidian-flavored Markdown syntax see references/obsidian-markdown.md. For Canvas files see references/obsidian-canvas.md. For Bases files see references/obsidian-bases.md. For full notesmd-cli command reference see references/notesmd-cli.md.


Step 1 — Check Vault Setup

notesmd-cli list-vaults --default --path-only
  • Output is a path → vault is registered; use it for this session.
  • Empty output → vault is not registered. Suggest a default and ask:

    "No vault registered. Recommended path: ~/vaults/obsidian. Use this, or enter a different absolute path?" Then register with the confirmed path:

notesmd-cli add-vault /path/to/vault --set-default

Confirm the vault name with:

notesmd-cli list-vaults --default

Step 2 — Append to Daily Note

notesmd-cli daily --content "\x3Cformatted-content>"

To target a specific vault by name:

notesmd-cli daily --content "\x3Cformatted-content>" --vault "{vault-name}"

notesmd-cli reads .obsidian/daily-notes.json from the vault automatically for folder, date format, and template. No manual path resolution is needed.

For multiline content, use \ for newlines.


Step 3 — Create or Update Notes

# Create a new note (leaves existing notes unchanged if no flag)
notesmd-cli create "{note-path}" --content "..." --vault "{vault-name}"

# Append to an existing note
notesmd-cli create "{note-path}" --content "..." --append --vault "{vault-name}"

# Overwrite an existing note (only with explicit user consent)
notesmd-cli create "{note-path}" --content "..." --overwrite --vault "{vault-name}"

Intermediate directories are created automatically. When {note-path} contains no /, the vault's configured default folder (from .obsidian/app.json) is used; otherwise the path is relative to the vault root.


Safety Rules

  • Confirm the vault at least once per session before writing.
  • Never write to a vault not confirmed in this session.
  • Never overwrite an existing note without explicit user consent.
  • Never store vault credentials or sync tokens in the conversation.

Feedback

If the user expresses a need this skill does not cover, or is unsatisfied with the result, append this to your response:

"This skill may not fully cover your situation. Suggestions for improvement are welcome — open an issue or PR."

Do not include this message in normal interactions.

安全使用建议
Before installing, confirm that you trust the third-party notesmd-cli package and that the selected vault path is the one you want the agent to modify. Use explicit prompts for overwrite, move, or delete operations, and avoid storing sync tokens or credentials in notes or chat context.
能力评估
Purpose & Capability
The stated purpose is to write, append, and create Obsidian notes, and the main artifact consistently describes that behavior.
Instruction Scope
The runtime instructions require confirming the vault for the session and explicit user consent before overwriting, though the CLI reference also documents broader notesmd-cli commands such as move and delete.
Install Mechanism
Installation is disclosed as a Homebrew install of the third-party notesmd-cli binary; the skill itself contains only markdown artifacts and no executable scripts.
Credentials
Using a local vault path and a headless CLI is proportionate for writing Obsidian notes on servers or CI systems.
Persistence & Privilege
The skill intentionally creates and appends persistent files in a user-selected vault, and overwrite behavior is gated on explicit consent.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install obsidian-vault-writer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /obsidian-vault-writer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.1
Rewrote frontmatter description to concise 200–500 character format for improved agent-trigger clarity.
v0.2.0
### Changed - Replaced dual-mode obsidian CLI + obsidian-headless with `notesmd-cli` as the sole interface - `notesmd-cli` works without Obsidian installed (server/VPS environments) - Vault setup now uses `notesmd-cli add-vault` instead of manual config file parsing - Daily note appending uses `notesmd-cli daily --content` (auto-reads daily notes config) - Removed Obsidian Sync dependency (`obsidian-headless` required a paid subscription) ### Removed - `references/obsidian-headless.md` - `references/obsidian-cli.md` (replaced by `references/notesmd-cli.md`)
元数据
Slug obsidian-vault-writer
版本 0.2.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Obsidian Vault Writer 是什么?

Use when saving content to an Obsidian vault, appending to daily notes, or writing structured output from another skill into a vault. Designed for VPS and he... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 61 次。

如何安装 Obsidian Vault Writer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install obsidian-vault-writer」即可一键安装,无需额外配置。

Obsidian Vault Writer 是免费的吗?

是的,Obsidian Vault Writer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Obsidian Vault Writer 支持哪些平台?

Obsidian Vault Writer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Obsidian Vault Writer?

由 devasher(@archlab-space)开发并维护,当前版本 v0.2.1。

💬 留言讨论