Blazingly fast text search tool - recursively searches directories for regex patterns with respect to gitignore rules.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install ripgrep或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install ripgrep⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/ripgrep/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: ripgrep description: Blazingly fast text search tool - recursively searches directories for regex patterns with respect to gitignore rules. homepage: https://github.com/BurntSushi/ripgrep metadata: {"clawdbot":{"emoji":"🔎","requires":{"bins":["rg"]},"install":[{"id":"brew","kind":"brew","formula":"ripgrep","bins":["rg"],"label":"Install ripgrep (brew)"},{"id":"apt","kind":"apt","package":"ripgrep","bins":["rg"],"label":"Install ripgrep (apt)"}]}} ---
Fast, smart recursive search. Respects .gitignore by default.
# Search for "TODO" in current directory
rg "TODO"
# Case-insensitive search
rg -i "fixme"
# Search specific file types
rg "error" -t py # Python files only
rg "function" -t js # JavaScript files
# Whole word match
rg -w "test"
# Show only filenames
rg -l "pattern"
# Show with context (3 lines before/after)
rg -C 3 "function"
# Count matches
rg -c "import"
# Multiple file types
rg "error" -t py -t js
# Exclude file types
rg "TODO" -T md -T txt
# List available types
rg --type-list
# Regex search
rg "user_\d+"
# Fixed string (no regex)
rg -F "function()"
# Multiline search
rg -U "start.*end"
# Only show matches, not lines
rg -o "https?://[^\s]+"
# Search specific directory
rg "pattern" src/
# Glob patterns
rg "error" -g "*.log"
rg "test" -g "!*.min.js"
# Include hidden files
rg "secret" --hidden
# Search all files (ignore .gitignore)
rg "pattern" --no-ignore
# Preview replacements
rg "old_name" --replace "new_name"
# Actually replace (requires extra tool like sd)
rg "old_name" -l | xargs sed -i 's/old_name/new_name/g'
# Parallel search (auto by default)
rg "pattern" -j 8
# Skip large files
rg "pattern" --max-filesize 10M
# Memory map files
rg "pattern" --mmap
Find TODOs in code:
rg "TODO|FIXME|HACK" --type-add 'code:*.{rs,go,py,js,ts}' -t code
Search in specific branches:
git show branch:file | rg "pattern"
Find files containing multiple patterns:
rg "pattern1" | rg "pattern2"
Search with context and color:
rg -C 2 --color always "error" | less -R
.gitignore, skips binary filesrg is often faster than grep -r-t for file type filtering instead of --includerg pattern -l | xargs tool~/.ripgreprc--stats to see search performanceGitHub: https://github.com/BurntSushi/ripgrep User Guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md
安装 Ripgrep 后,可以对 AI 说这些话来触发它
Help me get started with Ripgrep
Explains what Ripgrep does, walks through the setup, and runs a quick demo based on your current project
Use Ripgrep to blazingly fast text search tool - recursively searches directories ...
Invokes Ripgrep with the right parameters and returns the result directly in the conversation
What can I do with Ripgrep in my developer & devops workflow?
Lists the top use cases for Ripgrep, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/ripgrep/ 目录(个人级,所有项目可用),或 .claude/skills/ripgrep/(项目级)。重启 AI 客户端后,用 /ripgrep 主动调用,或让 AI 根据上下文自动发现并使用。
Ripgrep 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Ripgrep 可免费安装使用。请查阅仓库了解许可证信息。
Blazingly fast text search tool - recursively searches directories for regex patterns with respect to gitignore rules.
Ripgrep 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Ripgrep
Identifies repetitive steps in your workflow and sets up Ripgrep to handle them automatically