概要
The Code Search skill empowers Claude to perform precise codebase investigations and safe, large-scale refactors by leveraging the specific strengths of ast-grep and ripgrep. It provides a decision framework for choosing between syntax-aware AST matching—ideal for complex codemods and API migrations—and blazingly fast literal searches for general reconnaissance. By implementing these standardized patterns, developers can automate repetitive code transformations, enforce repository-wide policies, and navigate massive projects with surgical accuracy while avoiding the common pitfalls of regex-based search, such as false positives in comments or strings.