New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Fast file and content search with fd, ripgrep, and fzf, honoring .gitignore by default.

skills.sh installs
245
GitHub stars
83
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers finding files by name, type, and extension with fd, and searching file contents with rg
  • Includes fd exclusion and exec flags, rg type filters, context lines, and fzf interactive selection with previews
  • Provides a quick reference table and performance tips such as narrowing paths and using -F for literal patterns
  • Designed for developers who need to search codebases from the terminal and combine fd, rg, and fzf in pipelines

Install

$ npx -y skills add 0xdarkmatter/claude-mods --skill file-search -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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" {}

Details

Repository
github.com/0xdarkmatter/claude-mods
Category
CLI & Terminal
First seen
Jun 3, 2026

Similar to File Search

More CLI & Terminal