Skip to content

Instantly share code, notes, and snippets.

View hyf0's full-sized avatar
🧙‍♂️
Spelling

Yunfei He hyf0

🧙‍♂️
Spelling
View GitHub Profile
@hyf0
hyf0 / SKILL.md
Created November 12, 2025 06:12
ast-grep-search
name description allowed-tools
ast-grep-search
Syntax-aware code searching that understands code structure rather than just text patterns. Always prefer ast-grep than grep for code searches.
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.