Skip to content
Back to skills

407 Searchvault 9bbec4be

ASecurity

Search vault using DQL (Dataview Query Language), content search, or tag filtering.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopspythonbashkubernetesapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 407-searchvault_9bbec4be --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 407 Searchvault 9bbec4be?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 407 Searchvault 9bbec4be
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-407-searchvault-9bbec4be/badge)](https://www.skillsdirectory.com/skills/tools-only-407-searchvault-9bbec4be)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Workflow: Search Vault

Search vault using DQL (Dataview Query Language), content search, or tag filtering.

## Steps

1. **Determine search type** based on intent:
   - Structured query (table, list) -> DQL/Dataview
   - Text content search -> Content (grep-like)
   - Tag/property filter -> JsonLogic
2. **Build query** using appropriate syntax
3. **Execute search** via `Tools/SearchVault.py search`
4. **Format results** as table, JSON, or text

## Tool Usage

```bash
# Check if Obsidian REST API is available
python Tools/SearchVault.py status

# Dataview query
python Tools/SearchVault.py search --type dataview \
  "TABLE status, tags FROM \"01 - Projects\" WHERE status != \"completed\""

# Content search (grep-like)
python Tools/SearchVault.py search --type content \
  --query "kubernetes deployment" \
  --folder "03 - Resources"

# JsonLogic search
python Tools/SearchVault.py search --type jsonlogic \
  --filter '{"and": [{"glob": ["01 - Projects/**", {"var": "path"}]}]}'

# Output formats
python Tools/SearchVault.py search --type content --query "topic" --json
python Tools/SearchVault.py search --type content --query "topic" --table
```

### Search Types

| Type | When to Use | Example |
|------|------------|---------|
| `dataview` | Structured queries with TABLE/LIST/TASK | `TABLE status FROM "01 - Projects"` |
| `content` | Full-text search across files | `--query "search term"` |
| `jsonlogic` | Complex property/path filtering | JSON filter object |

### Options

| Flag | Description |
|------|-------------|
| `--type` | `dataview`, `content`, `jsonlogic` |
| `--query` | Search text (for content type) |
| `--folder` | Limit to folder |
| `--tags` | Filter by tags |
| `--json` | JSON output |
| `--table` | Table output |
| `--limit` | Max results |

## Fallback Behavior

When Obsidian REST API is unavailable:
- Content search falls back to direct file grep via `pathlib` + regex
- DQL queries are not available (requires Dataview plugin running)
- JsonLogic is not available (requires REST API)

## Context Files

- `reference/rest-api.md` - API endpoints, DQL syntax
- `reference/vault-organization.md` - Folder structure for scoping searches

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…