AST-Aware Code Search

0•

Performs structural, language-aware code searches using abstract syntax trees to find precise patterns and definitions.

This skill empowers Claude to perform sophisticated code searches using ast-grep, a tool that understands the structural context of programming languages rather than just treating code as raw text. It allows for finding complex patterns like function definitions, API usages, or specific syntax structures across multiple languages including TypeScript, Python, and Go. By parsing the Abstract Syntax Tree (AST), it eliminates noise from comments or string literals, providing highly accurate results for refactoring, exploration, and impact analysis tasks.

주요 기능

01Structural placeholders for matching specific variables, arguments, and code blocks
02Optimized for large-scale codebase exploration and precise refactoring
030 GitHub stars
04Syntax-aware pattern matching using ast-grep instead of simple text search
05Context-aware results that ignore matches within comments or string literals
06Support for over 15 programming languages including TypeScript, Python, Go, and Rust

사용 사례

01Finding all React components or hooks that follow a specific structural pattern
02Identifying every implementation of a class method across a large microservices repository
03Locating all calls to a specific API function with complex, multi-line arguments