Skip to content

Instantly share code, notes, and snippets.

View DeJeune's full-sized avatar
:electron:

SuYao DeJeune

:electron:
View GitHub Profile
@hyfdev
hyfdev / SKILL.md
Created November 12, 2025 06:12
ast-grep-search
name ast-grep-search
description Syntax-aware code searching that understands code structure rather than just text patterns. Always prefer ast-grep than grep for code searches.
allowed-tools Read, Grep, Bash(ast-grep:*), Bash(sg:*)

ast-grep: Structural Code Search

ast-grep allows searching code based on its Abstract Syntax Tree (AST), enabling syntax-aware pattern matching. It is ideal for finding function calls, method invocations, variable declarations, and other code structures while respecting language syntax.