Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

obsidian-commanderObsidian commander 搜索

Agent Skill

obsidian-commander 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

公开资料未说明

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:obsidian-commander(Obsidian commander 搜索)
来源仓库:https://github.com/magic5644/skills
仓库路径:skills/obsidian-commander
安装命令:
npx skills add https://github.com/magic5644/skills --skill obsidian-commander
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/magic5644/skills --skill obsidian-commander

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx 命令从指定 GitHub 仓库安装,提供命令行交互方式。
  • 需确认权限范围和维护状态,避免触发不必要的联网或文件操作。
  • obsidian-commander 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Obsidian Commander

Full-featured Obsidian vault management from any code editor or CLI. Supports VS Code (GitHub Copilot), Claude Code, Cursor, Copilot CLI, Claude CLI, and any agent-compatible IDE.

When to Use

  • Create, read, update, delete notes in a vault
  • Search vault content (text, semantic, tags, properties)
  • Manage frontmatter/properties (add, edit, remove, bulk update)
  • Map and audit links (backlinks, orphans, unresolved, dead-ends)
  • Clean up vault (remove orphans, fix broken links, deduplicate)
  • Organize vault structure (move notes, create folders, apply templates)
  • Build and query a semantic search index
  • Ingest external content into the vault
  • Generate vault health reports
  • Manage daily notes, tasks, bookmarks, templates
  • Control Obsidian app via CLI (requires Obsidian 1.12.7+)

Quick Decision: CLI vs File-Based

ApproachWhenHow
Obsidian CLI (obsidian command)Obsidian app is running, need live interactionSee CLI Reference
File-based scriptsHeadless, CI/CD, batch operations, no Obsidian runningSee Scripts
Direct file editingSimple note creation/editingRead/write .md files directly

Vault Detection

Before any operation, locate the vault:

  1. Check if current working directory contains .obsidian/ folder
  2. If not, ask user for vault path
  3. Validate: vault must contain .obsidian/ directory
vault_path = find_ancestor_with(".obsidian") or ask_user("Vault path?")

Core Procedures

1. Create a Note

# Via Obsidian CLI (if running)
obsidian create name="My Note" content="# My Note\n\nContent here"

# Via file system
# Create file at <vault>/path/Note.md with frontmatter

Template for new note:

---
created: {{date}}
tags: []
aliases: []
---

# {{title}}

{{content}}

Use create_note.py for advanced creation with templates and auto-linking.

2. Search the Vault

Text search (Obsidian CLI):

obsidian search query="meeting notes"
obsidian search:context query="TODO" path="Projects/"

Semantic search (AI-powered, works offline):

python scripts/semantic_search.py --vault /path/to/vault --action build   # Index
python scripts/semantic_search.py --vault /path/to/vault --action ask --query "concept"

Property search (find notes by metadata):

python scripts/search_properties.py --vault /path/to/vault --property status --value "draft"

Search operators reference (for Obsidian CLI):

OperatorExampleDescription
file:file:recipeMatch filename
path:path:"Daily notes"Match file path
tag:tag:#workMatch tag
content:content:"hello"Match content
line:line:(todo important)Match within same line
section:section:(dog cat)Match within same section
task:task:callMatch in tasks
task-todo:task-todo:buyMatch uncompleted tasks
[property:value][status:draft]Match property value

3. Manage Properties / Frontmatter

Read properties:

obsidian properties active                    # Current file
obsidian property:read name=tags file=MyNote  # Specific property

Set properties:

obsidian property:set name=status value=published file=MyNote
obsidian property:set name=tags value="[project,active]" type=list

Bulk update (use script for batch operations):

python scripts/bulk_properties.py --vault . --filter "tag:#draft" --set "status=review"
python scripts/bulk_properties.py --vault . --folder "Archive/" --set "archived=true" --type checkbox

Property types: text, list, number, checkbox, date, datetime

YAML frontmatter format:

---
title: My Note
tags:
  - project
  - active
created: 2024-01-15
status: draft
aliases:
  - "my-note"
cssclasses:
  - wide-page
---

4. Map and Audit Links

List links:

obsidian links file=MyNote          # Outgoing links
obsidian backlinks file=MyNote      # Incoming links
obsidian unresolved                 # Broken links in vault
obsidian orphans                    # Notes with no incoming links
obsidian deadends                   # Notes with no outgoing links

Full link audit (comprehensive report):

python scripts/link_audit.py --vault /path/to/vault

Output:

=== Vault Link Health Report ===
Total notes: 342
Total links: 1,205
Resolved: 1,180 (97.9%)
Unresolved: 25
Orphan notes: 18
Dead-end notes: 45
Bidirectional links: 380

Link formats in Obsidian:

  • Wikilinks: [[Note Name]], [[Note Name|Display Text]], [[Note#Heading]], [[Note#^block-id]]
  • Markdown: [Display](Note.md), [Display](Note.md#Heading)
  • Embeds: ![[Note]], ![[image.png]]

5. Clean Up Vault

python scripts/vault_cleanup.py --vault /path/to/vault --action report  # Dry run
python scripts/vault_cleanup.py --vault /path/to/vault --action fix     # Apply fixes

Cleanup operations:

  • Remove empty notes (no content beyond frontmatter)
  • Fix broken internal links
  • Remove duplicate notes
  • Standardize frontmatter (ensure required fields)
  • Clean orphaned attachments (images/files not linked anywhere)
  • Normalize tag casing
  • Remove stale TODO items

6. Organize Vault Structure

Move and rename:

obsidian move file=OldNote to="Archive/2024/"
obsidian rename file=OldName name="New Name"

Batch organize:

python scripts/organize_vault.py --vault . --strategy by-tag      # Group by primary tag
python scripts/organize_vault.py --vault . --strategy by-date     # Group by creation date
python scripts/organize_vault.py --vault . --strategy by-moc      # Group around Maps of Content

Create folder structure from template:

python scripts/scaffold_vault.py --vault . --template zettelkasten
python scripts/scaffold_vault.py --vault . --template para
python scripts/scaffold_vault.py --vault . --template gtd

Available templates: zettelkasten, para (Projects/Areas/Resources/Archive), gtd, journal, research, custom

7. Ingest External Content

python scripts/ingest.py --vault . --source /path/to/files --format markdown
python scripts/ingest.py --vault . --source /path/to/files --format html --convert
python scripts/ingest.py --vault . --source clipboard --as daily-append
python scripts/ingest.py --vault . --url "https://example.com/article" --as note

Supported source formats: Markdown, HTML, plain text, PDF (text extraction), CSV, JSON Ingestion modes:

  • note: Create a new note per file
  • append: Append to an existing note
  • daily-append: Append to today's daily note
  • split: Split large documents into linked notes

8. Build Semantic Search Index

Uses sentence-transformers and FAISS for AI-powered semantic search:

# Build/rebuild index
python scripts/semantic_search.py --vault /path/to/vault --action build

# Query
python scripts/semantic_search.py --vault /path/to/vault --action ask --query "machine learning concepts" --top 10

# Incremental update (only new/modified notes)
python scripts/semantic_search.py --vault /path/to/vault --action update

Requirements: pip install -r requirements.txt (sentence-transformers, faiss-cpu, numpy, pyyaml, tqdm)

9. Daily Notes & Tasks

# Daily notes
obsidian daily                                          # Open today's daily note
obsidian daily:append content="- [ ] Buy groceries"     # Add task
obsidian daily:read                                     # Read content

# Tasks
obsidian tasks todo                                     # List incomplete tasks
obsidian tasks daily                                    # Tasks from daily note
obsidian task ref="Recipe.md:8" toggle                  # Toggle task

10. Templates

obsidian templates                                      # List templates
obsidian template:read name=Meeting resolve             # Preview with variables
obsidian create name="Standup 2024-01-15" template=Meeting

11. Vault Health Check

python scripts/vault_health.py --vault /path/to/vault

Report includes:

  • Total notes, attachments, tags, properties
  • Link health (resolved %, orphans, dead-ends, unresolved)
  • Frontmatter consistency (missing required fields)
  • Tag distribution and potential duplicates
  • Large files and potential splits
  • Recently modified vs stale notes
  • Naming convention violations

12. Manage Plugins & Themes (via CLI)

obsidian plugins                                        # List installed
obsidian plugin:install id=dataview enable               # Install + enable
obsidian plugin:reload id=my-plugin                      # Reload (dev)
obsidian themes                                          # List themes
obsidian theme:set name="Minimal"                        # Set theme

Obsidian Data Model Reference

Vault structure:

my-vault/
├── .obsidian/                 # Config folder (hidden)
│   ├── app.json               # App settings
│   ├── appearance.json        # Theme settings
│   ├── community-plugins.json # Installed plugins list
│   ├── core-plugins.json      # Core plugin toggles
│   ├── hotkeys.json           # Custom hotkeys
│   ├── plugins/               # Plugin data & settings
│   ├── themes/                # Installed themes
│   ├── snippets/              # CSS snippets
│   └── workspace.json         # Layout (exclude from git)
├── Notes/                     # Your notes (any structure)
├── Templates/                 # Template files
├── Attachments/               # Images, PDFs, etc.
└── Daily Notes/               # Daily notes folder

Frontmatter (YAML between --- markers):

  • Default properties: tags (list), aliases (list), cssclasses (list)
  • Custom properties: any key-value pairs
  • Types: text, list, number, checkbox, date, datetime

Link syntax:

FormatExample
Wikilink[[Note]]
With alias`[[Note\Display]]`
To heading[[Note#Heading]]
To block[[Note#^block-id]]
Embed![[Note]] or ![[image.png]]
Markdown[text](Note.md)

Tags: #tag, #nested/tag, in frontmatter as tags: [a, b]

Installation

As a personal skill (all your projects)

VS Code / GitHub Copilot:

mkdir -p ~/.copilot/skills/obsidian-commander
cp -r . ~/.copilot/skills/obsidian-commander/

Claude Code:

mkdir -p ~/.claude/skills/obsidian-commander
cp -r . ~/.claude/skills/obsidian-commander/

Generic agents:

mkdir -p ~/.agents/skills/obsidian-commander
cp -r . ~/.agents/skills/obsidian-commander/

As a project skill

# In your vault or project root
mkdir -p .github/skills/obsidian-commander
cp -r . .github/skills/obsidian-commander/

Install Python dependencies (for scripts)

pip install sentence-transformers faiss-cpu numpy pyyaml tqdm beautifulsoup4 markdownify

Workflow Examples

"I want to capture a quick idea"

obsidian create name="Idea - Quantum Computing" content="# Quantum Computing\n\n- Potential for ML acceleration\n- Read more about Shor's algorithm" open
obsidian property:set name=tags value="[idea,quantum,research]" type=list

"Show me everything related to Project X"

obsidian search query="Project X"
obsidian search:context query="tag:#project-x"
python scripts/semantic_search.py --vault . --action ask --query "Project X goals and deliverables"

"Clean up my vault"

python scripts/vault_health.py --vault .
python scripts/vault_cleanup.py --vault . --action report
python scripts/vault_cleanup.py --vault . --action fix

"Reorganize by PARA method"

python scripts/scaffold_vault.py --vault . --template para
python scripts/organize_vault.py --vault . --strategy by-tag --mapping "project:Projects,area:Areas,resource:Resources,archive:Archive"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.23%
按下载量换算25

Claude

32.7%
按下载量换算24

Cursor

17.83%
按下载量换算13

Gemini CLI

10.42%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills