Agent skill · AI & Agents

ast-grep-find

AST-based code search and refactoring via ast-grep MCP

parcadeigithub.com/parcadeiGitHub ↗
claude-codecan modify filesMIT
Install
npx skills add parcadei/Continuous-Claude-v3 --skill ast-grep-find --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Allowed tools: BashRead
Path: .claude/skills/ast-grep-find/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 3,879
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# AST-Grep Find Structural code search that understands syntax. Find patterns like function calls, imports, class definitions - not just text. ## When to Use - Find code patterns (ignores strings/comments) - Search for function calls, class definitions, imports - Refactor code with AST precision - Rename variables/functions across codebase ## Usage ### Search for a pattern ```bash uv run python -m runtime.harness scripts/ast_grep_find.py \ --pattern "import asyncio" --language python ``` ### Search in specific directory ```bash uv run python -m runtime.harness scripts/ast_grep_find.py \ --pattern "async def \$FUNC(\$\$\$)" --language python --path "./src" ``` ### Refactor/replace pattern ```bash uv run python -m runtime.harness scripts/ast_grep_find.py \ --pattern "console.log(\$MSG)" --replace "logger.info(\$MSG)" \ --language javascript ``` ### Dry run (preview changes) ```bash uv run python -m runtime.harness scripts/ast_grep_find.py \ --pattern "print(\$X)" --replace "logger.info(\$X)" \ --language python --dry-run ``` ## Parameters | Parameter | Description | |-----------|-------------| | `--pattern` | AST pattern to search (required) | | `--language` | Language: `python`, `ja

What's inside
Steps it walks through
  1. When to Use
  2. Usage
  3. Search for a pattern
  4. Search in specific directory
  5. Refactor/replace pattern
  6. Dry run (preview changes)
  7. Parameters
  8. Pattern Syntax
  9. Examples
  10. vs morph/warpgrep
  11. MCP Server Required
Commands it runs
uv run python -m runtime.harness scripts/ast_grep_find.py \
Find all function definitions
Find console.log calls
Replace print with logging
More from Continuous-Claude-v3
All skills →
About this skill
What does the ast-grep-find skill do?

AST-based code search and refactoring via ast-grep MCP

How do I install it?

Run `npx skills add parcadei/Continuous-Claude-v3 --skill ast-grep-find --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From parcadei/Continuous-Claude-v3, a repository with 3,879 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going