跳到正文
cccskills
免费在 GitHub 公开

open

Open a note in Obsidian from Claude Code

中文简介正在准备中。当前显示原文说明。

集成工具Obsidian
查看安装方法

包含的文件(1)

  • SKILL.md2.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/open - Open in Obsidian

Opens a vault note in Obsidian directly from Claude Code.

Usage

/open <note name>             # Open by name (fuzzy match)
/open daily                   # Open today's daily note
/open Concept - CAMO          # Open a specific note
/open Meeting - 2026-02-11    # Open by partial name

Instructions

1. Resolve the Note

Determine what the user wants to open:

  • "daily" or "today" — resolve to Daily/YYYY/YYYY-MM-DD using today's date
  • Exact filename — use as provided
  • Partial name — use Glob to find the matching file:
# Find by partial name

Use the Glob tool with pattern **/*<name>*.md to find the file. If multiple matches, pick the most likely one or ask the user.

2. Build the URI Path

Convert the file path to a URI-encoded relative path (from vault root):

  • Strip the vault root prefix
  • Strip the .md extension
  • URL-encode spaces as %20
  • URL-encode forward slashes as %2F

Examples:

  • Daily/2026/2026-02-11.md → Daily%2F2026%2F2026-02-11
  • Concept - Context Engineering.md → Concept%20-%20Context%20Engineering
  • Meetings/2026/Meeting - 2026-02-11 Stand Up.md → Meetings%2F2026%2FMeeting%20-%202026-02-11%20Stand%20Up

3. Open in Obsidian

Run this command with dangerouslyDisableSandbox: true (required for inter-process communication):

open "obsidian://open?vault=BA-DavidOliver-ObsidianVault&file=<encoded_path>"

The sandbox must be disabled — the open command needs macOS Launch Services to activate Obsidian, which is blocked in sandbox mode.

4. Confirm

Tell the user which note was opened. If Obsidian is not running, the error will mention procNotFound — tell the user to start Obsidian first.

Special Cases

InputResolves To
daily / todayDaily/YYYY/YYYY-MM-DD (today's date)
yesterdayDaily/YYYY/YYYY-MM-DD (yesterday's date)
A person's namePeople/<Name>.md
A type prefix (e.g. ADR - )Search in the appropriate folder

Troubleshooting

"procNotFound" error → Obsidian is not running. Ask the user to start it.

"operation not permitted" error → Sandbox was not disabled. Ensure dangerouslyDisableSandbox: true is set on the Bash call.

Wrong note opened → Multiple files matched. Use a more specific name or provide the full path.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Batch populate summary fields using content analysis

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB532026年3月2日 更新

auto-tag

免费

Batch auto-tag untagged notes using content analysis

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB532026年3月2日 更新

Generate C4 architecture diagrams from system notes

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB532026年3月2日 更新

canvas

免费

Create and edit Obsidian Canvas files for architecture visualization

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB532026年3月2日 更新

Check Outlook inbox and update daily note with message summary

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB532026年3月2日 更新

commit

免费

Stage and commit vault changes with UK English conventional commit messages

中文简介正在准备中。当前显示原文说明。

DavidROliverBA/ArchitectKB532026年3月2日 更新

查看 DavidROliverBA 的全部技能

报告此技能的问题