search
3
总安装量
2
周安装量
#55373
全站排名
安装命令
npx skills add https://github.com/ballred/obsidian-claude-pkm --skill search
Agent 安装分布
mcpjam
2
gemini-cli
2
claude-code
2
junie
2
windsurf
2
zencoder
2
Skill 文档
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:
- Suggest alternative search terms (synonyms, related words)
- Offer to search with case-insensitive matching if the original search was case-sensitive
- Suggest checking
Archives/if not already included
Tips
- Search is case-sensitive by default. Add
-i: trueto the Grep call for case-insensitive search - Use regex patterns for advanced searches:
task.*complete,#tag-name - Combine with
/dailyto quickly find when something was mentioned