grep

Search plain text across a workspace using ripgrep with regex support.

45|12|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/LdotJdot/OpenLum --skill grep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grep
Source: https://github.com/LdotJdot/OpenLum/tree/main/OpenLum.Console/Skills/grep
Command: npx skills add https://github.com/LdotJdot/OpenLum --skill grep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

文本搜索在工作区内快速定位信息、代码和文档。ripgrep (rg) 递归搜索纯文本,支持正则表达式。通过 exec 调用 Skills/grep/rg.exe,用于在工作区或指定目录搜索内容。

Core Features & Use Cases

  • 递归快速搜索纯文本并支持正则表达式,适用于代码库和文档检索。
  • 默认遵循 .gitignore,跳过隐藏与二进制文件,提升大规模仓库的定位效率。
  • 通过 exec 调用 skill 目录下的 rg.exe,在工作区或指定目录执行搜索。

Quick Start

Search for a keyword across the workspace by invoking the rg.exe in this skill's directory.

Frequently Asked Questions about grep

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

FAQPage Schema
How do I search for a specific text string across my entire codebase?

ripgrep recursively searches plain text files across a specified directory or the entire project, returning matching lines instantly. It supports regex patterns for precise text matching within codebases and document repositories.

How do I use regular expressions to find matching lines in my project files?

You can use regular expressions to find matching lines by invoking ripgrep via the exec tool. This allows you to apply regex patterns to recursively search code and document files in your workspace, returning exact matching lines.

Does ripgrep automatically skip hidden and binary files when searching a workspace?

Yes, ripgrep automatically skips hidden and binary files during workspace searches. It respects .gitignore rules by default, significantly improving search efficiency and relevance in large project repositories.

What is the best way to search code and text in a large project without scanning ignored files?

The best way to search code in a large project while avoiding ignored files is using ripgrep. It defaults to respecting .gitignore patterns and skipping hidden or binary files, ensuring fast and clean search results.

Can I search code in a specific directory instead of the whole workspace?

Yes, you can target a specific directory instead of the whole workspace. The skill invokes ripgrep to recursively search plain text within a specified directory path, returning matching lines from that location.