←Leaderboard/Code Quality/agent-skill
Last commit on September 9, 2026·Created on November 16, 2025

ast-grep/agent-skill

“Structural code search and analysis using Abstract Syntax Tree patterns”
Combined rank
#412
across all skills
In Code Quality
#22
category rank
Stars
893
+0.3% in last 7d
Forks
36
0.0% in last 7d
Watchers
8
0.0% in last 7d
Traction scoreGitHub stars can be faked, so popularity alone can be misleading. Traction Score looks for broader signs of recent attention, adoption, and active maintenance.
TL;DR

This skill provides guidance for writing ast-grep rules to perform complex code queries that exceed the capabilities of simple text search. It helps developers and platform teams locate specific language constructs and enforce coding standards by identifying non-compliant structures across a codebase.

By leveraging AST analysis, the tool allows for precise structural mapping of files and members, making it easier to analyze architectural imports and exports during codebase exploration or modification.

WHO IT'S FOR
Platform / DevEx teams
creating structural code search rules for codebase standards
Backend / infrastructure engineers
mapping codebase imports and exports for architectural analysis
Technical leads / architects
locating specific language constructs for refactoring planning
QA / test automation engineers
searching for code patterns to identify missing test
Repository contents

2 skill files

Compatible AgentsThe repository documents support for these agents. The skills may also work with other agents that can load SKILL.md files, but they may need some setup or small changes.

Use this skill collection

Follow the documented setup, then try a first task.

Setup

Install via skills.sh

Installs: Install the ast-grep/agent-skill repository bundle through skills.sh. The supplied evidence does not establish which exact skill paths that installer selects.

Before you start
  • The ast-grep CLI must already be installed on the system.
  1. In a terminal, verify that the required ast-grep CLI is installed.

    ast-grep --version
  2. In a terminal, install the repository bundle through skills.sh.

    npx skills add ast-grep/agent-skill
README.md ↗ · Checked Oct 18, 2026

Give it something to do.

Suggested first task

Find async functions that use await

Uses ast-grep

  • A local project or repository to search
  • The programming language if it cannot be inferred from the project

Make sure ast-grep is installed in your agent before trying this task.

Use the ast-grep skill to find all async functions in this project that use await. Return the matching file paths and line numbers.
.claude-plugin/marketplace.json ↗ · Checked Oct 18, 2026ast-grep/skills/ast-grep/SKILL.md ↗ · Checked Oct 18, 2026README.md ↗ · Checked Oct 18, 2026
Suggested first task

Outline a source file before editing

Uses ast-grep-outline

  • Replace `<file>` with the path to a source file

Make sure ast-grep-outline is installed in your agent before trying this task.

Use the ast-grep-outline skill to inspect `<file>` before editing. Run `ast-grep outline <file>` and summarize its top-level declarations, direct members, and line numbers.
ast-grep/skills/outline/SKILL.md ↗ · Checked Oct 18, 2026.claude-plugin/marketplace.json ↗ · Checked Oct 18, 2026