.claude/skills/search/SKILL.md
--- context: fork --- # /search Smart search using BM25 relevance ranking. Queries the graph index first with ranked results, then falls back to grep for content search. ## Usage ``` /search kafka /search "API gateway" /search type:Adr status:proposed /search backlinks:Project - MyProject ``` ## Instructions When the user invokes `/search <query>`: ### Phase 1: Parse Query Type Determine what kind of search this is: | Pattern | Search Type | Action | |---------|-------------|--------| |
npx skillsauth add DavidROliverBA/ArchitectKB .claude/skills/searchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Smart search using BM25 relevance ranking. Queries the graph index first with ranked results, then falls back to grep for content search.
/search kafka
/search "API gateway"
/search type:Adr status:proposed
/search backlinks:Project - MyProject
When the user invokes /search <query>:
Determine what kind of search this is:
| Pattern | Search Type | Action |
|---------|-------------|--------|
| type:<Type> | Type filter | Use graph --type |
| status:<status> | Status filter | Use graph --status |
| priority:<priority> | Priority filter | Use graph --priority |
| backlinks:<note> | Backlink search | Use graph --backlinks |
| Simple keyword | Keyword search | Use graph --search, then grep |
| Regex pattern | Content search | Skip to grep |
Always start with the graph index (unless it's a regex):
# Check index exists
if [ ! -f ".graph/index.json" ]; then
npm run graph:build
fi
# Run graph query
node scripts/graph-query.js --search "<query>"
After running the graph query:
# Grep fallback for content search
grep -r "<query>" --include="*.md" --exclude-dir=".git" --exclude-dir=".obsidian" --exclude-dir="node_modules" --exclude-dir=".smart-env"
Format output with BM25 relevance scores:
## Search Results for "<query>"
### Graph Index Results (BM25 ranked)
Found **X** notes matching in graph index:
| Score | Type | Title |
|-------|------|-------|
| 14.65 | Page | Kafka to SAP Integration |
| 11.32 | Adr | ADR - Kafka Integration |
| 9.45 | Meeting | Data Platform Discussion |
*Results ranked by relevance (higher score = better match)*
### Content Search Results (full-text)
Found **Y** additional matches in note content:
- `Page - Kafka Architecture.md:45` - "...kafka cluster configuration..."
- `Meeting - 2025-01-10 Data Team.md:12` - "...discussed kafka..."
| Shortcut | Expands To |
|----------|------------|
| /search t:Adr | --type Adr |
| /search s:active | --status active |
| /search p:high | --priority high |
| /search b:Note | --backlinks "Note" |
| /search orphans | --orphans |
| /search broken | --broken-links |
| /search stale | --stale |
/search kafka # Keyword in graph + content
/search type:Meeting kafka # Meetings mentioning kafka
/search backlinks:Project - MyProject # Notes linking to project
/search status:proposed # All proposed items
/search orphans # Orphaned notes
/search "event.*driven" # Regex - grep only
/graph-query - Direct graph queries with more options/orphans - Dedicated orphan analysis/broken-links - Dedicated broken link analysistools
--- context: fork --- # /youtube Save a YouTube video as both a Weblink (quick reference) and a detailed Page (full analysis). ## Usage ``` /youtube <url> /youtube <url> <optional title override> ``` ## Examples ``` /youtube https://www.youtube.com/watch?v=0TpON5T-Sw4 /youtube https://youtu.be/abc123 AWS re:Invent Keynote ``` ## Prerequisites This skill uses the MCP Docker YouTube tools: - `mcp__MCP_DOCKER__get_video_info` - Video metadata - `mcp__MCP_DOCKER__get_transcript` - Full trans
data-ai
Create and manage git worktrees for parallel agent sessions
testing
--- context: fork --- # /wipe Generate a context handoff summary, clear the session, and resume in a fresh conversation. Detects environment and provides automated (tmux) or manual workflow. ## Usage ``` /wipe /wipe quick # Minimal handoff, just essentials /wipe detailed # Comprehensive handoff with full context ``` ## Instructions When the user invokes `/wipe`: ### Phase 1: Detect Environment First, check the terminal environment: ```bash echo "Environment Detection:"
data-ai
--- context: fork --- # /weekly-summary Generate comprehensive weekly summary from daily notes, meetings, tasks, and project updates using parallel sub-agents. ## Usage ``` /weekly-summary /weekly-summary --last-week /weekly-summary --from 2026-01-01 --to 2026-01-07 /weekly-summary --output page # Create Page note instead of just outputting ``` ## Instructions This skill uses **5 parallel sub-agents** to gather data concurrently from different vault areas, then synthesizes a comprehensi