提示词.com

Obsidian 笔记库

GitHub kepano/obsidian-skills ★ 49k MIT

在你的 Obsidian 笔记库里搜索、新建、整理笔记和任务,还能做 Canvas 白板。

复制这句话,粘给 Claude Code

帮我用 https://github.com/kepano/obsidian-skills 安装 Obsidian skills,然后帮我在笔记库里找出所有提到「读书」的笔记,整理成一份书单

它会按这个仓库把 skill 装好,然后直接开始干活。把后半句换成你自己的任务即可。

想手动安装?
/plugin marketplace add kepano/obsidian-skills
/plugin install obsidian@obsidian-skills

它能帮你做什么

  • 操作你的笔记库:搜索、读取、新建、追加笔记,改属性,查反向链接和标签统计
  • 管理日记和任务:往今天的日记里加待办,列出未完成的任务
  • 懂 Obsidian 的格式:同一个仓库里还带了 Obsidian Markdown、JSON Canvas 白板和 Bases 数据库视图的写法,生成的内容 Obsidian 能直接识别
  • 插件开发:写 Obsidian 插件或主题时,能帮你重载插件、看报错、截图检查效果

还可以这样说

  • 帮我把今天会议的要点追加到今天的日记里,待办单独列成任务
  • 帮我把「项目」文件夹里的笔记做成一张 Canvas 白板,按主题分组连线
  • 帮我统计一下笔记库里用得最多的 20 个标签

使用前须知

  • 需要 Obsidian 桌面版 1.12.7 以上的安装包,并在「设置 → 通用」里打开「命令行界面」
  • 使用时 Obsidian 要开着,没开的话第一条命令会把它启动起来
  • 不需要任何 key
查看 SKILL.md 原文

Obsidian CLI

Use the obsidian CLI to interact with a running Obsidian instance. Requires Obsidian to be open.

Command reference

Run obsidian help to see all available commands. This is always up to date. Full docs: https://help.obsidian.md/cli

Syntax

Parameters take a value with =. Quote values with spaces:

obsidian create name="My Note" content="Hello world"

Flags are boolean switches with no value:

obsidian create name="My Note" silent overwrite

For multiline content use \n for newline and \t for tab.

File targeting

Many commands accept file or path to target a file. Without either, the active file is used.

  • file=<name> — resolves like a wikilink (name only, no path or extension needed)
  • path=<path> — exact path from vault root, e.g. folder/note.md

Vault targeting

Commands target the most recently focused vault by default. Use vault=<name> as the first parameter to target a specific vault:

obsidian vault="My Vault" search query="test"

Common patterns

obsidian read file="My Note"
obsidian create name="New Note" content="# Hello" template="Template" silent
obsidian append file="My Note" content="New line"
obsidian search query="search term" limit=10
obsidian daily:read
obsidian daily:append content="- [ ] New task"
obsidian property:set name="status" value="done" file="My Note"
obsidian tasks daily todo
obsidian tags sort=count counts
obsidian backlinks file="My Note"

Use --copy on any command to copy output to clipboard. Use silent to prevent files from opening. Use total on list commands to get a count.

Plugin development

Develop/test cycle

After making code changes to a plugin or theme, follow this workflow:

  1. Reload the plugin to pick up changes:
    obsidian plugin:reload id=my-plugin
    
  2. Check for errors — if errors appear, fix and repeat from step 1:
    obsidian dev:errors
    
  3. Verify visually with a screenshot or DOM inspection:
    obsidian dev:screenshot path=screenshot.png
    obsidian dev:dom selector=".workspace-leaf" text
    
  4. Check console output for warnings or unexpected logs:
    obsidian dev:console level=error
    

Additional developer commands

Run JavaScript in the app context:

obsidian eval code="app.vault.getFiles().length"

Inspect CSS values:

obsidian dev:css selector=".workspace-leaf" prop=background-color

Toggle mobile emulation:

obsidian dev:mobile on

Run obsidian help to see additional developer commands including CDP and debugger controls.

学习研究 笔记markdown自动化