Individual skill
ast-grep
Use when asked to run AST-based structural search, lint, or rewrite of code when regex is too fragile. Not for remote, credential, publish, deploy, or irreversible changes.
.devin/skills/ast-grep/SKILL.md
Source commit b0e8ce89a19fac880251dc3ea1babfeb4503a4fe
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 4, 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)
- 55
- Repository last updated
- Sep 28, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- odd Repository topic
- odin Repository topic
- outline Repository topic
- outlines Repository topic
- coding-paradigm Repository topic
- outline-driven-development Repository topic
- claude-plugins Repository topic
- codex-cli Repository topic
- gemini-cli-extensions Repository topic
- outline-driven 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
SKILL.mdcore · 4,966 bytesSKILL.mdcore · 4,966 bytesagents/openai.yamlasset · 164 bytesreferences/cli.mddoc · 1,241 bytesreferences/core-concepts.mddoc · 2,520 bytesreferences/pattern-syntax.mddoc · 2,075 bytesreferences/pitfalls.mddoc · 6,905 bytesreferences/project-setup.mddoc · 1,725 bytesreferences/recipes.mddoc · 8,162 bytesreferences/rewriting.mddoc · 1,777 bytesreferences/rule-config.mddoc · 2,540 bytesreferences/utility-rules.mddoc · 1,439 bytesreferences/yaml-reference.mddoc · 1,832 bytesscripts/ast_grep_helper.pyruns · 14,859 bytestests/smoke.shruns · 3,141 bytes
Read excerpt
# ast-grep
## Contract
| Field | Bound contract |
|---|---|
| Trigger | AST-based modification, structural search, lint, or replacement too fragile for regex. |
| Authority | Reversible local: writes only VCS-tracked source files (search is read-only; rewrites apply only through the helper after dry-run review); rollback is version control. No remote mutation. |
| Side effect | Local file writes through the helper two-pass validate/dry-run/apply flow; no remote, credential, or published mutation. |
| Done | Pattern validated and blast radius reviewed; any rewrite landed at the correct scope (search/lint-only runs are valid). |
## Inputs
- An ast-grep pattern, single-quoted in the shell so `$VAR` reaches ast-grep unexpanded.