BassShang

Obsidian via notesmd-cli (obsidian-cli)

知識管理v1.0.0
作者:BassShang更新於 2026-05-11obsidian-notesmd-cli@clawhub_bassshang/obsidian-notesmd-cli
知識庫問答筆記整理

據 AlphaMoat 統計,截至 2026-09,Obsidian via notesmd-cli (obsidian-cli) 累計下載 4,856 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 1,933 位,在「知識管理」分類(442 個)中排名第 179 位。

累計安裝
115
累計下載
4856
星標
3
全站排名
#1,933
全站前 39% · 「知識管理」前 41%
平台累計安裝累計下載星標評論
ClawHub ↗11533003-
SkillHub ↗11548563—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

可搜尋筆記內容、建立筆記、檢視或編輯 frontmatter,也可移動、重新命名或刪除筆記;知識庫本質上是磁碟上的普通資料夾。移動或刪除前應核對目標知識庫和筆記路徑,併為重要內容保留備份。 僅在信任 notesmd-cli 可訪問目標知識庫時安裝它。

資料釋出於 2026-10-29

可以用來做什麼

  • 查詢筆記或搜尋正文內容
  • 建立筆記並編輯 frontmatter
  • 移動、重新命名或刪除筆記

什麼時候用

  • 需要在終端中查詢或整理 Obsidian 筆記時
  • 準備移動、編輯後設資料或刪除筆記之前

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

搜尋這個知識庫中與專案計劃相關的筆記,只列出匹配項。
先展示目標知識庫和筆記路徑,再等待我確認後移動這篇筆記。

月度資料趨勢

累計下載4856
1992353050682026-03 · 累計下載 22042026-05 · 累計下載 28502026-06 · 累計下載 30012026-07 · 累計下載 32982026-08 · 累計下載 37462026-09 · 累計下載 485626-0326-09
星標3
2342026-03 · 星標 32026-05 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-094856—3
2026-083746+13.6%3
2026-073298+9.9%3
2026-063001+5.3%3
2026-052850—3
2026-032204—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.9 KB · ClawHub v1.0.0
---
name: obsidian
description: Work with Obsidian vaults (plain Markdown notes) and automate via notesmd-cli.
homepage: https://help.obsidian.md
metadata: {"clawdbot":{"emoji":"💎","requires":{"bins":["notesmd-cli"]},"install":[{"id":"brew","kind":"brew","formula":"yakitrak/yakitrak/notesmd-cli","bins":["notesmd-cli"],"label":"Install notesmd-cli (brew)"}]}}
---

# Obsidian

Obsidian vault = a normal folder on disk.
展開全部(共 61 行)
Vault structure (typical)
- Notes: `*.md` (plain text Markdown; edit with any editor)
- Config: `.obsidian/` (workspace + plugin settings; usually don’t touch from scripts)
- Canvases: `*.canvas` (JSON)
- Attachments: whatever folder you chose in Obsidian settings (images/PDFs/etc.)

## Find the active vault(s)

Obsidian desktop tracks vaults here (source of truth):
- `~/Library/Application Support/obsidian/obsidian.json`

`notesmd-cli` resolves vaults from that file; vault name is typically the **folder name** (path suffix).

Fast “what vault is active / where are the notes?”
- If you’ve already set a default: `notesmd-cli print-default --path-only`
- Otherwise, read `~/Library/Application Support/obsidian/obsidian.json` and use the vault entry with `"open": true`.

## notesmd-cli quick start

Pick a default vault and open behavior (once):
- `notesmd-cli set-default "<vault-folder-name>"`
- `notesmd-cli set-default --open-type editor` (Sets default to use your terminal/GUI `$EDITOR` instead of opening the Obsidian app)
- `notesmd-cli print-default` / `notesmd-cli print-default --path-only`

Search
- `notesmd-cli search` (Interactive fuzzy search for notes; respects Obsidian's excluded files)
- `notesmd-cli search-content "query"` (Searches inside notes; shows snippets + lines)

Create
- `notesmd-cli create "Folder/New note" --content "..."`
- `notesmd-cli create "New note" --open` (Opens in Obsidian, or `$EDITOR` if `--editor` flag is passed)
- **Note:** Works directly on disk (headless supported); Obsidian does *not* need to be running. Reads `.obsidian/app.json` for default new file locations.

Daily Notes
- `notesmd-cli daily` (Creates or opens today's daily note directly on disk)
- Automatically reads your `.obsidian/daily-notes.json` for folder, format, and template configurations.

Frontmatter (YAML Metadata)
- `notesmd-cli frontmatter "NoteName" --print`
- `notesmd-cli frontmatter "NoteName" --edit --key "status" --value "done"`
- `notesmd-cli frontmatter "NoteName" --delete --key "draft"`

Move/rename (safe refactor)
- `notesmd-cli move "old/path/note" "new/path/note"`
- Updates `[[wikilinks]]` and common Markdown links across the vault (this is the main win vs standard `mv`).

Delete
- `notesmd-cli delete "path/note"`

Prefer direct edits when appropriate: open the `.md` file in any editor (`notesmd-cli open "note" --editor`) and change it; Obsidian will automatically pick it up.

「知識管理」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。