Lightlines
By ast-grep

ast-grep

ast-grep14.8k installs

Find code by structure, not just text.

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

Security reviews

Not yet reviewed.


What you need · 1

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


Access · 2

This skill

a temporary file

Write

Saves example code temporarily

ast-grep

Execute

Ast-grep searches