Lightlines
By ast-grep

ast-grep

ast-grep

Find code by structure, not just text.

code search

What it does

Translate natural-language code-search requests into tested ast-grep rules and structural searches.

When to use it

Use it for structural code searches, specific language constructs, AST characteristics, or complex queries beyond traditional text search.

How to use it

Give it a structural code-search pattern and programming language in a project; it returns a tested ast-grep rule or search command and matches.

What you provide

  • the code pattern
  • the programming language
  • An existing project

Access · 2

This skill

a temporary file

Write

Saves example code temporarily

ast-grep

Execute

Ast-grep searches

What you need · 1

The ast-grep CLI must be available to test rules and search the codebase.


About this skill

Visibility
Public
Repository
ast-grep/agent-skill
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
2