Individual skill
ast-grep
Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.
packages/shared-skills/skills/ast-grep/SKILL.md
Source commit 0ef1af9d2392697f257067e7c7d531bcdd83d24e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 70,775
- Repository last updated
- Nov 8, 2026
- License
- NOASSERTION
Observed agent integration: codex
- opencode Repository topic
- ai Repository topic
- anthropic Repository topic
- claude Repository topic
- claude-skills Repository topic
- cursor Repository topic
- gemini Repository topic
- ide Repository topic
- openai Repository topic
- orchestration Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
.gitignoreasset · 343 bytesAGENTS.mddoc · 3,162 bytesLICENSEasset · 1,068 bytesREADME.mddoc · 7,791 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSKILL.mdcore · 13,371 bytesSOURCEasset · 125 bytesinstall.ps1runs · 7,384 bytesinstall.shruns · 7,663 bytesreferences/cli.mddoc · 7,273 bytesreferences/install.mddoc · 5,829 bytesreferences/patterns.mddoc · 5,538 bytesreferences/pitfalls.mddoc · 8,914 bytesreferences/recipes.mddoc · 7,870 bytesreferences/sgconfig.mddoc · 6,413 bytesreferences/yaml-rules.mddoc · 11,383 bytesscripts/ast_grep_helper.pyruns · 27,452 bytestests/smoke.ps1runs · 5,701 bytestests/smoke.shruns · 7,765 bytes
No licensed excerpt is available. You can inspect the pinned source.