·ripgrep
</>

ripgrep

ratacat/claude-skills

在文件、代码库、书籍或文档中搜索文本时使用。当按模式查找文件、搜索太大而无法完全读取的大文件、从许多文件中提取特定内容或当 grep/find 太慢时使用。触发“搜索”、“查找事件”、“查找模式”、“在文件中搜索”。

46安装·1热度·@ratacat

安装

$npx skills add https://github.com/ratacat/claude-skills --skill ripgrep

SKILL.md

Ripgrep is a line-oriented search tool that recursively searches directories for regex patterns. It's 10-100x faster than grep and respects .gitignore by default. Use it instead of grep, find, or manually reading large files.

Core principle: When you need to find text in files, use ripgrep. Don't read entire files into context when you can search them.

| Basic search | rg "pattern" [path] | | Case insensitive | rg -i "pattern" | | Smart case (auto) | rg -S "pattern" | | Whole word only | rg -w "word" | | Fixed string (no regex) | rg -F "literal.string" | | Show context lines | rg -C 3 "pattern" (3 before & after) | | Show line numbers | rg -n "pattern" (default in tty) |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/ratacat/claude-skills --skill ripgrep
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 ripgrep?

在文件、代码库、书籍或文档中搜索文本时使用。当按模式查找文件、搜索太大而无法完全读取的大文件、从许多文件中提取特定内容或当 grep/find 太慢时使用。触发“搜索”、“查找事件”、“查找模式”、“在文件中搜索”。 来源:ratacat/claude-skills。

如何安装 ripgrep?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ratacat/claude-skills --skill ripgrep 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/ratacat/claude-skills