Community程式設計與開發github.com

Obsidian

透過官方 obsidian CLI 與 Obsidian 筆記庫協作:閱讀、搜尋、建立、編輯筆記、任務、連結、屬性與外掛程式。

Obsidian 是什麼?

此技能讓 AI 代理能利用官方 `obsidian` 命令列介面與 Obsidian 筆記庫互動。由於筆記庫檔案是純 Markdown,當直接編輯檔案更安全或更快時,代理仍可選擇直接操作檔案。技能支援筆記庫的打開、讀取、搜尋、建立、附加、移動、刪除,以及每日筆記、任務管理、屬性操作與反向連結查詢。它也包含開發者除錯工具,如重新載入外掛、擷取螢幕截圖及執行任意 JavaScript 運算式。代理應優先使用 CLI 進行筆記庫感知的操作,並在大量文字變更時回到直接 Markdown 編輯。此技能僅與官方 Obsidian CLI 相容,不依賴第三方工具。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/obsidian

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Obsidian 是做什麼的?

使用官方 obsidian CLI 進行 Obsidian 筆記庫操作。筆記庫檔案是純 Markdown,因此當直接編輯檔案更安全或更快時,仍可採用。

需求

  • 已安裝 Obsidian 1.12.7+。
  • 設定 → 一般 → 命令列介面 已啟用。
  • obsidian 已註冊至 PATH。
  • Obsidian 應用程式正在執行;CLI 會連接到執行中的應用程式。

檢查:

obsidian version
obsidian help

macOS 註冊會建立 /usr/local/bin/obsidian 指向應用程式內建的 CLI。Linux 註冊會將二進位檔複製到 ~/.local/bin/obsidian。

筆記庫模型

  • 筆記:*.md。
  • 設定:.obsidian/;除非被要求,否則避免編輯。
  • 畫布:*.canvas JSON。
  • 附件:筆記庫設定的資料夾。
  • 多個筆記庫很常見;有歧義時傳入 vault="<名稱>"。

Obsidian 桌面版在此處追蹤筆記庫:

  • ~/Library/Application Support/obsidian/obsidian.json

指令模式

obsidian <command> [name=value] [flag]
obsidian vault="Notes" search query="meeting notes" format=json

含空白的參數值需要引號。在有用處時加入 --copy 以複製輸出。

常用指令

開啟/讀取:

obsidian open file=Recipe
obsidian open path="Inbox/Idea.md" newtab
obsidian read
obsidian read file=Recipe

搜尋:

obsidian search query="TODO" matches
obsidian search query="status::active" format=json
obsidian search:open query="project notes"

建立/修改:

obsidian create name="New Note"
obsidian create path="Inbox/Idea.md" content="# Idea"
obsidian append file=Note content="New line"
obsidian prepend file=Note content="After frontmatter"

移動/刪除:

obsidian move file=Note to=Archive/
obsidian move path="Inbox/Old.md" to="Projects/New.md"
obsidian delete file=Note

每日筆記/任務:

obsidian daily
obsidian daily:read
obsidian daily:append content="- [ ] Review inbox"
obsidian tasks all todo
obsidian task file=Note line=8 done

屬性/連結:

obsidian tags all counts
obsidian property:read file=Note name=status
obsidian property:set file=Note name=status value=done
obsidian backlinks file=Note
obsidian unresolved verbose counts

開發者/除錯:

obsidian plugin:reload my-plugin
obsidian dev:errors
obsidian dev:screenshot file=shot.png
obsidian eval "app.vault.getFiles().length"

備註

  • file=<名稱> 使用 Obsidian 風格的檔案解析;path=<筆記庫相對路徑.md> 是精確路徑。
  • 偏好使用 CLI 的移動/刪除/屬性指令以獲得筆記庫感知的更新。
  • 在找到筆記庫路徑後,大量文字變更時偏好直接 Markdown 編輯。
  • 除非使用者明確要求,否則不要依賴第三方 obsidian-cli。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能