#971 by GitHub stars
ast-grep/agent-skill
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users a
History
Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.
View weekly changes
ast-grep/skills/ast-grep/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
f2175aff21f2 → f2175aff21f2
Diff text is unavailable under the recorded licenses. Line counts and the GitHub link remain available.
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → f2175aff21f2
No earlier version was observed for comparison.
ast-grep/skills/outline/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
f2175aff21f2 → f2175aff21f2
Diff text is unavailable under the recorded licenses. Line counts and the GitHub link remain available.
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → f2175aff21f2
No earlier version was observed for comparison.
Verified commit f2175aff21f20cfb8e2db30c28febeb3a2d42b61
git clone --filter=blob:none --no-checkout https://github.com/ast-grep/agent-skill.git .hotskills/ast-grep-agent-skill && git -C .hotskills/ast-grep-agent-skill checkout --detach f2175aff21f20cfb8e2db30c28febeb3a2d42b61
# Copy each selected skill directory from .hotskills/ast-grep-agent-skill into .claude/skills/<skill-name>/Heat
4.0- Star growth, last 7 daysAhead of 51% of tracked repositories
- Star growth, last 24 hoursAhead of 71% of tracked repositories
- Rank movement, last 7 daysAhead of 3% of tracked repositories
- Commits, last 30 daysAhead of 60% of tracked repositories
- Accounts asking about it through MCP, last 7 daysNot available
- Hot votes this weekAhead of 0% of tracked repositories
Heat never changes the order by stars, and sponsorship never touches it. How heat works
Stars over time
Individual skills in this repository
- ast-grep
ast-grep/skills/ast-grep - ast-grep-outline
ast-grep/skills/outline
How it works
ast-grep
When your agent uses it
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.
What it loads into context
Frontmatter
84 tokensAlways available to the agent
SKILL.md
2,748 tokensWhen the skill is activated
Reference documents
2,657 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Overview
- When to Use This Skill
- General Workflow
- ast-grep CLI Commands
- Tips for Writing Effective Rules
- Common Use Cases
- Resources
Files
../../../.claude-plugin/marketplace.jsonasset920 bytes../../.claude-plugin/plugin.jsonasset653 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesSKILL.mdcore11,030 bytesreferences/rule_reference.mddoc10,697 bytes
No excerpt is shown for this license. Read the source on GitHub.
View the complete source on GitHubast-grep-outline
When your agent uses it
Use when exploring or modifying a codebase and you need a cheap structural map of files, directories, imports, exports, or direct members before reading full source.
What it loads into context
Frontmatter
41 tokensAlways available to the agent
SKILL.md
749 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When To Use It
- Argument Guide
- Limits
Files
SKILL.mdcore3,210 bytesSKILL.mdcore3,210 bytesSKILL.mdcore3,210 bytes
No excerpt is shown for this license. Read the source on GitHub.
View the complete source on GitHubSkills included
- ast-grep
- ast-grep-outline
Repository facts
- License
- No license detected
- Created
- Nov 16, 2025
- Last pushed
- Nov 4, 2026
- Forks
- 37
- Open issues
- 1
- Project activity
- Active
Rank over the last 12 weeks
Now #971 · best #619 · down 226 in 30 days
- #949 on Oct 31
- #951 on Nov 1
- #960 on Nov 2
- #964 on Nov 3
- #967 from Nov 4 to Nov 5
- #971 since Nov 6
47 earlier periods
- #693 on Aug 1
- #646 on Aug 6
- #615 on Aug 9
- #648 on Aug 12
- #644 on Aug 13
- #623 on Aug 15
- #636 on Aug 16
- #662 on Aug 18
- #644 on Aug 19
- #646 on Aug 20
- #649 on Aug 21
- #619 on Aug 22
- #671 on Aug 25
- #664 on Aug 27
- #639 on Aug 30
- #670 on Aug 31
- #684 on Sep 1
- #678 on Sep 3
- #711 on Sep 8
- #699 on Sep 9
- #700 on Sep 10
- #684 on Sep 11
- #685 from Sep 12 to Sep 13
- #701 on Sep 15
- #715 on Sep 16
- #719 on Sep 17
- #704 on Sep 18
- #721 on Sep 23
- #694 on Sep 24
- #678 on Sep 25
- #676 on Sep 26
- #723 on Sep 28
- #736 on Sep 30
- #707 on Oct 2
- #687 on Oct 3
- #745 on Oct 7
- #786 on Oct 8
- #753 on Oct 9
- #761 on Oct 12
- #766 on Oct 13
- #756 on Oct 17
- #804 on Oct 20
- #811 on Oct 21
- #927 on Oct 25
- #940 on Oct 28
- #943 on Oct 29
- #946 on Oct 30
Before you install
Network or broad shellAutomated signals, not a guarantee
Checked Nov 4, 2026
Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.
Show 23 notes
ast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedast-grep/skills/ast-grep/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzed
- No broad tool permissions
- No dangerous shell commands
- 12 network referencesin 3 files: .claude-plugin/marketplace.json:7 ast-grep/.claude-plugin/plugin.json:6 ast-grep/SKILL.md:77
- No hidden or obfuscated text
- No instruction overrides
- No executable scripts
- No access to secrets
- No requests to vote in Hot
Show all 12 signals by file
.claude-plugin/marketplace.json
- Network accessline 7
"description": "A marketplace for Claude Code skills including ast-grep structural code search", "version": "1.0.0", "repository": "https://github.com/ast-grep/agent-skill", - Network accessline 8
"version": "1.0.0", "repository": "https://github.com/ast-grep/agent-skill", "homepage": "https://github.com/ast-grep/agent-skill" - Network accessline 9
"repository": "https://github.com/ast-grep/agent-skill", - Network accessline 10
"homepage": "https://github.com/ast-grep/agent-skill"
ast-grep/.claude-plugin/plugin.json
- Network accessline 6
"name": "Herrington Darkholme" }, "homepage": "https://github.com/ast-grep/agent-skill", - Network accessline 7
}, "homepage": "https://github.com/ast-grep/agent-skill", "repository": "https://github.com/ast-grep/agent-skill", - Network accessline 8
"homepage": "https://github.com/ast-grep/agent-skill", - Network accessline 9
"repository": "https://github.com/ast-grep/agent-skill",
ast-grep/skills/ast-grep/SKILL.md
- Network accessline 77
echo "async function test() { await fetch(); }" | ast-grep scan --inline-rules "id: test - Network accessline 127
ast-grep run --pattern 'async function example() { await fetch(); }' \ - Network accessline 160
echo "const x = await fetch();" | ast-grep scan --inline-rules "id: test - Network accessline 168
echo "const x = await fetch();" | ast-grep scan --inline-rules "..." --stdin --json
How the signals fit together
Facts from a static read of the files at the pinned commit. They describe what the code does, not why.
Some files could not be read; the facts below still hold.
Signal confidence: 4 facts
- Network access in code of the SKILL.mdast-grep/SKILL.md:77High confidence
- Network access in code of the SKILL.mdast-grep/SKILL.md:127High confidence
- Network access in code of the SKILL.mdast-grep/SKILL.md:160High confidence
- Network access in code of the SKILL.mdast-grep/SKILL.md:168High confidence
Works with
| Agent | Status | Evidence | Install to |
|---|---|---|---|
| Claude Code | Native | Manifest .claude-plugin/marketplace.json | .claude/skills/<skill-name>/ |
| Codex | Compatible | Standard SKILL.md ast-grep/skills/ast-grep/SKILL.md | .agents/skills/<skill-name>/ |
| Cursor | Compatible | Standard SKILL.md ast-grep/skills/ast-grep/SKILL.md | .cursor/skills/<skill-name>/ |
| Gemini CLI | Compatible | Standard SKILL.md ast-grep/skills/ast-grep/SKILL.md | .gemini/skills/<skill-name>/ |
| GitHub Copilot | Compatible | Standard SKILL.md ast-grep/skills/ast-grep/SKILL.md | .github/skills/<skill-name>/ |
| OpenCode | Compatible | Standard SKILL.md ast-grep/skills/ast-grep/SKILL.md | .opencode/skills/<skill-name>/ |
- Native The repository ships a manifest, folder or frontmatter field for this agent.
- Compatible A standard SKILL.md that this agent can read.
- Unknown No evidence either way.
Derived automatically from paths, manifests and frontmatter. Not tested on each agent.
Explore alternatives and comparisons
Add this badge to your README
It updates every night and links to this page.
[](https://hotskills.dev/skill/ast-grep-agent-skill/)