ripgrep

Search file systems with ripgrep using regex and glob filters.

16|1|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/bahayonghang/my-ai-cli-toolkit --skill ripgrep-bahayonghang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ripgrep
Source: https://github.com/bahayonghang/my-ai-cli-toolkit/tree/main/skills/developer-tools-integrations/ripgrep
Command: npx skills add https://github.com/bahayonghang/my-ai-cli-toolkit --skill ripgrep-bahayonghang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the challenge of performing high-speed, complex text and regex searches across large codebases while navigating ignore rules, binary files, and shell-specific quoting issues.

Core Features & Use Cases

  • Advanced Search: Execute lightning-fast regex searches with support for PCRE2, multiline patterns, and custom glob filtering.
  • Diagnostic Tools: Troubleshoot why files are missing from search results using debug flags and ignore-rule analysis.
  • Use Case: Quickly locate all occurrences of a specific regex pattern across a massive project while automatically excluding build artifacts and binary files.

Quick Start

Use the ripgrep skill to search for the string pattern in the current directory while excluding node_modules and showing two lines of context.

Frequently Asked Questions about ripgrep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform a fast regex search across a large codebase while excluding build artifacts?

Fast regex search across large codebases is executed by ripgrep, which automatically excludes build artifacts and binary files while matching text patterns. It supports custom glob filtering to refine results.

Why does my text search exclude files that should be included in the results?

Text search results exclude files due to active ignore rules. Troubleshoot missing files by analyzing ignore-rule management and using debug flags to identify why specific files are filtered out during command-line search operations.

Does ripgrep support multiline regex patterns for complex text search operations?

Ripgrep supports multiline regex patterns for complex text search operations. It handles multiple regex engines, including PCRE2, enabling advanced pattern matching across file systems with deterministic and shell-safe execution.

What is the best way to search for specific strings in a massive project while showing context lines?

The best way to search for specific strings in a massive project is using ripgrep, which provides output formatting options to display context lines around matches. It facilitates fast code searching while navigating ignore rules and shell-specific quoting issues.

Can I use glob filtering to narrow down code search results in specific file types?

You can use glob filtering to narrow down code search results in specific file types. Ripgrep facilitates complex search operations including custom glob filtering, allowing precise text and regex content searches across file systems.