File Search

Fast file-name and content search using `fd` and `rg` (ripgrep).

Xejrax

@xejrax

What This Skill Does

Searches for files by name and content using `fd` and `rg` (ripgrep). Supports regex patterns, exact names, and context lines for code or text files.

Replaces slow, built-in search tools like `find` and `grep` with faster, user-friendly alternatives optimized for large codebases.

When to Use It

  • Find all Rust source files in a project directory
  • Search for TODO or FIXME comments across a codebase
  • Locate a file by exact name, e.g., Cargo.toml
  • Search file contents for a regex pattern with surrounding context
  • Quickly find configuration files matching a name pattern

Install

$ openclaw skills install @xejrax/file-search

File Search Skill

Fast file-name and content search using fd and rg (ripgrep).

Find Files by Name

Search for files matching a pattern:

fd "\.rs$" /home/xrx/projects

Find files by exact name:

fd -g "Cargo.toml" /home/xrx/projects

Search File Contents

Search for a regex pattern across files:

rg "TODO|FIXME" /home/xrx/projects

Search with context lines:

rg -C 3 "fn main" /home/xrx/projects --type rust

Install

sudo dnf install fd-find ripgrep

Top skills in this category