# Ast Grep

> Guide for writing ast-grep rules to perform structural code search and analysis.

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.

- Page: https://ss33.ai/skills/ast-grep/ast-grep-53808260565
- Publisher: ast-grep
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Developer docs & tooling](https://ss33.ai/skills/category/software-development-t44z8z/developer-docs-and-tooling-nich6w)
- Source: https://github.com/ast-grep/agent-skill/blob/f2175aff21f20cfb8e2db30c28febeb3a2d42b61/ast-grep/skills/ast-grep/SKILL.md

## Skill

This skill's licence does not allow redistribution, so the store does not serve its text. Get it from the author: https://github.com/ast-grep/agent-skill/blob/f2175aff21f20cfb8e2db30c28febeb3a2d42b61/ast-grep/skills/ast-grep/SKILL.md
