cli-ripgrep

Search codebases recursively with ripgrep using regex patterns and flags.

3|1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/ryankolean/summit-claude-skills --skill cli-ripgrep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-ripgrep
Source: https://github.com/ryankolean/summit-claude-skills/tree/main/skills/cli-ripgrep
Command: npx skills add https://github.com/ryankolean/summit-claude-skills --skill cli-ripgrep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ripgrep enables fast, regex-based search across codebases, dramatically reducing manual search time.

Core Features & Use Cases

  • Recursive directory searches to locate matches quickly
  • Extensive flag coverage: -i, -w, -l, -n, -A/-B/-C, -U, --json, -g, and -t for type filtering
  • Multiline search support and JSON output for tooling pipelines
  • Use Case: Find all occurrences of a function name across a project and export results for review

Quick Start

Search a project for a pattern recursively using ripgrep.

Frequently Asked Questions about cli-ripgrep

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

FAQPage Schema
How do I search a codebase recursively for a regex pattern?

You can search a codebase recursively for a regex pattern using ripgrep to locate matches quickly across directories. The tool scans files automatically and supports flags like -i and -w for refined searching.

Does ripgrep support filtering search results by file type?

Yes, ripgrep supports file-type filtering using the -t flag for specific types and -g for glob patterns. This allows you to narrow recursive directory searches to relevant files only.

Can I output ripgrep search results as JSON for automated pipelines?

Yes, ripgrep can output search results as JSON using the --json flag. This enables integration with external utilities and tooling pipelines for automated codebase analysis workflows.

How do I perform a multiline search across files in a project?

Ripgrep performs multiline searches across files using the -U flag. This allows your regex pattern to match text that spans multiple lines within the codebase files being scanned.

What is the best way to find all occurrences of a function name across a project?

The best way to find all occurrences of a function name across a project is using ripgrep for fast, regex-based recursive directory searches. You can use flags like -n to show line numbers for review.

Can I show context lines around my ripgrep search matches?

Yes, you can show context lines around search matches using the -A, -B, and -C flags for lines after, before, or both. This helps you understand the surrounding code when locating matches.