Community编程与开发github.com

Obsidian

使用官方 `obsidian` CLI 与 Obsidian 知识库交互:读取/搜索/创建/编辑笔记、任务、链接、属性和插件。

Obsidian 是什么?

该技能通过官方 `obsidian` 命令行界面(CLI)提供与 Obsidian 知识库交互的能力。用户可以直接在终端中执行笔记的读取、搜索、创建、修改、移动和删除等操作,同时支持任务管理、属性编辑、标签查询以及链接跟踪。技能要求本地安装 Obsidian 1.12.7 及以上版本,并启用命令行界面功能,运行时需要 Obsidian 应用保持运行状态,CLI 通过进程间通信与应用连接。支持 macOS 和 Linux 平台,macOS 自动注册 CLI 路径,Linux 则复制二进制文件至 `~/.local/bin/obsidian`。技能手册详细说明了 vault 结构、命令模式及常见命令示例,并特别强调直接文件编辑用于批量文本修改,而 CLI 命令用于 Obsidian 感知的更新操作。开发者调试功能包括插件重载、错误查看、截屏和 eval 命令,便于开发和测试。

兼容平台~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:*.canvas JSON。
  • 附件:vault 配置的文件夹。
  • 多个知识库很常见;当有歧义时传递 vault="<名称>"。

Obsidian 桌面版在此处跟踪知识库:

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

命令模式

obsidian <命令> [名称=值] [标志]
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="新笔记"
obsidian create path="Inbox/Idea.md" content="# Idea"
obsidian append file=Note content="新行"
obsidian prepend file=Note content="在 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="- [ ] 回顾收件箱"
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> 为精确路径。
  • 对于 Obsidian 感知的更新,优先使用 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.

相关技能