What problem does it solve?
This Skill addresses the challenge of searching codebases efficiently using Abstract Syntax Tree (AST) patterns, enabling users to pinpoint specific code structures or patterns that go beyond simple text search.
Core Features & Use Cases
- AST Pattern Matching: Locate code patterns and structures that are not easily searchable with text search.
- Code Search: Perform complex queries that require understanding the structure of the code.
- Use Case: For example, find all async functions in a codebase without error handling.
Quick Start
Use the ast-grep skill to find all async functions without error handling in your codebase by running the command 'ast-grep scan --inline-rules "id: find-async language: javascript rule: all: - kind: function_declaration - has: pattern: await $EXPR stopBy: end" /path/to/project'.