
File Search
Unified search toolkit that routes text, structural, filename, document, and code-metric queries to the right CLI tool.
- CCM score
- 64 of 100
- skills.sh installs
- 548
- GitHub stars
- 48
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers search across local code using ripgrep, ast-grep, fd, ripgrep-all, tokei, scc, and semgrep
- Provides a decision flow mapping each task type to a tool, plus quick examples and best practices
- Guides batching independent queries and excluding noise such as
vendor/andnode_modules - Includes a PreToolUse hook that nudges agents toward these tools and away from plain grep and find
Install
$ npx -y skills add netresearch/file-search-skill --skill file-search -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/netresearch/file-search-skill
- Categories
- CLI & Terminal, Code Review & Quality
- First seen
- Jun 3, 2026
Similar to File Search
More CLI & Terminal
Pare SearchMCP serverdave-london141 starsStructured code search results from ripgrep and fd as typed JSON.
Code IndexMCP serverjohnhuang3161K starsIndex, search, and analyze code repositories through about 13 tools for an AI assistant.
search-toolsSkillparcadei/continuous-claude-v3491 installsDecision tree that routes code searches to LEANN, AST-grep, Morph, or Grep by query type.
search-routerSkillparcadei/continuous-claude-v3487 installsRoutes each search query to the most token-efficient tool: TLDR, AST-grep, semantic search, Grep, or Read.
ripgrepSkillratacat/claude-skills421 installsFast regex text search across files, directories, and large documents that replaces grep and find.
cccSkillcocoindex-io/cocoindex-code6.3K installsSemantic code search and index management for the current project via the ccc CLI.