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
View on GitHub

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/ and node_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 -y

Installs 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

TaskUseInstead of
Search text in code filesrg (ripgrep)grep, grep -r
Find files by name/pathfdfind, ls -R
Structural/syntax-aware code searchsg (ast-grep)regex hacks
Apply rule packs (security/lint, taint)semgrepregex CI checks
Search PDFs, Office docs, archivesrga (ripgrep-all)manual extraction
Count lines of code by languagetokeicloc, wc -l
Code stats with complexity metricsscccloc, 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