Skip to content

AST-based code search and refactoring that matches syntax rather than raw text, with dry-run previews.

CCM score
46 of 100
skills.sh installs
524
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers structural search and replace across a codebase, matching function calls, imports, and class definitions while ignoring strings and comments
  • Supports --pattern, --replace, --language, --path, --glob, --context, and --dry-run for previewing changes before applying them
  • Uses metavariables such as $NAME for single nodes, $$$ for multiple nodes, and $_ as a wildcard
  • Designed for syntax-aware matching and renames, with warpgrep suited to fast plain-text search; requires an ast-grep server in mcp_config.json

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill ast-grep-find -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

uv run python -m runtime.harness scripts/ast_grep_find.py \
    --pattern "import asyncio" --language python

Search in specific directory

uv run python -m runtime.harness scripts/ast_grep_find.py \
    --pattern "async def \$FUNC(\$\$\$)" --language python --path "./src"

Refactor/replace pattern

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)

uv run python -m runtime.harness scripts/ast_grep_find.py \
    --pattern "print(\$X)" --replace "logger.info(\$X)" \
    --language python --dry-run

Parameters

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Code Review & Quality, CLI & Terminal
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108

Similar to Ast Grep Find

More Code Review & Quality