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
累计下载
4,856
星标
3
全站排名
#1,933
全站前 39% · 「知识管理」前 41%
平台累计安装累计下载星标评论
ClawHub ↗1153,3003-
SkillHub ↗1154,8563—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

可搜索笔记内容、创建笔记、查看或编辑 frontmatter,也可移动、重命名或删除笔记;知识库本质上是磁盘上的普通文件夹。移动或删除前应核对目标知识库和笔记路径,并为重要内容保留备份。 仅在信任 notesmd-cli 可访问目标知识库时安装它。

资料发布于 2026-10-29

可以用来做什么

  • 查找笔记或搜索正文内容
  • 创建笔记并编辑 frontmatter
  • 移动、重命名或删除笔记

什么时候用

  • 需要在终端中查找或整理 Obsidian 笔记时
  • 准备移动、编辑元数据或删除笔记之前

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

搜索这个知识库中与项目计划相关的笔记,只列出匹配项。
先展示目标知识库和笔记路径,再等待我确认后移动这篇笔记。

月度数据趋势

累计下载4,856
1,9923,5305,0682026-03 · 累计下载 2,2042026-05 · 累计下载 2,8502026-06 · 累计下载 3,0012026-07 · 累计下载 3,2982026-08 · 累计下载 3,7462026-09 · 累计下载 4,85626-0326-09
星标3
2342026-03 · 星标 32026-05 · 星标 32026-06 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-094,856—3
2026-083,746+13.6%3
2026-073,298+9.9%3
2026-063,001+5.3%3
2026-052,850—3
2026-032,204—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),按月更新。口径说明见数据方法。