file-search
Installation
SKILL.md
When to Use
- You need to list files matching a pattern (e.g.,
*.rs,*.md) across a project quickly. - You want to find occurrences of a keyword/regex (e.g.,
TODO|FIXME) across one or more directories. - You need contextual matches (lines before/after) to understand how a symbol or string is used.
- You want a faster, simpler replacement for typical
find+greppipelines. - You need to narrow searches by file type (e.g., Rust-only) while scanning large repositories.
Key Features
- File name discovery via
rg --filescombined with--globfilters. - Content search using regex patterns with high performance.
- Context output around matches (e.g.,
-C 3) for quick inspection. - Optional type filtering (e.g.,
--type rust) to reduce noise. - Simple pre-check workflow to ensure
rgis available before running searches.