agentsclimarketplace

Vault query

Skill jhavenz/obsidian-explorer/skills/vault-query

Search and filter AIMind Obsidian vault notes by type, author, tags, date, and content. Traverse wikilinks for context gathering. Use when retrieving knowledge, finding related notes, or building context from vault. Sibling to vault-save for writing.From its SKILL.md

Install
npx -y skills add jhavenz/obsidian-explorer --skill vault-query

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.6 KB, as published. Nobody here has run it

$ARGUMENTS

Vault Location

Base path: /Users/jhavens/.obsidian/vaults/aimind/AIMind/

Query Patterns

See query-patterns.md for examples.

Search Modes

Full-text search:

search="event sourcing"

Regex search (prefix with /):

search="/event.*pattern/"

Frontmatter filters:

type=pattern author=ai since=2026-01-01 tags=architecture

Combined Queries

All conditions AND together:

type=pattern search="event" author=ai

Link Traversal

When follow-links=true:

  1. Find matching notes
  2. Parse related frontmatter
  3. Resolve wikilinks to file paths
  4. Include linked notes in results
  5. Recurse to depth level

Backlink discovery:

search="[[CQRS Pattern]]"

Output Formats

FormatReturns
summarytitle, type, tags, first 200 chars
fullcomplete note content
pathsfile paths only
frontmatterparsed YAML frontmatter

Execution Steps

  1. Parse arguments
  2. Build file glob pattern from type (if specified)
  3. Apply full-text search with Grep (if specified)
  4. Parse frontmatter of matches
  5. Filter by frontmatter fields
  6. If follow-links: resolve and include linked notes
  7. Apply limit
  8. Format output per output parameter

Type to Path Mapping

TypeSearch Path
concept20-knowledge/concepts/**/*.md
pattern20-knowledge/patterns/**/*.md
insight20-knowledge/insights/**/*.md
decision20-knowledge/decisions/**/*.md
skill30-claude/skills/**/SKILL.md
protocol30-claude/protocols/**/*.md
(none)**/*.md (all notes)

Frontmatter Parsing

Use script for consistent parsing:

bun scripts/parse-frontmatter.ts /path/to/note.md

Returns:

{
  "frontmatter": { "title": "...", "type": "...", ... },
  "content": "...",
  "path": "/path/to/note.md"
}

Wikilink Resolution

Convert [[Note Title]] to file path:

  1. Search for files matching title (case-insensitive)
  2. Prefer exact slug match
  3. Return first match or null

Result Format

Summary (default)

## Event Sourcing Pattern
Type: pattern | Author: ai | Tags: architecture, cqrs
Path: 20-knowledge/patterns/event-sourcing.md

Event sourcing persists state as a sequence of events rather than...

Paths

20-knowledge/patterns/event-sourcing.md
20-knowledge/patterns/cqrs.md
20-knowledge/concepts/domain-events.md

Frontmatter

- title: Event Sourcing Pattern
  type: pattern
  author: ai
  tags: [architecture, cqrs]
  related: ["[[CQRS Pattern]]", "[[Domain Events]]"]

Error Handling

  • No matches: return empty result with query summary
  • Invalid type: warn and search all paths
  • Parse error: skip file, continue with others
  • Link resolution failure: include partial results

Performance

  • Use Glob for type-filtered searches
  • Use Grep for full-text before parsing
  • Limit early when possible
  • Cache frontmatter parsing within session

CLI Integration

When Obsidian CLI is available, these operations use native commands for 10x faster results:

ParameterCLI CommandFallback
searchobsidian search query="..."Grep + frontmatter parse
backlinksobsidian backlinksGrep for [[Title]] patterns
orphansobsidian orphansGraph analysis via file ops
tag-statsobsidian tags counts sort=countParse all frontmatter
follow-linksobsidian linksParse related[] field

Results include source: "cli" or source: "fallback" to indicate which method was used.

Scripts

# Search with CLI fallback
bun scripts/search-unified.ts "event sourcing"

# Find backlinks to a note
bun scripts/backlinks-finder.ts "20-knowledge/patterns/cqrs.md"

# Analyze tags
bun scripts/tags-analyzer.ts count 20

# Find orphan notes
bun scripts/orphans-finder.ts 50

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.