Install any skill in seconds. Free to start, no credit card required.
Get Started Free →vinhnx/ast-grep
Use for ast-grep project setup, rule authoring, rule debugging, and structural search workflows.
Passed 17 of 20 test cases with the skill, and 10 of 20 without it.
and 7 more in the full report
8 fixed12 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
When running project scans, I want to quickly verify which root directory and configuration file were automatically discovered without printing finding results. What CLI command and option should I execute?
| Checked | Without skill | With skill |
|---|---|---|
| Includes the ast-grep scan command | Missed | Passed |
| Includes the --inspect summary option | Missed | Passed |
The instructions your model reads when the skill loads.
Use this skill for ast-grep project setup, rule authoring, rule debugging, and CLI workflows that go beyond a single structural query.
exec_command for ast-grep queries, project scans, rule tests, debug output, and rewrite previews.ast-grep scan for project rules and ast-grep test for rule tests.ast-grep run --pattern=... --rewrite=... --json=compact --color=never for dry-run rewrite previews. Review every replacement before applying changes.ast-grep run --debug-query when a query matches an unexpected syntax node.--kind to match node kinds. Ast-grep supports ESQuery-style compound selectors and pseudo-selectors in supported releases.vtcode dependencies install ast-grep before suggesting system package managers.ast-grep --help.ast-grep binary name over sg because sg may already refer to setgroups.$PROP, use single quotes so the shell does not expand them before ast-grep sees the pattern.$PROP && $PROP() to $PROP?.().ast-grep run: ad-hoc query execution and one-off rewrites.ast-grep scan: project rule scanning.ast-grep new: scaffold and rule generation.ast-grep test: rule-test execution.ast-grep lsp: editor integration via language server.bash, c, cc / cpp, cs, css, ex, go / golang, html, java, js / javascript / jsx, json, kt, lua, md / markdown, php, py / python, rb, rs / rust, swift, ts / typescript, tsx, and yml.--lang <alias> and YAML language: <alias> use those built-in aliases. File-system scans infer language from built-in extensions unless the project overrides them.--lang <alias> to the CLI when extension inference is insufficient.languageGlobs when the repository needs a different extension mapping than ast-grep’s built-in defaults.test cases passed, vs 10 / 20 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.