No slash command · from obsidian-plugin
Searches and navigates an Obsidian vault using the official CLI: full-text/grep search, tag listing, backlink traversal, heading outlines, orphan/dead-end detection, and broken wikilink audits.
Ships in obsidian-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Use this skill when... | Use the alternative instead when... |
|---|---|
| Running full-text or grep-style search, tag queries, or backlink traversal against the running vault | Triaging orphaned notes for archival or MOC linking — use vault-orphans |
| Listing unresolved wikilinks Obsidian currently flags as broken | Repairing the broken wikilinks once located — use vault-wikilinks |
| Inspecting the heading outline of a single note | Reading the full note content — use vault-files |
| Querying notes already organised by a Base view | — use bases |
Search, navigate, and audit the vault link graph using the official Obsidian CLI.
Every command here talks to the running Obsidian instance over the CLI; with the app closed they error:
The CLI is unable to find Obsidian. Please make sure Obsidian is running and try again.
For headless / batch link, orphan, dead-end, tag, and broken-wikilink audits with the app closed, use the offline file-parsing path documented in the vault-* audit skills — vault-wikilinks, vault-orphans, vault-mocs, vault-tags, and vault-stubs parse the .md corpus directly with Grep/Glob (frontmatter + [[wikilink]] resolution). The obsidian CLI here is the live-index path; direct parsing is the deterministic headless default for bulk audits.
search returns matching file paths only.
# Basic search
obsidian search query="project roadmap"
# Limit and JSON output
obsidian search query="meeting" limit=10 format=json
# Restrict to a folder
obsidian search query="status::active" path=Projects
# Match count only
obsidian search query="TODO" total
# Case-sensitive
obsidian search query="API" case
search:context returns path:line: text lines — the agentic-friendly mode.
# Show matching lines with file/line context
obsidian search:context query="TODO"
# JSON-structured context
obsidian search:context query="TODO" format=json
# Restricted to a folder, case-sensitive
obsidian search:context query="API" path=Projects case
# Limit files searched
obsidian search:context query="TODO" limit=20
search:context is the right default for agents — line numbers feed straight
into obsidian read + line offsets, or into edit workflows.
# Pop the search panel pre-filled
obsidian search:open query="review needed"
The query= value uses Obsidian's standard search syntax — tag:, path:,
file:, line:, [property:value], and so on:
obsidian search query="tag:#publish"
obsidian search query="[status:active] tag:#blog"
obsidian search:context query="path:Daily TODO"
# All tags
obsidian tags
# Tags with counts (default sort=name)
obsidian tags counts
# Sorted by frequency
obsidian tags sort=count counts
# JSON output
obsidian tags format=json
# Tags for the active file (or for file=/path=)
obsidian tags active
obsidian tags file=Recipe
# Tag info (occurrence count + which files)
obsidian tag name=pkm
obsidian tag name=project/active total
obsidian tag name=pkm verbose
# Heading tree of the active file
obsidian outline
# Specific file
obsidian outline file=Recipe
# JSON for navigation
obsidian outline file=Recipe format=json
# Markdown render
obsidian outline file=Recipe format=md
# Just the heading count
obsidian outline file=Recipe total
# Outgoing links from a note (default: active file)
obsidian links file="Architecture Overview"
obsidian links file="Architecture Overview" total
# Backlinks
obsidian backlinks file="API Design"
obsidian backlinks file="API Design" counts
obsidian backlinks file="API Design" format=json
# Unresolved (broken) wikilinks across the vault
obsidian unresolved
obsidian unresolved counts # with link counts
obsidian unresolved verbose # include source files
obsidian unresolved format=json
# Notes with no incoming links
obsidian orphans
# Notes with no outgoing links
obsidian deadends
# Counts only
obsidian orphans total
obsidian deadends total
orphans (no incoming) and deadends (no outgoing) target different
problems — combine them to find truly disconnected notes.
| Flag | Description |
|---|---|
format=json | JSON output for machine parsing |
format=tsv, format=csv | Spreadsheet-friendly output |
format=md | Markdown rendering (outline, base:query) |
limit=N | Cap result count |
path=<folder> | Restrict search to a folder |
case | Case-sensitive search |
total | Return only the count |
counts | Include per-result counts |
verbose | Include source files / details |
--copy | Copy result to clipboard |
| Context | Command |
|---|---|
| Grep-style search (default) | obsidian search:context query="term" |
| Path-only search (structured) | obsidian search query="term" format=json |
| Match count | obsidian search query="term" total |
| Tag frequency analysis | obsidian tags counts sort=count |
| Find tagged notes | obsidian tag name=X verbose |
| Heading outline (json) | obsidian outline file=X format=json |
| Broken link audit | obsidian unresolved counts verbose |
| Orphan detection | obsidian orphans |
| Dead-end detection | obsidian deadends |
| Link graph for note | obsidian links file=X + obsidian backlinks file=X |
path:line returned by search:contextWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/basesObsidian Bases (database-over-notes): list base files/views, create items, run view queries with json/csv/tsv/md output. Use when user mentions Bases or .base files./bookmarksObsidian bookmarks: list and add file/folder/heading/saved-search/URL bookmarks. Use when starring or saving notes for quick access./command-paletteRun, list, and inspect Obsidian commands and hotkeys from the CLI. Use when triggering a command, enumerating commands, or checking hotkey bindings./dev-toolsObsidian plugin/theme dev: DevTools, CDP, JS eval, console/error buffers, CSS/DOM inspection, mobile emulation, screenshots. Use when debugging the app./file-historyObsidian File Recovery and Sync history: inspect, diff, restore previous note versions. Use when undoing edits, restoring versions, or recovering files./plugins-themesObsidian community plugins/themes/CSS snippets management. Use when installing, enabling, switching theme, or toggling restricted mode.npx claudepluginhub laurigates/claude-plugins --plugin obsidian-pluginOther plugins' skills for the same job