用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill obsidian-vault-search命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | obsidian-vault-search |
| description | | Use when this capability is needed. |
Do NOT trigger for:
| Request | Search Type | Method |
|---|---|---|
| "Find note about X" | Content search | grep + frontmatter |
| "All meetings with Sarah" | Property search | frontmatter scan |
| "Notes tagged #project" | Tag search | frontmatter scan |
| "What links to [[Note]]" | Backlink search | wikilink grep |
| "Notes in Projects/ folder" | Folder search | find |
| "Recent notes about X" | Combined | content + date sort |
| "Everything related to X" | Graph search | links + content |
Match the search method to the request. Don't grep the whole vault for a property-based question.
<search_methods>
Content search — find notes mentioning a term:
# Basic content search
grep -rl "search term" "$VAULT_PATH" --include="*.md" | head -20
# With context (shows surrounding lines)
grep -rn "search term" "$VAULT_PATH" --include="*.md" -C 2 | head -50
# Case insensitive
grep -ril "search term" "$VAULT_PATH" --include="*.md"
Property search — find notes with specific frontmatter:
# Find by type
grep -rl "^type: meeting" "$VAULT_PATH" --include="*.md"
# Find by status
grep -rl "^status: active" "$VAULT_PATH" --include="*.md"
# Find by tag in frontmatter
grep -rl "tags:" "$VAULT_PATH" --include="*.md" | \
xargs grep -l "project-name"
# Find by attendee
grep -rl "attendees:" "$VAULT_PATH" --include="*.md" | \
xargs grep -l "Sarah"
# Combined: active meetings
grep -rl "^type: meeting" "$VAULT_PATH" --include="*.md" | \
xargs grep -l "^status: active"
Tag search — find notes with specific tags:
# Inline tags
grep -rl "#tag-name" "$VAULT_PATH" --include="*.md"
# Frontmatter tags
grep -rl " - tag-name" "$VAULT_PATH" --include="*.md"
# Both
grep -rl "#tag-name\| - tag-name" "$VAULT_PATH" --include="*.md"
Backlink search — find notes that link to a specific note:
# Find all notes linking to [[Note Name]]
grep -rl "\[\[Note Name" "$VAULT_PATH" --include="*.md"
# Find links with aliases
grep -rl "\[\[Note Name|" "$VAULT_PATH" --include="*.md"
Folder search — find notes in a specific location:
find "$VAULT_PATH/Projects/project-name" -name "*.md" | sort
Date-range search — find notes by date:
# Notes modified in last 7 days
find "$VAULT_PATH" -name "*.md" -mtime -7 | sort
# Notes with date property in range
grep -rl "^date: 2026-02" "$VAULT_PATH" --include="*.md"
CLI search (if available):
# Official CLI
obsidian search query="search term" limit=20
# Yakitrak CLI
obsidian-cli search-content "search term"
</search_methods>
# For each result, extract useful metadata
for file in $RESULTS; do
echo "---"
echo "File: $file"
# Get frontmatter type and status
head -10 "$file" | grep "^type:\|^status:\|^date:"
# Get the match context
grep -n "search term" "$file" | head -3
done
## Vault Search: "query"
**Found:** X notes
### Results
1. **[[Note Title]]** — Notes/note-title.md
Type: note | Status: active | Date: 2026-02-10
> ...matching context...
2. **[[Another Note]]** — Projects/project/another-note.md
Type: meeting | Status: active | Date: 2026-02-08
> ...matching context...
### Related
- [[Linked Note 1]] (linked from result #1)
- [[Linked Note 2]] (linked from result #2)
Want to open any of these, or refine the search?
User: "Find all my meeting notes about the API project"
Vault Search: "meeting notes about API project"
Search: type == meeting AND (content contains "API" OR project == "api")
Found: 4 notes
1. [[2026-02-10 API Design Review]] — Projects/api/meetings/2026-02-10-api-design-review.md
Type: meeting | Status: active | Date: 2026-02-10
> Discussed rate limiting approach and endpoint contracts
2. [[2026-02-05 API Sprint Planning]] — Projects/api/meetings/2026-02-05-api-sprint-planning.md
Type: meeting | Status: active | Date: 2026-02-05
> Sprint goals: auth middleware, rate limiting, documentation
3. [[2026-01-28 API Kickoff]] — Projects/api/meetings/2026-01-28-api-kickoff.md
Type: meeting | Status: completed | Date: 2026-01-28
> Initial scope: REST API for mobile app
4. [[2026-01-20 API Requirements]] — Projects/api/meetings/2026-01-20-api-requirements.md
Type: meeting | Status: completed | Date: 2026-01-20
> Requirements gathering with product team
Related notes:
- [[api-design]] (linked from 3 meetings)
- [[api-rate-limiting]] (linked from #1, #2)
Want to open any of these?
What DOESN'T work:
- Grepping "meeting" across the whole vault — matches templates, daily notes, random mentions
- Searching by filename only — misses notes where the content matches but the filename doesn't
- Not checking frontmatter — you find notes that MENTION meetings but aren't meeting notes
- Returning 50+ results — user can't process that, narrow the search
Converted and distributed by TomeVault — claim your Tome and manage your conversions.