Structural code search and replacement using the sg CLI. Use for function calls, imports, class/method definitions, call sites, and codemods. Prefer LSP for definitions/references/types; use sg for structural patterns; reserve grep for exact literals, comments, URLs, or non-code files.
$npx -y skills add aryaniyaps/ultimate-pi --skill ast-grepInstalls into the current project.
Run `npx skills use "https://github.com/aryaniyaps/ultimate-pi" --skill "aryaniyaps/ultimate-pi/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/aryaniyaps/ultimate-pi" that are relevant to the current task. Run `npx skills add "https://github.com/aryaniyaps/ultimate-pi"` and select the relevant skills, then follow their instructions.