# ast-grep

AST-aware structural code search and rewrite via ast-grep.

- Type: Skill
- Updated: 22 Nov 2026
- Category: Software Development

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

AST-aware structural code search and rewrite via ast-grep. It treats your pattern as code, parses it the same way it parses your project, and matches structurally.

It is the right tool whenever your question depends on code shape rather than text bytes.

## How to set it up

(binary also named ) is an AST-aware search and rewrite tool across 25 languages.

```
ast-grep
```

```
sg
```

## More in Software Development

- [code-wiki](https://www.ulpi.io/en/marketplace/skills/code-wiki): Generate wiki docs + Mermaid diagrams for any codebase.
- [grill-me](https://www.ulpi.io/en/marketplace/skills/grill-me): Adversarial plan interview before implementation.
- [node-inspect-debugger](https://www.ulpi.io/en/marketplace/skills/node-inspect-debugger): Debug Node.js via --inspect + Chrome DevTools Protocol CLI.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
