
File Search
A comprehensive wrapper around ripgrep, fd, ast-grep, and friends that gives Claude the right search tool for each job. Instead of falling back to grep or find, you get structural code search with ast-grep, PDF and archive search with ripgrep-all, and proper file finding with fd. The documentation is exceptionally detailed, with separate guides for each tool and clear decision trees for when to use what. The best practice guidance is sharp: start narrow, batch independent queries as parallel tool calls instead of chaining them with shell operators, and remember that ripgrep's type flags don't map one to one with fd's extensions. If you work in large codebases or need to search beyond plain text files, this is the search skill to install.
- skills.sh installs
- 544
- GitHub stars
- 45
- last updated
- Aug 21, 2026
Install
$ npx -y skills add netresearch/file-search-skill --skill file-search --agent claude-codeInstalls into .claude/skills of the current project.
Files
File Search Skill
Efficient CLI search tools for AI agents.
Tool Selection Guide
| Task | Use | Instead of |
|---|---|---|
| Search text in code files | rg (ripgrep) | grep, grep -r |
| Find files by name/path | fd | find, ls -R |
| Structural/syntax-aware code search | sg (ast-grep) | regex hacks |
| Apply rule packs (security/lint, taint) | semgrep | regex CI checks |
| Search PDFs, Office docs, archives | rga (ripgrep-all) | manual extraction |
| Count lines of code by language | tokei | cloc, wc -l |
| Code stats with complexity metrics | scc | cloc, tokei |
Decision flow: text → rg | structural → sg | rule packs →
semgrep | filenames → fd | PDFs/archives → rga | LOC →
tokei/scc
Quick Examples
Sponsors
Details
- Repository
- github.com/netresearch/file-search-skill
- First seen
- Jun 3, 2026