一键导入
file-search
Fast file-name and content search using fd and ripgrep (rg). Provides efficient file system search capabilities with modern CLI tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fast file-name and content search using fd and ripgrep (rg). Provides efficient file system search capabilities with modern CLI tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | file-search |
| description | Fast file-name and content search using fd and ripgrep (rg). Provides efficient file system search capabilities with modern CLI tools. |
| tags | ["search","files","fd","ripgrep","rg","cli"] |
| version | 1.0.0 |
| author | xejrax |
| source | https://clawhub.ai/xejrax/file-search |
| requirements | ["fd-find","ripgrep"] |
Fast file-name and content search using fd and ripgrep (rg).
This skill provides efficient file system search capabilities using two modern CLI tools:
| Tool | Purpose |
|---|---|
fd | Fast file-name search (alternative to find) |
rg | Fast content search (alternative to grep) |
sudo dnf install fd-find ripgrep
sudo apt install fd-find ripgrep
brew install fd ripgrep
sudo pacman -S fd ripgrep
# Search for files by name pattern
fd "pattern"
# Search in specific directory
fd "pattern" /path/to/search
# Case-insensitive search
fd -i "pattern"
# Search for exact file name
fd -x "exact_name"
# Files only
fd -t f "pattern"
# Directories only
fd -t d "pattern"
# Executable files
fd -t x "pattern"
# Symlinks
fd -t l "pattern"
# Search for specific extension
fd -e py "pattern"
# Multiple extensions
fd -e py -e js "pattern"
# All Python files
fd -t f -e py ""
# Include hidden files
fd -H "pattern"
# Include ignored files (gitignore, etc.)
fd -I "pattern"
# Include both hidden and ignored
fd -HI "pattern"
# Files larger than 100MB
fd -S +100M
# Files smaller than 1KB
fd -S -1k
# Modified in last 7 days
fd --changed-within 7d
# Modified more than 30 days ago
fd --changed-before 30d
# Search for pattern in files
rg "pattern"
# Search in specific directory
rg "pattern" /path/to/search
# Case-insensitive search
rg -i "pattern"
# Search for exact word
rg -w "pattern"
# Search only Python files
rg -t py "pattern"
# Search only JavaScript files
rg -t js "pattern"
# Search all except Python
rg -T py "pattern"
# List available types
rg --type-list
# Show only file names
rg -l "pattern"
# Show only count of matches
rg -c "pattern"
# Show line numbers (default)
rg -n "pattern"
# No line numbers
rg -N "pattern"
# Show context (2 lines before and after)
rg -C 2 "pattern"
# Show only matching part
rg -o "pattern"
# Include hidden files
rg --hidden "pattern"
# Include ignored files
rg --no-ignore "pattern"
# Include both
rg --hidden --no-ignore "pattern"
# Use PCRE2 regex
rg -P "pattern"
# Fixed string (no regex)
rg -F "literal.string"
# Multi-line search
rg -U "line1.*\n.*line2"
fd -t f -e py ""
rg -i "TODO|FIXME|XXX" -t py
fd -S +100M -t f
fd --changed-within 1d
rg "def function_name" -t py
fd -t d -e ""
rg "old_pattern" -r "new_pattern"
--max-depth to limit search scope| Feature | fd vs find | rg vs grep |
|---|---|---|
| Speed | fd is faster (parallel) | rg is faster (parallel) |
| Defaults | fd ignores hidden/gitignore by default | rg ignores hidden/gitignore by default |
| Output | fd has colored output | rg has colored output |
| Regex | fd uses regex by default | rg uses regex by default |
| Typing | fd is shorter to type | rg is shorter to type |
Main orchestration workflow for systematic literature research - search, evaluate, traverse, synthesize via the rp_* tools pipeline (Scopus + OpenAlex)
Collaboratively build and refine paper screening rubrics through brainstorming, test-driven development, and iterative feedback
Safely remove intermediate files from completed research sessions while preserving important data
Perform advanced search on CNKI with field filters like author, title, journal, date range, source category (SCI/EI/CSSCI/北大核心). Use when user needs precise filtered search beyond simple keywords.
Download a paper PDF/CAJ from CNKI. Requires user to be logged in. Use when user wants to download a specific paper.
Export paper from CNKI and push to Zotero, or save as RIS file. Use when user wants to save a paper to Zotero or export citation data.