Home / Skills / ast-grep

ast-grep

coleam00/skillsSkill

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.

ScannedSkillSource: GitHub
710 stars +29 this week Updated 28d ago License MIT Context ≈109 tokens always loaded
69popular

Why this score

Stars13/35
Usage (forks)6/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 10 skills, so its 710 stars are split between them (about 71 each) for scoring.

Popularity score: 69/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

Security

Scanned Oct 21, 2026 at commit 847be0848ae7, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This oneast-grep coleam00/skills · Skill 69★ 710≈109 always28d ago
ast-grep-find parcadei/Continuous-Claude-v3 · Skill Both about ast and grep 58★ 3.9k≈17 always9mo ago
ast-visitor-pattern prisma/orm · Skill Both about ast 86★ 48k≈23 always16d ago
web3-grep-arsenal tradecatlabs/vibe-coding-cn · Skill Both about grep and specific 79★ 18k≈48 always16d ago