Skip to content
Skills Library
Programming · Analysis

ripgrep

/ripgrep

Fast, recursive search tool for pattern matching in files with regex support, ignore handling, and glob filtering. Use when searching codebases for patterns, finding function definitions, filtering by file type, or performing find/replace operations. Triggers: "search for X in files", "find all occurrences of Y", "grep with glob patterns", "recursive search", "find using regex".

Repository
prompts ↗
Licence
MIT
Last repository change
02.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Fast, recursive search tool for pattern matching in files with regex support, ignore handling, and glob filtering. Use when searching codebases for patterns, finding function definitions, filtering by file type, or performing find/replace operations. Triggers: "search for X in files", "find all occurrences of Y", "grep with glob patterns", "recursive search", "find using regex".

Triggers from the description

search for X in filesfind all occurrences of Ygrep with glob patternsrecursive searchfind using regex
Original author description

Fast, recursive search tool for pattern matching in files with regex support, ignore handling, and glob filtering. Use when searching codebases for patterns, finding function definitions, filtering by file type, or performing find/replace operations. Triggers: "search for X in files", "find all occurrences of Y", "grep with glob patterns", "recursive search", "find using regex".

How it works

  1. Basic Usage
  2. Key Features
  3. Common Options
  4. Preprocessor (Search Binary/Non-text)
Original SKILL.md headings · 96 lines, 361 words
SKILL.md preview
---
name: ripgrep
description: 'Fast, recursive search tool for pattern matching in files with regex support, ignore handling, and glob filtering. Use when searching codebases for patterns, finding function definitions, filtering by file type, or performing find/replace operations. Triggers: "search for X in files", "find all occurrences of Y", "grep with glob patterns", "recursive search", "find using regex".'
---

# ripgrep (rg)

Fast recursive search tool that searches files line-by-line for patterns.

## Basic Usage

```bash
rg <pattern> [path]        # Recursive search (default)
rg -F <literal> [path]     # Fixed string (no regex)
rg 'pattern' -g '*.rs'     # With glob filter
```

## Key Features

### Automatic Filtering (Default)

- Ignores `.gitignore`, `.ignore`, `.rgignore` patterns
- Skips hidden files/directories
- Skips binary files (files with NUL bytes)
- Doesn't follow symlinks

Override with:

```bash
--no-ignore          # Disable ignore filtering
--hidden -u          # Show hidden files (-u = --unrestricted)
-a --text            # Search binary files
-L --follow          # Follow symlinks
-uuu                 # Disable all filtering (3x unrestricted)
```

### Manual Filtering: Globs

```bash
rg pattern -g '*.toml'           # Only .toml files
rg pattern -g '!*.toml'           # Exclude .toml files
rg pattern -g '*.rs' -g '!test*' # Combine filters
```

### File Types

```bash
rg pattern --type rust           # -t<type> shorthand
rg pattern --type-not rust       # -T<type> exclude type
rg pattern --type-list            # List available types
rg --type-add 'web:*.{html,css,js}' -tweb pattern  # Custom type
```

### Replacements

```bash
rg fast README.md --replace FAST           # -r shorthand
rg '^.*fast.*$' README.md -r FAST        # Replace entire line
rg 'fast\s+(\w+)' -r 'fast-$1'           # Capture groups
```

### Configuration

Set `RIPGREP_CONFIG_PATH` env var. Each line is a flag:

```text
--max-columns=150
--hidden
--smart-case
```

## Common Options

| Flag | Description |
|------|-------------|
| `-i --ignore-case` | Case insensitive search |
| `-S --smart-case` | Case insensitive unless pattern has uppercase |
| `-w --word-regexp` | Match whole words only |
| `-c --count` | Count matching lines |
| `-C --context N` | Show N lines around match |
| `-U --multiline` | Allow multiline matches |
| `-M --max-columns N` | Truncate long lines |
| `-z --search-zip` | Search compressed files |
| `-l --files-with-matches` | Print only filenames |
| `-o --only-matching` | Show only match, not full line |
| `--debug` | Show debug info (why files ignored, config loaded) |

## Preprocessor (Search Binary/Non-text)

```bash
# Create preprocessor script
cat preprocess
#!/bin/sh
exec pdftotext - -

# Use it
rg --pre ./preprocess 'pattern' file.pdf
rg --pre ./preprocess --pre-glob '*.pdf' 'pattern' .
```

Versions

RepositoryScoreLicence
This page · jr2804/prompts100MIT
bahayonghang/my-ai-cli-toolkit90MIT

Database snapshot: 13.11.2026 · package version ae4044fa66d1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100file-search
    Perform fast file name and content searches with ripgrep (rg); use it when you need to locate files by glob/regex, find keywords across directories, or replace common find/grep workflows.
  • 100code-search
    Search for patterns inside file contents using ripgrep (rg). Use when searching for code patterns, finding function definitions, locating usages, or when the user asks to search/grep content inside files.
  • 100rg-code-search
    ripgrep (rg) fast code search: smart defaults, regex, file filtering. Use when searching for text patterns, code snippets, or doing multi-file analysis.
  • 100hatch3r-cli-ripgrep
    Fast recursive grep with sane defaults and gitignore awareness. Use when regex content searches across large source trees with gitignore filtering; invoke `rg`. Outputs newline-separated hit records; bound results with `-c` or `--max-count`.
  • 100file-search
    This skill should be used when agents need to search codebases for text patterns or structural code patterns. Provides fast search using ripgrep for text and ast-grep for syntax-aware code search.
  • 100code-search
    Select the right search tool (Grep, Glob, codebase-retrieval) to locate existing code, symbols, or files across the project's monorepo. Don't use it for creating new files, implementing features, or reviewing code quality.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.