| name | ripgrep |
| description | Use this skill when the user wants to search for text patterns in files, search codebases with regex, find files containing specific text, or replace grep with a faster alternative. |
ripgrep (rg) Plugin
Fast recursive regex search that respects gitignore and skips hidden/binary files.
Commands
Search
ripgrep search run — Search for regex pattern
ripgrep search files — List files containing pattern
Usage Examples
- "Find all occurrences of a pattern"
- "Search recursively in this directory"
- "List files containing a word"
- "Search with case-insensitive flag"
Installation
cargo install ripgrep
brew install ripgrep
Examples
rg "pattern"
rg -i "pattern"
rg -n "pattern"
rg -l "pattern"
rg -w "pattern"
rg -c "pattern"
rg --json "pattern"
rg -t js "pattern"
Common Flags
-n — Show line numbers
-l — Show only filenames
-i — Case insensitive
-w — Match whole words
-c — Show count per file
-t — Filter by type (js, py, rs, etc.)
--json — JSON output