File Search
VerifiedFast file-name and content search using `fd` and `rg` (ripgrep).
Install
Claude Code
Add to .claude/skills/ About This Skill
# File Search Skill
Fast file-name and content search using `fd` and `rg` (ripgrep).
Find Files by Name
Search for files matching a pattern:
```bash fd "\.rs$" /home/xrx/projects ```
Find files by exact name:
```bash fd -g "Cargo.toml" /home/xrx/projects ```
Search File Contents
Search for a regex pattern across files:
```bash rg "TODO|FIXME" /home/xrx/projects ```
Search with context lines:
```bash rg -C 3 "fn main" /home/xrx/projects --type rust ```
Install
```bash sudo dnf install fd-find ripgrep ```
Use Cases
- Search file contents for text patterns across directories
- Find code references, configuration values, or log entries in project files
- Perform regex-based searches for complex pattern matching in codebases
- Search within specific file types by combining content and extension filters
- Locate all occurrences of a deprecated API across a project
Pros & Cons
Pros
- + Content-based search complements filename-based file finding
- + Regex support enables complex pattern matching beyond simple text search
- + File type filtering reduces noise when searching large mixed-content directories
Cons
- - Search performance depends on directory size and file count
- - Only available on claude-code and openclaw platforms
- - Binary files may produce false matches or unreadable output
Frequently Asked Questions
What does File Search do?
Fast file-name and content search using `fd` and `rg` (ripgrep).
What platforms support File Search?
File Search is available on Claude Code, OpenClaw.
What are the use cases for File Search?
Search file contents for text patterns across directories. Find code references, configuration values, or log entries in project files. Perform regex-based searches for complex pattern matching in codebases.
Stay Updated on Agent Skills
Get weekly curated skills + safety alerts