ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified file management Safety 4/5

file-search

Fast file-name and content search using `fd` and `rg` (ripgrep).

Why use this skill?

Master file discovery with OpenClaw file-search. Quickly find files by name and search contents across your projects using high-performance tools fd and ripgrep.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/xejrax/file-search
Or

What This Skill Does

The file-search skill provides a high-performance interface for searching through files and their contents within the OpenClaw AI agent environment. By leveraging industry-standard tools like fd (a fast alternative to find) and rg (ripgrep, a line-oriented search tool), this skill enables users to locate files by name or analyze large codebases by scanning file contents for specific patterns, keywords, or regex matches. It is designed to minimize latency, making it ideal for developers or researchers working with massive file directories.

Installation

To install this skill, use the following command in your terminal: clawhub install openclaw/skills/skills/xejrax/file-search

Ensure that the underlying dependencies are installed on your system. On Fedora-based systems, you can run: sudo dnf install fd-find ripgrep

Use Cases

This skill is highly versatile and serves several primary use cases:

  1. Project Navigation: Rapidly finding configuration files or source code files by name when working in complex repository structures.
  2. Code Auditing: Quickly searching through an entire project for "TODO" items, deprecated function calls, or hardcoded sensitive information.
  3. Log Analysis: Filtering through server logs or system output files using regex patterns to pinpoint specific error codes or timestamped events.
  4. Refactoring Support: Identifying every occurrence of a variable or method name across a codebase to ensure comprehensive updates.

Example Prompts

  1. "Find all Rust files containing the term 'database_connection' in my project folder at /home/user/workspace/app."
  2. "Locate all files named 'README.md' across my documentation directory and list their paths."
  3. "Search for the string 'API_KEY' in the src directory and provide 3 lines of context for each match."

Tips & Limitations

  • Performance: Because rg and fd are highly optimized, they are extremely fast, but searching the entire root directory (/) can still consume system resources; try to scope your search paths.
  • Regex Power: Ripgrep supports advanced PCRE2 features; use them to create complex, multi-pattern queries for sophisticated content discovery.
  • Ignoring Files: fd and rg automatically respect your .gitignore files by default, which is usually helpful. If you need to search ignored files, use the appropriate flags (like --hidden or --no-ignore) within the tool arguments.

Metadata

Author@xejrax
Stars919
Views2
Updated2026-02-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-xejrax-file-search": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#search#file-system#developer-tools#productivity#grep
Safety Score: 4/5

Flags: file-read