Arnarsson

Ripgrep

Developmentv1.0.0
By ArnarssonUpdated 2026-05-11ripgrep@clawhub_arnarsson/ripgrep
Scripting

According to AlphaMoat, as of 2026-09, Ripgrep has 4,068 downloads and 1 stars — ranked #2,491 of 5,078 AI skills overall, and #320 of 577 in Development.

Installs
147
Downloads
4.1K
Stars
1
Overall Rank
#2,491
Top 50% overall · Top 56% in Development
PlatformInstallsDownloadsStarsComments
ClawHub ↗1253.8K1-
SkillHub ↗1474.1K1—

Platforms count differently and update at different times.

What this skill does

Flags that include hidden or ignored files may surface private or generated content, so review search paths, file filters, and ignore-related options before running a command. Replacement examples may edit many files in place; preview first, narrow the scope, and ensure backups or version-control recovery are available. Requires the rg binary; in-place changes use a separate editing tool.

Profile published 2026-10-29

What you can do with it

  • Search a codebase for specified text or a regular expression
  • Filter by file type and inspect surrounding context
  • Preview replacement candidates and plan a bounded change

When to use it

  • When search paths and target files are clear
  • After reviewing options that may include private or generated files
  • When any replacement can be previewed and limited by path and file type

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Plan a command that searches source files only in a specified directory and explain how to avoid ignored files. Do not run a search or replacement.

Monthly Trend

Downloads4.1K
2.6K3.4K4.2K2026-03 · Downloads 2.7K2026-05 · Downloads 3.2K2026-06 · Downloads 3.3K2026-07 · Downloads 3.6K2026-08 · Downloads 3.7K2026-09 · Downloads 4.1K26-0326-09
Stars1
0122026-03 · Stars 12026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-094.1K—1
2026-083.7K+3.6%1
2026-073.6K+7.4%1
2026-063.3K+5.0%1
2026-053.2K—1
2026-032.7K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.0 KB · ClawHub v1.0.0
---
name: ripgrep
description: Blazingly fast text search tool - recursively searches directories for regex patterns with respect to gitignore rules.
homepage: https://github.com/BurntSushi/ripgrep
metadata: {"clawdbot":{"emoji":"🔎","requires":{"bins":["rg"]},"install":[{"id":"brew","kind":"brew","formula":"ripgrep","bins":["rg"],"label":"Install ripgrep (brew)"},{"id":"apt","kind":"apt","package":"ripgrep","bins":["rg"],"label":"Install ripgrep (apt)"}]}}
---

# ripgrep (rg)

Fast, smart recursive search. Respects `.gitignore` by default.
Show all (151 lines)

## Quick Start

### Basic search
```bash
# Search for "TODO" in current directory
rg "TODO"

# Case-insensitive search
rg -i "fixme"

# Search specific file types
rg "error" -t py       # Python files only
rg "function" -t js    # JavaScript files
```

### Common patterns
```bash
# Whole word match
rg -w "test"

# Show only filenames
rg -l "pattern"

# Show with context (3 lines before/after)
rg -C 3 "function"

# Count matches
rg -c "import"
```

## Advanced Usage

### File type filtering
```bash
# Multiple file types
rg "error" -t py -t js

# Exclude file types
rg "TODO" -T md -T txt

# List available types
rg --type-list
```

### Search modifiers
```bash
# Regex search
rg "user_\d+"

# Fixed string (no regex)
rg -F "function()"

# Multiline search
rg -U "start.*end"

# Only show matches, not lines
rg -o "https?://[^\s]+"
```

### Path filtering
```bash
# Search specific directory
rg "pattern" src/

# Glob patterns
rg "error" -g "*.log"
rg "test" -g "!*.min.js"

# Include hidden files
rg "secret" --hidden

# Search all files (ignore .gitignore)
rg "pattern" --no-ignore
```

## Replacement Operations

```bash
# Preview replacements
rg "old_name" --replace "new_name"

# Actually replace (requires extra tool like sd)
rg "old_name" -l | xargs sed -i 's/old_name/new_name/g'
```

## Performance Tips

```bash
# Parallel search (auto by default)
rg "pattern" -j 8

# Skip large files
rg "pattern" --max-filesize 10M

# Memory map files
rg "pattern" --mmap
```

## Common Use Cases

**Find TODOs in code:**
```bash
rg "TODO|FIXME|HACK" --type-add 'code:*.{rs,go,py,js,ts}' -t code
```

**Search in specific branches:**
```bash
git show branch:file | rg "pattern"
```

**Find files containing multiple patterns:**
```bash
rg "pattern1" | rg "pattern2"
```

**Search with context and color:**
```bash
rg -C 2 --color always "error" | less -R
```

## Comparison to grep

- **Faster:** Typically 5-10x faster than grep
- **Smarter:** Respects `.gitignore`, skips binary files
- **Better defaults:** Recursive, colored output, line numbers
- **Easier:** Simpler syntax for common tasks

## Tips

- `rg` is often faster than `grep -r`
- Use `-t` for file type filtering instead of `--include`
- Combine with other tools: `rg pattern -l | xargs tool`
- Add custom types in `~/.ripgreprc`
- Use `--stats` to see search performance

## Documentation

GitHub: https://github.com/BurntSushi/ripgrep
User Guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md

Popular in Development

More from Arnarsson

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.