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

Compare on GitHub

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.

Compare on GitHub

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.

Compare on GitHub

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.

Compare on GitHub

View on GitHubAdd to my skills

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>/
902GitHub stars
2stars in 7 days
2skills in this repository
2commits in 30 days

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

Aug 1, 2026Nov 5, 2026902

Individual skills in this repository

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 tokens

Always available to the agent

SKILL.md

2,748 tokens

When the skill is activated

Reference documents

2,657 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Overview
  2. When to Use This Skill
  3. General Workflow
  4. ast-grep CLI Commands
  5. Tips for Writing Effective Rules
  6. Common Use Cases
  7. Resources

Files

  • ../../../.claude-plugin/marketplace.jsonasset920 bytes
  • ../../.claude-plugin/plugin.jsonasset653 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • SKILL.mdcore11,030 bytes
  • references/rule_reference.mddoc10,697 bytes

No excerpt is shown for this license. Read the source on GitHub.

View the complete source on GitHub

Skills 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

  1. #949 on Oct 31
  2. #951 on Nov 1
  3. #960 on Nov 2
  4. #964 on Nov 3
  5. #967 from Nov 4 to Nov 5
  6. #971 since Nov 6
47 earlier periods
  1. #693 on Aug 1
  2. #646 on Aug 6
  3. #615 on Aug 9
  4. #648 on Aug 12
  5. #644 on Aug 13
  6. #623 on Aug 15
  7. #636 on Aug 16
  8. #662 on Aug 18
  9. #644 on Aug 19
  10. #646 on Aug 20
  11. #649 on Aug 21
  12. #619 on Aug 22
  13. #671 on Aug 25
  14. #664 on Aug 27
  15. #639 on Aug 30
  16. #670 on Aug 31
  17. #684 on Sep 1
  18. #678 on Sep 3
  19. #711 on Sep 8
  20. #699 on Sep 9
  21. #700 on Sep 10
  22. #684 on Sep 11
  23. #685 from Sep 12 to Sep 13
  24. #701 on Sep 15
  25. #715 on Sep 16
  26. #719 on Sep 17
  27. #704 on Sep 18
  28. #721 on Sep 23
  29. #694 on Sep 24
  30. #678 on Sep 25
  31. #676 on Sep 26
  32. #723 on Sep 28
  33. #736 on Sep 30
  34. #707 on Oct 2
  35. #687 on Oct 3
  36. #745 on Oct 7
  37. #786 on Oct 8
  38. #753 on Oct 9
  39. #761 on Oct 12
  40. #766 on Oct 13
  41. #756 on Oct 17
  42. #804 on Oct 20
  43. #811 on Oct 21
  44. #927 on Oct 25
  45. #940 on Oct 28
  46. #943 on Oct 29
  47. #946 on Oct 30

Before you install

Network or broad shell

Automated 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:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • ast-grep/skills/ast-grep/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
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

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeNativeManifest .claude-plugin/marketplace.json.claude/skills/<skill-name>/
CodexCompatibleStandard SKILL.md ast-grep/skills/ast-grep/SKILL.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md ast-grep/skills/ast-grep/SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md ast-grep/skills/ast-grep/SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotCompatibleStandard SKILL.md ast-grep/skills/ast-grep/SKILL.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard 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.

ast-grep/agent-skill: #971 on hotskills, 902 stars

[![ast-grep/agent-skill on hotskills](https://hotskills.dev/badge/ast-grep-agent-skill.svg)](https://hotskills.dev/skill/ast-grep-agent-skill/)