Searching Code Structures

Use ast-grep CLI tool for syntax-aware code searching, pattern matching, refactoring, and creating custom linting rules. Invoke when users request to "find code patterns", "search for functions that...", "refactor all X to Y", "replace code structures", ask about AST structure, or explicitly mention ast-grep. Handles complex structural searches beyond simple text matching (e.g., "find all async functions without error handling", "replace callback patterns with promises").

dallascrilley 6ed9a53 5 files · 49.9 KB Updated

File contents

dallascrilley/dowser/tree/main/skills/searching-code-structures commit 6ed9a53b29

Frequently asked questions

npx skillmds@latest add dallascrilley/searching-code-structures