
Ast Grep Find
This is ast-grep wrapped as a Claude skill, giving you syntax-aware code search instead of dumb text matching. You can find function calls, class definitions, and imports while ignoring strings and comments, then optionally refactor them with replacements. The pattern syntax is clean: $NAME for single nodes, $$$ for multiple, and it supports dry runs before you commit. Works across Python, JavaScript, TypeScript, Go, and other languages. The main win here is precision. When you need to rename a function or swap console.log for proper logging across a codebase, this beats regex every time because it actually understands code structure.
- skills.sh installs
- 523
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add parcadei/continuous-claude-v3 --skill ast-grep-find --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/parcadei/continuous-claude-v3
- Categories
- Code Review & Quality, AI & Agent Building
- First seen
- Jun 3, 2026
More from parcadei/continuous-claude-v3
All 108- Git Commits523
- Remember523
- Repo Research Analyst522
- Review521
- Planning Agent520
- Repoprompt517
- Agent Context Isolation514
- Parallel Agents514
- Create Handoff512
- Continuity Ledger511
- Debug509
- Hooks509
- Prove508
- Compound Learnings507
- Hook Developer506
- Tldr Code506
- Commit503
- Research External503
- Test503
- Background Agent Pings502
- Debug Hooks501
- Describe Pr501
- Braintrust Tracing498
- Opc Architecture497