grep
Installation
SKILL.md
Grep Tool
Search file contents with regex. Uses ripgrep.
REQUIRED: pattern (regex pattern) OPTIONAL: path (directory/file), glob (file glob filter like "*.py"), ignoreCase (bool), literal (bool — treat pattern as literal text), context (lines of context before/after), limit (max matches, default 100)
RULES:
- Supports full regex syntax (unless
literal: true) - Use
globto filter by file type (e.g. ".py", ".js") - Use
limitto cap results; default 100 - Returns matching lines with file path and line number
- Good for finding function definitions, imports, references
EXAMPLE: