ripgrep

Search codebases and documents for regex patterns while respecting .gitignore.

58.3k|3.9k|Updated Dec 29, 2015
One-click install
npx skills add https://github.com/penpot/penpot --skill ripgrep-penpot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ripgrep
Source: https://github.com/penpot/penpot/tree/main/.opencode/skills/ripgrep
Command: npx skills add https://github.com/penpot/penpot --skill ripgrep-penpot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and locate text patterns across large codebases and documents quickly and efficiently, while respecting .gitignore rules.

Core Features & Use Cases

  • Recursive, fast text search across directories with regex support.
  • Respect for .gitignore and ability to filter by file types.
  • Real-world use: find all occurrences of a keyword like TODO across a repository to guide refactoring.

Quick Start

Run ripgrep to search your project for a pattern and return matching lines across files.

Frequently Asked Questions about ripgrep

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

FAQPage Schema
How do I search for a regex pattern across a large codebase quickly?

To search a large codebase quickly, use the ripgrep engine to perform fast recursive directory scans for regex patterns. It identifies and locates text patterns across multi-language repositories while respecting .gitignore rules and filtering by specific file types.

Does ripgrep search respect .gitignore rules when scanning a project directory?

Yes, ripgrep respects .gitignore rules during recursive directory scans. This ensures search results automatically exclude files and directories defined in your .gitignore, keeping text pattern matches relevant to your actual project source code.

What is the best way to find all TODO comments in a multi-language repository?

The best way to find all TODO comments across a multi-language repository is using ripgrep for recursive text search. It rapidly scans directories with regex support to locate exact text patterns like TODO, guiding code review and refactoring.

Can I filter codebase search results by specific file types?

Yes, you can filter codebase search results by specific file types. The ripgrep engine supports file type filtering during its recursive scans, allowing you to restrict regex pattern matching to specific languages or document formats.

Why use ripgrep for content discovery instead of other codebase search tools?

Use ripgrep for content discovery because it is a blazingly fast search engine built for large codebases. It provides strong performance and predictable output during recursive scans, accurately finding regex patterns faster than standard search tools.