{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/4"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"},{"label":"Security","url":"https://skillfed.io/packages/category/security"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"ast-grep-cli is a command-line tool for searching, linting, and rewriting code using abstract syntax tree patterns instead of text matching.","skillfed_tags":["codemod","ast-based-search","refactoring"],"use_cases":["Migrate code to use null coalescing operators or other modern syntax patterns across a large TypeScript codebase.","Enforce team code standards by writing AST-based linting rules in YAML without writing custom ESLint plugins.","Perform large-scale library API migrations by defining structural patterns that match the old API and rewrite them to the new one.","Detect security anti-patterns or code smells by searching for specific AST structures across multiple files and languages.","Refactor code idiomatically (e.g., replace callback patterns with async/await) by matching syntactic structure rather than text."],"what_it_does":"ast-grep-cli is a structural code search and rewrite tool built on tree-sitter parsing. Instead of matching text patterns like grep, it matches abstract syntax tree nodes, letting you write patterns as ordinary code with wildcards (like `$MATCH`) to find and replace code with identical syntactical structure across a codebase.\n\nThe tool is written in Rust for performance and supports multiple languages. It's designed for large-scale code manipulation tasks: library authors can use it to help users adopt breaking changes, teams can enforce code best practices, and security researchers can write detection rules. It can be driven from the command line with pattern and rewrite flags, or configured via YAML for custom linting rules.","worth_installing":"Yes, if you need to search or refactor code at scale using syntax-aware patterns. The tool is actively maintained, has no known vulnerabilities, and solves a real problem that text-based grep cannot. Medium install friction (compiled binary) is typical for performance-critical tools. Verify Python version support before committing to a project dependency."},"id":"ast-grep-cli","links":{"html":"https://skillfed.io/packages/ast-grep-cli","md":"https://skillfed.io/packages/ast-grep-cli.md","pypi":"https://pypi.org/project/ast-grep-cli/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-07","license_spdx":null,"license_treatment":"permissive","name":"ast-grep-cli","python_support":"unspecified","summary":"Structural Search and Rewrite code at large scale using precise AST pattern."},"popularity":{"monthly_downloads":2791546,"position":2887,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.45.1"}
