rolandbrecht/agent-skills · ast-grep/SKILL.md

ast-grep skillA

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.

How to install

Latest version
mdr add rolandbrecht/agent-skills/ast-grep@git:20260813.27110eb
Exact content
mdr add rolandbrecht/agent-skills/ast-grep@sha256:dbfe380b9d552aa1

Pin 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7ziq67tw5ffuaefl.svg)](https://markdownregistry.com/a/art_7ziq67tw5ffuaefl)

0 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260813.27110eb latest2026-08-13 27110eb 7,747 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.

Source

GitHub

rolandbrecht/agent-skills · 4 stars · license MIT · pushed 2026-08-13 · branch main

API

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