search

Search code, files, and text using AST grep, ripgrep, and fd.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/newkub/skills --skill search-newkub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search
Source: https://github.com/newkub/skills/tree/main/tools-search
Command: npx skills add https://github.com/newkub/skills --skill search-newkub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of locating specific code snippets, files, or text patterns within a project, significantly improving developer productivity.

Core Features & Use Cases

  • AST-based Code Search: Find code based on its structure, not just text.
  • Fast Text Search: Quickly search through large numbers of files for specific strings.
  • Efficient File Finding: Locate files and directories more rapidly than traditional methods.
  • Use Case: Quickly find all instances of a specific function call across your entire codebase, even if the formatting varies slightly.

Quick Start

Use the search skill to find all files containing the text 'database connection'.

Frequently Asked Questions about search

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

FAQPage Schema
How do I search for code based on its structure instead of exact text?

You can perform structural code search using AST grep to find code snippets based on syntax structure rather than exact text, allowing you to locate function calls or definitions even when formatting varies.

What is the best way to find specific text patterns across a large codebase?

Fast text pattern matching is handled by ripgrep, which quickly searches through large numbers of files for specific strings to streamline locating text within your project.

How do I rapidly locate files and directories within a project repository?

You can rapidly discover files and directories using fd, which provides efficient file finding capabilities to locate project resources faster than traditional methods.

Can I use this to find all instances of a function call across my project?

Yes, AST-based code search enables you to find all instances of a specific function call across your entire codebase, even if the formatting varies slightly between files.

Does code search work without installing external dependencies?

The code search skill operates with no external dependencies listed, providing built-in support for AST grep, ripgrep, and fd to navigate project repositories.

Why use AST grep for code navigation instead of standard text search?

AST grep enables precise code navigation by querying the abstract syntax tree, solving the limitation of text search by matching code structure and ignoring irrelevant formatting differences.