search

Locate files by name and search code patterns using fd and rg.

64|5|Updated Jan 12, 2023
One-click install
npx skills add https://github.com/kaushikgopal/dotfiles --skill search-kaushikgopal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search
Source: https://github.com/kaushikgopal/dotfiles/tree/main/.ai/skills/search
Command: npx skills add https://github.com/kaushikgopal/dotfiles --skill search-kaushikgopal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you quickly locate files and search code patterns across your projects using the fd and rg CLI tools, saving you time and reducing context switching.

Core Features & Use Cases

  • Fast file search: Locate files by name or glob patterns across the repository.
  • Content search: Scan code and text content with ripgrep for precise matches.
  • Use Case: When you need to find where a function or a string appears across a large codebase, run this Skill to return matching files and lines.

Quick Start

Use the skill to find all occurrences of the term "initialize" from the project root.

Frequently Asked Questions about search

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

FAQPage Schema
How do I search for files by name across a large codebase?

File search using fd locates files by name or glob patterns across your repository quickly. fd is a fast, user-friendly alternative to find that supports parallel execution and integrates seamlessly with ripgrep for combined file and content discovery.

What's the best way to find code patterns across multiple files?

Code pattern search with ripgrep (rg) scans content across large codebases to locate specific strings, functions, or regex matches with surrounding context. rg is optimized for speed and returns matching paths and line numbers instantly.

Can I search case-insensitively across my project?

Both fd and rg support case-insensitive search modes. Use the appropriate flags with each tool to ignore case distinctions when locating files or matching code patterns, reducing the need for multiple search attempts.

How do I find where a specific function is called throughout my codebase?

Use ripgrep to search for function names or identifiers across all files in your project. rg returns every matching occurrence with file paths and line numbers, helping you trace function usage without manual file inspection.

Does this work with repositories and large directories?

Yes, fd and rg are designed for large codebases and repositories. Both tools use parallel processing and indexing optimizations to return results quickly even across thousands of files, making them suitable for enterprise-scale projects.