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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/xejrax/file-searchWhat 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:
- Project Navigation: Rapidly finding configuration files or source code files by name when working in complex repository structures.
- Code Auditing: Quickly searching through an entire project for "TODO" items, deprecated function calls, or hardcoded sensitive information.
- Log Analysis: Filtering through server logs or system output files using regex patterns to pinpoint specific error codes or timestamped events.
- Refactoring Support: Identifying every occurrence of a variable or method name across a codebase to ensure comprehensive updates.
Example Prompts
- "Find all Rust files containing the term 'database_connection' in my project folder at /home/user/workspace/app."
- "Locate all files named 'README.md' across my documentation directory and list their paths."
- "Search for the string 'API_KEY' in the src directory and provide 3 lines of context for each match."
Tips & Limitations
- Performance: Because
rgandfdare 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:
fdandrgautomatically respect your.gitignorefiles by default, which is usually helpful. If you need to search ignored files, use the appropriate flags (like--hiddenor--no-ignore) within the tool arguments.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-xejrax-file-search": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
system-info
Quick system diagnostics: CPU, memory, disk, uptime
calendar
Manage Google Calendar events using `gcalcli`. Create, list, and delete calendar events from the CLI.
log-tail
Stream recent logs from systemd journal
wifi-qr
Generate QR code for Wi-Fi credentials
ping-beads
Verify the bead daemon is alive and responsive