search

search is a skill for Claude Code from ballred/obsidian-claude-pkm. It costs 31 tokens per session (637 once invoked), scanned A, original, MIT.

A keyword search command for Markdown notes in an Obsidian-style vault, a folder of linked notes. It searches files with Grep and groups matching lines by directory without needing indexes or plugins.

In plain words
What is it for?
Use it to search for terms such as project planning, weekly review, or TODO across Markdown files. It excludes hidden folders and templates from the results.
Why use it?
It makes it easier to find related notes in a vault without setting up a search database. Grouping results by folder helps distinguish daily notes, projects, archives, and other areas.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the vault-template plugin — 13 skills, 4 agents, 3 hooks shipped together

Good fit Use it to search for terms such as project planning, weekly review, or TODO across Markdown files. It excludes hidden folders and templates from the results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ballred/obsidian-claude-pkm/search
About the project

Obsidian + Claude Code Accountability System is a personal knowledge-management setup that connects long-term goals with projects, reviews, daily notes, and tasks inside Obsidian. People use it to plan work, track progress, and review whether daily activity supports their goals with help from Claude Code. Its catalogue add-ons implement the system's planning, tracking, and review workflows.

ballred/obsidian-claude-pkm · 1,861 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ballred/obsidian-claude-pkm --skill search
Clone the repo
git clone --depth 1 https://github.com/ballred/obsidian-claude-pkm

Made for: Claude Code.

Or install vault-template, the plugin that ships this one along with the rest of its 13 skills, 4 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for search

README.md
[![agentmods](https://agentmods.dev/badge/skills/ballred/obsidian-claude-pkm/search/github.svg)](https://agentmods.dev/skills/ballred/obsidian-claude-pkm/search)
Your own site
<a href="https://agentmods.dev/skills/ballred/obsidian-claude-pkm/search"><img src="https://agentmods.dev/badge/skills/ballred/obsidian-claude-pkm/search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for search

Your own site · 80×15
<a href="https://agentmods.dev/skills/ballred/obsidian-claude-pkm/search"><img src="https://agentmods.dev/badge/skills/ballred/obsidian-claude-pkm/search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00637
Opus 5 $0.00015 $0.00318
Sonnet 5 $0.00006 $0.00127
Haiku 4.5 $0.00003 $0.00064

Measured 11d ago against content hash c857c99f647d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vault-template/.claude/skills/search/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 105 lines · 31 tokens per session scan A c857c99f647d

Subscribe to this mod's changes

search is a skill published in the GitHub repository ballred/obsidian-claude-pkm (1,861 stars, last pushed 6mo ago), licensed MIT. It adds 31 tokens to every session and 637 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kb-lint

Health check for the PARA Knowledge Base. Detects orphan documents, broken links, index drift, tag issues, and stale content. Run periodically or as part of weekly review.

ernestolee13/para-knowledge-base · 39 tokens

kb-index

Update Knowledge Base indexes. Smart mode detects changes and updates only what's needed. Full rebuild available with --full flag. Use after adding/moving documents or when indexes feel stale.

ernestolee13/para-knowledge-base · 38 tokens

ai-second-brain

Walks the user through Charlie Hills's AI Second Brain + Karpathy Wiki setup from the MarTech AI newsletter. Use whenever the user mentions building an AI second brain, the Karpathy wiki, organising their ChatGPT/Claude exports in Obsidian, setting up a living wiki with Claude Code, connecting iMessage Channels, or…

charlie947/ai-second-brain · 174 tokens

obsidian

Operational skill for Claude to automate Obsidian vaults via URI schemes, Templater/Dataview patterns, Markdown structure, and local plugin workflows.

alivirgo/Major-AI-Skills · 35 tokens

Obsidian Automation

Automate Obsidian knowledge management, note linking, and personal knowledge base workflows.

claude-office-skills/skills · 21 tokens

enzyme-sqlite-source

Connect an unfamiliar SQLite database to Enzyme without changing the source data. Inspect the database, decide which query columns represent identity, people, time, content, and folders, show real examples for approval, save the mapping in TOML, and verify init and refresh. Use for email, message, CRM, archive, or…

byenzyme/enzyme · 80 tokens