| name | search |
| description | Fast file and code searching using fd and rg. Use when user asks to find files or search code patterns. |
| allowed-tools | Bash, Glob, Grep, Read |
You must start by printing this:
--- 🥷 search skill activated 🥷 ---
Use fd for file search, rg for content search.
Common Patterns
Find files by name:
fd "pattern" [path]
fd -e md -e txt "README"
Search file contents:
rg "pattern" [path]
rg -i "pattern" # case-insensitive
rg --files-with-matches "pattern" # list files only
Find definitions:
rg "^(class|interface|function|def)\s+Name"
rg "^class\s+ClassName" --type python
Search with context:
rg "pattern" -A 2 -B 2
Combine searches:
fd "Controller" | xargs rg "handleRequest"