search-tools-mastery

Integrates rg, grepai, & ast-grep search tools with a decision tree for codebase analysis workflows.

Updated May 6, 2026
One-click install
npx skills add https://github.com/marcin-elj/kto-ma-racje-toolkit --skill search-tools-mastery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search-tools-mastery
Source: https://github.com/marcin-elj/kto-ma-racje-toolkit/tree/main/skills/search-tools-mastery
Command: npx skills add https://github.com/marcin-elj/kto-ma-racje-toolkit --skill search-tools-mastery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables users to efficiently search and analyze codebases by combining various specialized tools, significantly improving discovery and refactoring workflows.

Core Features & Use Cases

  • Tool Comparison and Integration: Provides a comprehensive matrix and side-by-side comparison of search tools like rg, grepai, Serena, and ast-grep.
  • Decision-Making Guidance: Offers a decision tree for selecting the appropriate tool based on search needs, optimizing search speed and accuracy.
  • Combined Workflows: Demonstrates how to leverage multiple tools together for tasks such as code exploration, large-scale refactoring, and security audits.
  • Real-World Scenarios: Guides on applying these tools effectively in practical situations like code understanding, dependency mapping, vulnerability detection, and migration projects.

Quick Start

Describe your code search scenario, select a suitable tool using the decision tree, and follow the suggested multi-tool workflow to efficiently locate and understand code segments.

Frequently Asked Questions about search-tools-mastery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to perform semantic code search for large-scale refactoring?

For large-scale refactoring, semantic code search is best executed by comparing specialized tools like rg, grepai, Serena, and ast-grep via a decision tree. This integration matches techniques to your specific task scope, optimizing search speed and accuracy across complex codebases.

How do I map dependencies and understand code structure using ast patterns?

Mapping dependencies and understanding code structure using ast patterns involves applying combined multi-tool workflows. Leveraging tools like ast-grep alongside semantic search engines efficiently locates structural code segments and visualizes relationships for migration projects.

How does ast-grep compare to grepai for vulnerability detection and security audits?

When comparing ast-grep to grepai for vulnerability detection, ast-grep uses abstract syntax tree patterns for structural matching, while grepai focuses on semantic search. Choosing between them depends on whether your security audit requires syntactic precision or broader contextual code understanding.

Can I use multiple code search tools together for code exploration and migration?

Yes, you can integrate multiple code search tools together for code exploration and migration. The framework provides combined workflows demonstrating how to leverage various tools in sequence to efficiently locate, understand, and refactor target code segments.

When should I not use standard tools like rg for codebase searches?

You should not rely solely on standard tools like rg for codebase searches when performing complex code understanding or dependency mapping. In these scenarios, semantic search or ast pattern matching tools provide deeper structural analysis than standard text matching.