obsidian-cli
Skill9 starsChanged 4 months agoMITView on GitHub
使用 Obsidian CLI 读取、创建、搜索和操作当前 Obsidian 知识库中的笔记。当用户提到 "Obsidian"、"vault"、"日记"、"读取笔记"、"搜索笔记" 或需要与 Obsidian 知识库交互时使用此 skill。
84 other projects use a version of this.
Adopted by
Most recently taken up by
- Bruno-Cunha-Souza/ValarMindSkillstheir own version, first seen Nov 8, 2026
- levi-qiao/obsidian-llm-wikitheir own version, first seen Nov 8, 2026
- shkodnik1917/claude-brainlabtheir own version, first seen Nov 8, 2026
- LARi-UQAC/ResearchToolstheir own version, first seen Nov 5, 2026
- The-AIOS/aiostheir own version, first seen Nov 3, 2026
- vijaysuperpositionist/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use defuddle, knap and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HK-hubSkilldefuddle
Extract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page.
Also in 35 projects that use this
lucasmaher-hashSkillknap
Render Markdown from templates and structured data using Knap CLI. Use when the user asks to apply a Knap template, turn JSON or CSV data into notes, batch-generate Markdown files, or format Defuddle output into a note.
Also in 4 projects that use this
wangzhuofengSkillobsidian-markdown
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
Also in 38 projects that use this
BCS1037Skillmermaid-visualizer
Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.
Also in 5 projects that use this
0xHoneyJarSkillqmd
Local markdown search engine for knowledge bases, notes, and documentation. Combines BM25 full-text search, vector semantic search, and LLM re-ranking. Use when searching through markdown notes, retrieving documents, or managing knowledge collections.
Also in 4 projects that use this
xfstudioSkillcode-review-excellence
Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.
Also in 3 projects that use this
Other versions84 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 84
- kepano/obsidian-skills★ 49ksame name
- breferrari/obsidian-mind★ 5.4ksame name
- Atmosphere/atmosphere★ 3.8ksame name
- pedronauck/skills★ 649same name
- allenhutchison/obsidian-gemini★ 534same name
- sd0xdev/sd0x-dev-flow★ 192same name
- sd0xdev/sd0x-harness★ 192same name
- edrickleong/obsidian-calendar-bases★ 186same name
- benoror/obsidianos_work★ 166same name
- kv0906/pm-kit★ 138same name
74 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository64 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cmo-weather-query/CLAUDE.mdCLAUDE.md
- db_client/CLAUDE.mdCLAUDE.md
- deepseek-search/CLAUDE.mdCLAUDE.md
- documents_ripgrep/CLAUDE.mdCLAUDE.md
- excel-alasql/CLAUDE.mdCLAUDE.md
- game_mahjong_agent/CLAUDE.mdCLAUDE.md
- gaode_map/CLAUDE.mdCLAUDE.md
- magpie-image-gen/CLAUDE.mdCLAUDE.md
- ms_office_x_editer/CLAUDE.mdCLAUDE.md
- ssh2-node/CLAUDE.mdCLAUDE.md
- use_http_mcp/CLAUDE.mdCLAUDE.md
- where-am-i/CLAUDE.mdCLAUDE.md
- 88chaSkill
- agent-browserSkill
- baidu-search-nodejsSkill
- brz-repair-manual-querySkill
- cmo-weather-querySkill
- db-clientSkill
- deepseek-searchSkill
- dianping-searchSkill
- doc-readerSkill
- documents-ripgrepSkill
- drawio-nodejsSkill
- excel-alasqlSkill
- figma-code-connectSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-generate-designSkill
- figma-generate-librarySkill
- figma-implement-designSkill
- figma-useSkill
- file-code-boxSkill
- financialSkill
- game-mahjong-agentSkill
- gaode-mapSkill
- gitea-apiSkill
- happy-agent-easySkill
- hindsightSkill
- jina-readerSkill
- kavita-liteSkill
- magpie-image-genSkill
- magpie-toolsSkill
- makepad-evolutionSkill
- markitdown-pdfSkill
- memos-nodeSkill
- mind-map-skillSkill
- ms-office-x-editerSkill
- nexus3-skillSkill
- obsidian-basesSkill
- json-canvasSkill
- ocr-toolSkill
- opencode-go-usageSkill
- sendmailSkill
- siyuan-apiSkill
- smb-clientSkill
- ssh2-nodeSkill
- use-http-mcpSkill
- website-security-scanSkill
- where-am-iSkill
- The first 60 shown.
The file
Files
Obsidian CLI Skill
此 skill 使 Claude Code 能够通过官方 Obsidian CLI 命令与本地 Obsidian 知识库交互。
前置要求
- 已安装并运行 Obsidian 桌面应用
- Obsidian CLI 可用(版本 1.8.0+)
- 知识库已在 Obsidian 中打开
快速参考
读取笔记
# 按名称读取文件(类似 wikilink)
obsidian read file="我的笔记"
# 按精确路径读取文件
obsidian read path="文件夹/note.md"
# 获取文件信息
obsidian file file="我的笔记"
# 显示标题/大纲
obsidian outline file="我的笔记"
# 统计字数/字符数
obsidian wordcount file="我的笔记"创建和编辑
# 创建新文件
obsidian create name="新笔记" content="# 标题\n\n内容"
# 使用模板创建
obsidian create name="新笔记" template="日记模板"
# 追加内容(添加到末尾并换行)
obsidian append file="我的笔记" content="## 新章节\n\n更多内容"
# 前置内容(添加到开头)
obsidian prepend file="我的笔记" content="## 简介\n\n第一部分内容"
# 追加内容但不换行
obsidian append file="我的笔记" content="text" inline日记
# 打开日记
obsidian daily
# 读取日记内容
obsidian daily:read
# 获取日记路径
obsidian daily:path
# 追加到日记
obsidian daily:append content="## 任务\n\n新任务"
# 前置到日记
obsidian daily:prepend content="## 优先级\n\n重要事项"搜索
# 在知识库中搜索文本
obsidian search query="关键词"
# 区分大小写搜索
obsidian search query="Keyword" case
# 带上下文搜索(显示匹配行)
obsidian search:context query="关键词"
# 限制结果数量
obsidian search query="关键词" limit=10
# 仅获取匹配数量
obsidian search query="关键词" total
# 在特定文件夹中搜索
obsidian search query="关键词" path="Projects"文件和文件夹
# 列出所有文件
obsidian files
# 按扩展名过滤
obsidian files ext=md
# 按文件夹过滤
obsidian files folder="Projects"
# 获取文件数量
obsidian files total
# 列出文件夹
obsidian folders
# 显示文件夹信息
obsidian folder path="Projects"
# 列出没有入链的文件(孤立文件)
obsidian orphans
# 列出没有出链的文件(死胡同)
obsidian deadends标签
# 列出所有标签
obsidian tags
# 列出标签及计数
obsidian tags counts
# 按计数排序
obsidian tags sort=count
# 获取标签信息
obsidian tag name="#重要"
# 获取标签出现次数
obsidian tag name="#重要" total
# 显示当前文件的标签
obsidian tags active链接
# 列出文件的出链
obsidian links file="我的笔记"
# 获取链接数量
obsidian links file="我的笔记" total
# 列出指向文件的反向链接
obsidian backlinks file="我的笔记"
# 列出反向链接及计数
obsidian backlinks file="我的笔记" counts
# 列出未解析的链接
obsidian unresolved任务
# 列出所有任务
obsidian tasks
# 显示未完成任务
obsidian tasks todo
# 显示已完成任务
obsidian tasks done
# 显示日记中的任务
obsidian tasks daily
# 显示当前文件的任务
obsidian tasks active
# 显示任务及文件分组和行号
obsidian tasks verbose
# 切换任务状态
obsidian task path="Projects/note.md" line=5 toggle
# 标记任务为完成
obsidian task path="Projects/note.md" line=5 done
# 设置自定义状态
obsidian task path="Projects/note.md" line=5 status="!"属性(YAML Frontmatter)
# 列出知识库中的所有属性
obsidian properties
# 列出属性及计数
obsidian properties counts
# 显示文件的属性
obsidian properties file="我的笔记"
# 读取特定属性
obsidian property:read name="状态" file="我的笔记"
# 设置属性
obsidian property:set name="状态" value="完成" file="我的笔记"
# 设置带类型的属性
obsidian property:set name="优先级" value=1 type=number file="我的笔记"
# 删除属性
obsidian property:remove name="旧属性" file="我的笔记"模板
# 列出模板
obsidian templates
# 获取模板数量
obsidian templates total
# 读取模板内容
obsidian template:read name="日记模板"
# 读取模板并解析变量
obsidian template:read name="日记模板" resolve title="我的标题"知识库
# 列出已知的知识库
obsidian vaults
# 显示当前知识库信息
obsidian vault
# 显示知识库名称
obsidian vault info=name
# 显示知识库路径
obsidian vault info=path
# 显示知识库文件数量
obsidian vault info=files
# 指定特定知识库
obsidian vault="我的知识库" read file="笔记"插件
# 列出已安装的插件
obsidian plugins
# 列出已启用的插件
obsidian plugins:enabled
# 按插件类型过滤
obsidian plugins filter=community
# 获取插件信息
obsidian plugin id="obsidian-git"
# 启用插件
obsidian plugin:enable id="obsidian-git"
# 禁用插件
obsidian plugin:disable id="obsidian-git"
# 安装社区插件
obsidian plugin:install id="obsidian-git"
# 卸载插件
obsidian plugin:uninstall id="obsidian-git"主题
# 显示当前主题
obsidian theme
# 列出已安装的主题
obsidian themes
# 设置当前主题
obsidian theme:set name="Minimal"
# 安装社区主题
obsidian theme:install name="Minimal"
# 卸载主题
obsidian theme:uninstall name="Minimal"移动和删除
# 移动/重命名文件
obsidian move file="旧名称" to="文件夹/新名称.md"
# 重命名文件
obsidian rename file="旧名称" name="新名称"
# 删除文件(移至回收站)
obsidian delete file="不需要的笔记"
# 永久删除
obsidian delete file="不需要的笔记" permanent最近打开
# 列出最近打开的文件
obsidian recents
# 获取最近文件数量
obsidian recents total别名
# 列出知识库中的别名
obsidian aliases
# 列出文件的别名
obsidian aliases file="我的笔记"
# 列出别名及文件路径
obsidian aliases verbose
# 获取别名数量
obsidian aliases total书签
# 列出书签
obsidian bookmarks
# 添加文件书签
obsidian bookmark file="Projects/note.md"
# 添加文件夹书签
obsidian bookmark folder="Projects"
# 添加 URL 书签
obsidian bookmark url="https://example.com" title="示例网站"
# 获取书签数量
obsidian bookmarks total打开文件
# 打开文件
obsidian open file="我的笔记"
# 在新标签页打开
obsidian open file="我的笔记" newtab
# 打开随机笔记
obsidian random
# 读取随机笔记
obsidian random:read输出格式
部分命令支持不同的输出格式:
# TSV(默认)
obsidian tags format=tsv
# CSV
obsidian tags format=csv
# JSON
obsidian tags format=json
# YAML(用于属性)
obsidian properties format=yaml
# Markdown(用于 base:query)
obsidian base:query file="My Base" format=md特殊字符
在内容值中使用转义序列:
\n- 换行\t- 制表符\"- 引号(在引号字符串内)
示例:
obsidian append content="## 标题\n\n- 项目 1\n- 项目 2" file="我的笔记"使用技巧
- 文件 vs 路径:
file按名称解析(类似 wikilink),path是精确路径(folder/note.md) - 当前文件:大多数命令在省略 file/path 时默认为当前文件
- 引用值:对带空格的值使用引号:
name="我的笔记" - 知识库选择:使用
vault=<name>指定特定知识库 - 仅计数:使用
total标志仅获取计数而不是完整列表
使用示例
查找所有带 #project 标签的笔记
obsidian search query="#project"获取文件夹中所有未完成的任务
obsidian tasks path="Projects" todo创建日记条目
obsidian daily:append content="## $(date +%Y-%m-%d)\n\n- 任务 1\n- 任务 2"搜索未解析的链接
obsidian unresolved verbose获取当前文件的反向链接
obsidian backlinks counts版本信息
检查你的 Obsidian CLI 版本:
obsidian version最低要求版本:1.8.0
参考资料
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

