No slash command · from tools-plugin
Expert knowledge for using ripgrep (rg) for fast code search with smart defaults, regex, file type and path filtering. Useful for searching text patterns and multi-file analysis.
Ships in tools-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Expert knowledge for using rg (ripgrep) as a blazingly fast code search tool with powerful filtering and pattern matching.
| Use this skill when... | Use fd-file-finding instead when... |
|---|---|
| Searching file contents for text or regex patterns | Searching for files by name, extension, or path |
Filtering matches by file type (-t py, -t js) | Filtering files by mtime, size, or -type |
| Multi-line pattern matching across source files | Locating files to feed into another tool |
| Use this skill when... | Use binary-analysis instead when... |
|---|---|
| Searching source code or text-encoded files | Extracting strings from compiled binaries or firmware |
| Auditing repos for hardcoded patterns in tracked files | Hunting for credentials inside ELF, Mach-O, or .bin blobs |
ripgrep Advantages
.gitignore automatically# Basic search
rg pattern # Search in current directory
rg "import numpy" # Search for exact phrase
rg function_name # Search for function name
# Case-sensitive search
rg -s Pattern # Force case-sensitive
rg -i PATTERN # Force case-insensitive
# Search specific file types
rg pattern -t py # Python files only
rg pattern -t rs # Rust files only
rg pattern -t js # JavaScript files
rg pattern -t md # Markdown files
# Multiple types
rg pattern -t py -t rs # Python and Rust
# List available types
rg --type-list # Show all known types
# Filter by extension
rg pattern -g '*.rs' # Rust files
rg pattern -g '*.{js,ts}' # JavaScript and TypeScript
rg pattern -g '!*.min.js' # Exclude minified files
# Search in specific directories
rg pattern src/ # Only src/ directory
rg pattern src/ tests/ # Multiple directories
# Exclude paths
rg pattern -g '!target/' # Exclude target/
rg pattern -g '!{dist,build,node_modules}/' # Exclude multiple
# Full path matching
rg pattern -g '**/test/**' # Only test directories
A glob with no / matches the basename only. So -g '*name*' can never
match a directory called name — it tests SKILL.md, not
skills/name/SKILL.md. Add a / and the glob anchors to the full path from the
search root instead, where * does not cross /; only ** spans depth.
rg --files -g '*sentry-triage*' # nothing — basename is SKILL.md
rg --files -g '*sentry-triage*/**' # nothing — now anchored at the root
rg --files -g '**/sentry-triage/**' # skills/sentry-triage/SKILL.md ← the only form that works
It fails quietly: -g '*name*' still matches sibling files like
name-notes.md, so a partial hit reads as a working search. When hunting a name
rather than content, prefer rg -l <pattern> or find -type d -name <name>.
# Search only in files containing pattern
rg --files-with-matches "import.*React" | xargs rg "useState"
# Exclude files by content
rg pattern --type-not markdown
# Search only uncommitted files
rg pattern $(git diff --name-only)
# Include hidden files
rg pattern -u # Include hidden
rg pattern -uu # Include hidden + .gitignore'd
rg pattern -uuu # Unrestricted: everything
# Exclude by size
rg pattern --max-filesize 1M # Skip files over 1MB
| Option | Purpose | Example |
|---|---|---|
-t TYPE | File type filter | rg -t py pattern |
-g GLOB | Glob pattern | rg -g '*.rs' pattern |
-i | Case-insensitive | rg -i pattern |
-s | Case-sensitive | rg -s Pattern |
-w | Match whole words | rg -w word |
-l | Files with matches | rg -l pattern |
-c | Count per file | rg -c pattern |
-A N | Lines after | rg -A 5 pattern |
-B N | Lines before | rg -B 3 pattern |
-C N | Context lines | rg -C 2 pattern |
-U | Multi-line | rg -U 'pattern.*' |
-u | Include hidden | rg -u pattern |
--replace | Replace text | rg pattern --replace new |
This makes rg the preferred tool for fast, powerful code search in development workflows.
For the full regex and multi-line recipes, output formatting, language-specific search patterns, tool integrations, performance tuning, and the complete file-type table, see REFERENCE.md.
What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin tools-plugin18 skills in this plugin
/apptainerApptainer: run OCI images as rootless batch jobs with --nv GPU passthrough and digest-pinned SIFs. Use when running a CUDA tool without Docker, podman lacks GPU support, or a pull fills root./binary-analysisBinary analysis: strings, binwalk, hexdump, xxd, file, objdump. Use when identifying unknown files, extracting strings, hunting credentials, or entropy analysis./cli-smoke-recipesCLI smoke recipes: expose pure-function modules via subcommands with a bulk-smoke justfile recipe. Use when designing data-transform modules or authoring smoke tests.Other plugins' skills for the same job