code-search

Search codebases with regex and generate directory trees.

84|3|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/YPares/rigup.nix --skill code-search-ypares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-search
Source: https://github.com/YPares/rigup.nix/tree/main/riglets/code-search
Command: npx skills add https://github.com/YPares/rigup.nix --skill code-search-ypares

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes tools (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps developers and engineers efficiently search through large codebases and browse directory structures, saving time locating specific files or code segments.

Core Features & Use Cases

  • Code Search: Perform fast, regex-based searches across files respecting ignore rules.
  • File Browsing: Generate directory trees to visualize project layouts.
  • Use Case: A software engineer needs to find all instances of a function call across a repository or view a project's folder hierarchy for refactoring purposes.

Quick Start

Use the code search skill to find all references to 'initialize' within the project directory.

Frequently Asked Questions about code-search

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

FAQPage Schema
How do I search for a specific function call across a large project directory?

To search a project directory for function calls, use regex-based code search to quickly locate specific code snippets across files. This approach respects ignore rules to filter out unnecessary results and speed up navigation.

What is the best way to visualize a project's folder hierarchy for refactoring?

The best way to visualize a project's folder hierarchy for refactoring is to generate a directory tree. This provides a clear structural layout of your project, improving your understanding of the codebase before making changes.

Do I need ripgrep installed to perform regex search on my codebase?

Yes, you need tools like ripgrep, fd, bat, and tree installed in your environment. These dependencies enable efficient code navigation, regex search, file type filtering, and directory visualization for large projects.

Can I filter code search results by specific file types?

Yes, you can filter code search results by specific file types. File type filtering is supported alongside regex search and directory tree browsing to help you navigate large codebases and improve productivity.

Why does my directory tree show ignored files when browsing project structures?

When browsing project structures, your directory tree might show ignored files if the tool does not respect ignore rules. Ensure your code search and navigation tools are configured to respect gitignore rules for accurate results.