·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