mcpbeat

File Search

aiskillstore/file-search

Modern file and content search using fd, ripgrep (rg), and fzf. Triggers on: fd, ripgrep, rg, find files, search code, fzf, fuzzy find, search codebase.

15k tokens
context cost
the whole folder, loaded on every use
5
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
404
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/aiskillstore/marketplace --skill file-search

What comes with it

57 837 bytes besides the instruction
assets/.gitkeep
references/advanced-workflows.md
scripts/.gitkeep
skill-report.json

The instruction itself

8 sections, as written by the author

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

How to use it

Copy the folder

Take aiskillstore/file-search from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference brew. Without those the skill loads but fails at the first command.