Advanced Code Grepping

0•

Optimizes code searching by providing advanced patterns and flag translations for ripgrep and ast-grep.

This skill enhances Claude's ability to search through codebases efficiently by prioritizing modern tools like ripgrep (rg) and ast-grep (sg) over traditional grep. It prevents common search failures caused by legacy muscle memory, provides a quick reference for complex regex patterns, and introduces structural search capabilities for matching syntax shapes rather than just text. Whether you're debugging regex errors or performing wide-scale structural rewrites, this skill ensures accurate results by handling specific tool quirks and flag differences.

主な機能

01Optimizes symbol lookup using AST-based search via MCP probe integration
020 GitHub stars
03Translates legacy grep and egrep commands into high-performance ripgrep equivalents
04Provides a quick reference for ripgrep flags, including multiline and fixed-string modes
05Enables structural code matching with ast-grep for syntax-aware searches
06Prevents silent search failures and common regex parse errors in the shell

ユースケース

01Troubleshooting search queries that return no results due to flag or regex syntax errors
02Performing structural find-and-replace for complex code blocks across a project
03Finding specific text patterns across large repositories while respecting .gitignore