Ripgrep

From xdg/xdg-claude · View interactive version

Ripgrep is an AI agent skill from the GitHub repository xdg/xdg-claude. Search code and text files via ripgrep (rg) in Bash. Prefer rg over the Grep tool: rg gives full unredacted output, supports pipe composition, and exposes flags Grep does not (-F, -w, -L, -v).

How to use this skill

Skill file

ripgrep

Default invocation:

rg -n -C 2 -t TYPE -e 'pattern'

Tool selection

Default to Bash(rg) for code/text search. Grep is the Claude Code built-in (also rg under the hood) but truncates output, cannot pipe, and exposes only a subset of rg flags. Use Grep only when the search is trivial and structured output is desired.

Glob handles filename-only matching.

Non-default flags worth knowing

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.