Skip to content
Productivity
Skill

/search

Search vault content by keyword using Grep. Zero dependencies — works in any vault without indexes or plugins. Groups results by directory for easy scanning.

From plugin
obsidian-claude-pkm
1.9k13 skills4 agents

Claude Code

$ npx -y skills add ballred/obsidian-claude-pkm --skill search --agent claude-code

SKILL.md

search.SKILL.md
name: search
description: Search vault content by keyword using Grep. Zero dependencies — works in any vault without indexes or plugins. Groups results by directory for easy scanning.
allowed-tools: Grep, Glob, Read
user-invocable: true

Search Skill

Fast keyword search across all vault markdown files using the Grep tool. No indexes, no plugins, no setup — just structured search with directory grouping.

Usage

/search <term>

Examples:

  • `/search project planning`
  • `/search weekly review`
  • `/search TODO`

How to Execute

When the user invokes `/search <term>`:

Step 1: Search for the term

Use the **Grep** tool to search all `.md` files for the term:

Grep:
  pattern: <search term>
  glob: "*.md"
  output_mode: content
  -n: true
  -C: 1

Exclude hidden directories (`.claude/`, `.obsidian/`) and templates:

Grep:
  pattern: <search term>
  glob: "*.md"
  path: .
  output_mode: content
  -n: true
  -C: 1

Filter out results from `.claude/`, `.obsidian/`, and `Templates/` directories.

Step 2: Group results by directory

Organise matches into sections by their parent directory:

  • **Daily Notes/** — journal entries
  • **Goals/** — goal and vision documents
  • **Projects/** — project notes
  • **Archives/** — archived content
  • **Inbox/** — unprocessed items
  • **(root)** — top-level notes

Step 3: Present results

Format output as:

## Search: "<term>"

### Daily Notes/
- **2024-01-15.md** (line 23): ...matching context...
- **2024-01-14.md** (line 8): ...matching context...

### Projects/
- **Project Alpha.md** (line 45): ...matching context...

### Goals/
- **2024 Goals.md** (line 12): ...matching context...

**Found X matches across Y files**

Step 4: Suggest related content

After showing results, check if any matched files contain `[[wiki-links]]` to other notes. If so, briefly mention:

💡 Related notes mentioned in results: [[Note A]], [[Note B]]

No Results

If no matches are found: 1. Suggest alternative search terms (synonyms, related words) 2. Offer to search with case-insensitive matching if the original search was case-sensitive 3. Suggest checking `Archives/` if not already included

Tips

  • Search is case-sensitive by default. Add `-i: true` to the Grep call for case-insensitive search
  • Use regex patterns for advanced searches: `task.*complete`, `#tag-name`
  • Combine with `/daily` to quickly find when something was mentioned
Read more
@ballred
Ships withobsidian-claude-pkm

Not another PKM starter kit. This is an execution system that connects your 3-year vision to what you do today — and holds you accountable with AI. Every layer connects. /daily surfaces your ONE Big Thing from the weekly review. /weekly shows project progress.

1.9k13 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.9k
Star history of ballred/obsidian-claude-pkm on GitHub, a chart by star-history.com

Other skills on obsidian-claude-pkm.

adopt

adopt

Scaffold the PKM system onto an existing Obsidian vault. Scans your vault structure, maps folders interactively, and generates…

check-links

check-links

Find broken wiki-links in the vault. Read-only analysis — scans for [[links]] and verifies target files exist. No writes, no…

daily

daily

Create daily notes and manage morning, midday, and evening routines. Structure daily planning, task review, and end-of-day…

monthly

monthly

Monthly review and planning. Roll up weekly reviews, check quarterly milestones, set next month's focus. Use at end of month or…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about search.

Which coding agents can use search?
search installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.