Load curated context from Obsidian vaults into AI conversations using frontmatter filtering. Browse metadata, search content, and retrieve notes by tags, properties, or full-text search.
This skill provides tools to extract and load personal context from an Obsidian vault into AI conversations. Use Obsidian's frontmatter tagging system to curate which knowledge gets loaded into your LLM context.
Loads markdown notes from an Obsidian vault based on:
Returns chronologically ordered, concatenated content for comprehensive context loading.
Before using this skill, create a `config.yaml` file in the same directory as the MCP server:
```yaml
vault_path: "~/Documents/ObsidianVault"
default_context:
properties:
context: "personal"
tags: []
```
Load context based on a predefined context type from config.yaml.
**Parameters:**
**Example:**
```python
fetch_context("personal") # Loads all notes with context: personal property
```
Flexible runtime filtering by frontmatter properties and tags.
**Parameters:**
**Examples:**
```python
fetch_matching_files(properties={"type": "project"}, tags=["active"])
fetch_matching_files(tags=["research", "ai"], match_all_tags=True)
```
Browse file metadata without loading full content - ideal for discovery.
**Parameters:**
**Returns:** Formatted table of file metadata (titles, paths, tags, context types)
**Example:**
```python
fetch_frontmatter_index(tags=["ai"])
```
Retrieve complete content of a specific file by path.
**Parameters:**
**Example:**
```python
fetch_specific_file("research/ai-governance-framework.md")
```
Content-based search through all markdown files (hardcore mode).
**Parameters:**
**Returns:** Frontmatter index of matching files with match context
**Examples:**
```python
search_vault_content("machine learning algorithms")
search_vault_content("neural.*network", regex=True)
```
**Phase 1: Browse Metadata**
```python
fetch_frontmatter_index(tags=["project"])
```
**Phase 2: Selective Loading**
```python
fetch_specific_file("projects/website-redesign.md")
fetch_specific_file("projects/api-integration.md")
```
When you don't know the frontmatter structure:
```python
search_vault_content("API authentication")
fetch_specific_file("path/from/search/results.md")
```
Load all notes matching criteria:
```python
fetch_matching_files(properties={"context": "personal"}, tags=["finance"])
```
Concatenated files use clear delimiters:
```
================================================================================
/absolute/path/to/file.md
================================================================================
---
context: personal
tags: [finance, planning]
---
[full file content]
================================================================================
/absolute/path/to/next/file.md
================================================================================
[full file content]
```
**Properties:** AND logic - all specified properties must match exactly (case-sensitive)
**Tags:**
**Combined:** Properties AND tags criteria must both be satisfied
**Sorting:** Files sorted by modification time (oldest first)
```yaml
---
context: personal
type: project
tags: [active, ai, research]
title: AI Research Framework
---
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/obsidian-context-loader/raw