Ast Grep Find
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
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-runfor previewing changes before applying them - Uses metavariables such as
$NAMEfor single nodes,$$$for multiple nodes, and$_as a wildcard - Designed for syntax-aware matching and renames, with
warpgrepsuited to fast plain-text search; requires anast-grepserver in mcp_config.json
Install
$ npx -y skills add parcadei/continuous-claude-v3 --skill ast-grep-find -yInstalls 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- Remember524
- Repo Research Analyst524
- Review523
- Planning Agent522
- Repoprompt518
- Agent Context Isolation516
- Parallel Agents516
- Continuity Ledger513
- Create Handoff513
- Compound Learnings511
- Debug511
- Hooks510
- Prove509
- Tldr Code509
- Hook Developer507
- Commit505
- Research External505
- Test505
- Background Agent Pings504
- Debug Hooks504
- Describe Pr504
- Shapely Compute501
- Braintrust Tracing499
- Workflow Router499
Similar to Ast Grep Find
More Code Review & Qualitymorph-searchSkillparcadei/continuous-claude-v3493 installsFast text and regex codebase search, plus file edits, via the WarpGrep backend.
ASTMCP serverast-grep501 starsStructural code search and rule testing over local codebases using ast-grep patterns and YAML rules.
ast-grepSkillast-grep/agent-skill20.3K installsStructural code search rules for ast-grep that match AST patterns instead of plain text.
CocoIndex CodeMCP servercocoindex-io3K starsSemantic code search over a local repository, using AST-based chunks and incremental re-indexing.
code-refactorSkillmhattingpete/claude-skills-marketplace306 installsBulk, consistent code refactoring across files that renames identifiers, replaces patterns, and updates API calls safely.
mgrep-code-searchSkillintellectronica/agent-skills638 installsSemantic natural-language code search via mgrep, complementing grep and ripgrep in larger, unfamiliar codebases.