AST-aware code search and refactoring using ast-grep (sg). Use INSTEAD of grep/ripgrep for searching code structure. Finds functions, classes, patterns, anti-patterns across Go, Python, Bash, Terraform/HCL codebases. Triggers on "ast-grep", "sg", "find function", "find class", "find method", "find all usages", "where is X used", "search for pattern", "find anti-pattern", "code smell", "refactor pattern", "structural search", "AST search", "find error handling", "find imports", "find decorators", "find struct", "find interface", "search code", "locate function", "grep for function", "find definition". PROACTIVE: Use for ANY code search task; prefer over grep/ripgrep for code files.
$npx -y skills add mauromedda/agent-toolkit --skill ast-grepInstalls into the current project.
Run `npx skills use "https://github.com/mauromedda/agent-toolkit" --skill "mauromedda/agent-toolkit/ast-grep"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mauromedda/agent-toolkit" that are relevant to the current task. Run `npx skills add "https://github.com/mauromedda/agent-toolkit"` and select the relevant skills, then follow their instructions.