ast-grep is agent-read markdown (skill) from rolandbrecht/agent-skills: Use this skill ANY time you must search, lint, or rewrite code by its syntax structure. ast-grep is an AST-based CLI tool. It matches code by syntax tree, not by text. ALWAYS prefer it over grep/ripgrep when the query is about code structure. Trigger categories: structural code search (find all calls to X, functions without Y), bulk code rewrite/codemod (replace API calls, migrate deprecated patterns), custom lint rules (enforce project patterns), multi-pass symbol renaming, code outline/structu.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
mdr add rolandbrecht/agent-skills/ast-grep@git:20260813.27110ebmdr add rolandbrecht/agent-skills/ast-grep@sha256:dbfe380b9d552aa1Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_7ziq67tw5ffuaefl)
0 badge views in 30 days
rolandbrecht/agent-skills · 4 stars · license MIT · pushed 2026-08-13 · branch main
GET https://markdownregistry.com/api/v1/artifacts/art_7ziq67tw5ffuaefl GET https://markdownregistry.com/api/v1/resolve?ref=rolandbrecht/agent-skills/ast-grep GET https://markdownregistry.com/api/v1/blob/dbfe380b9d552aa1b96e3fed1348be7857999f3575c7ecd444f4127ef8bfa810