file-search▌
0xdarkmatter/claude-mods · updated Apr 8, 2026
Modern file and content search.
File Search
Modern file and content search.
fd - Find Files
# Find by name
fd config # Files containing "config"
fd -e py # Python files
# By type
fd -t f config # Files only
fd -t d src # Directories only
# Exclude
fd -E node_modules # Exclude directory
fd -E "*.min.js" # Exclude pattern
# Execute command
fd -e py -x wc -l # Line count per file
rg - Search Content
# Simple search
rg "TODO" # Find TODO
rg -i "error" # Case-insensitive
# By file type
rg -t py "import" # Python files only
rg -t js -t ts "async" # JS and TS
# Context
rg -C 3 "function" # 3 lines before/after
# Output modes
rg -l "TODO" # File names only
rg -c "TODO" # Count per file
fzf - Interactive Selection
# Find and select
fd | fzf
# With preview
fd | fzf --preview 'bat --color=always {}'
# Multi-select
fd -e ts | fzf -m | xargs code
Combined Patterns
# Find files, search content
fd -e py -x rg "async def" {}
# Search, select, open
rg -l "pattern" | fzf --preview 'rg -C 3 "pattern" {}' | xargs vim
Quick Reference
| Task | Command |
|---|---|
| Find TS files | fd -e ts |
| Find in src | fd -e ts src/ |
| Search pattern | rg "pattern" |
| Search in type | rg -t py "import" |
| Files with match | rg -l "pattern" |
| Count matches | rg -c "pattern" |
| Interactive | fd | fzf |
| With preview | fd | fzf --preview 'bat {}' |
Performance Tips
| Tip | Why |
|---|---|
Both respect .gitignore |
Auto-skip node_modules, dist |
Use -t over -g |
Type flags are faster |
| Narrow the path | rg pattern src/ faster |
Use -F for literals |
Avoids regex overhead |
Additional Resources
For detailed patterns, load:
./references/advanced-workflows.md- Git integration, shell functions, power workflows
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★75 reviews- ★★★★★Isabella Sethi· Dec 24, 2024
We added file-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Chen Huang· Dec 24, 2024
I recommend file-search for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Isabella Taylor· Dec 20, 2024
Registry listing for file-search matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Xiao Jain· Dec 20, 2024
file-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Naina Abbas· Dec 16, 2024
Keeps context tight: file-search is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Isabella Anderson· Dec 12, 2024
file-search has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Pratham Ware· Dec 8, 2024
Useful defaults in file-search — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Chen Kim· Dec 4, 2024
file-search reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Sakshi Patil· Nov 27, 2024
file-search has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Arjun Kapoor· Nov 23, 2024
file-search reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 75