ast-grep-search

Community

Structural code search & rewrite

AuthorVen0m0
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the limitations of plain text search (like regex) by enabling precise code pattern matching and safe, automated refactoring based on Abstract Syntax Tree (AST) structures.

Core Features & Use Cases

  • AST-based Search: Find code patterns that respect language syntax, not just text.
  • Safe Rewrites: Preview and apply code transformations with confidence, using capture variables.
  • Use Case: Refactor all instances of a specific API call across a TypeScript codebase, ensuring that only syntactically correct changes are made.

Quick Start

Use ast-grep to search for all console.log statements in the src/ directory and interactively remove them.

Dependency Matrix

Required Modules

None required

Components

referencesrules

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ast-grep-search
Download link: https://github.com/Ven0m0/claude-config/archive/main.zip#ast-grep-search

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.