Loading...
Loading...
Use when searching codebases (text, structural/AST, files by name, PDFs/archives, code stats) or building context before a task.
npx skill4agent add netresearch/file-search-skill file-search| Task | Use | Instead of |
|---|---|---|
| Search text in code files | | |
| Find files by name/path | | |
| Structural/syntax-aware code search | | regex hacks |
| Search PDFs, Office docs, archives | | manual extraction |
| Count lines of code by language | | |
| Code stats with complexity metrics | | |
rgsgfdrgatokeisccrg 'def \w+\(' -t py src/ # rg: text search in Python files
rg -c 'TODO' -t js | wc -l # rg: count first, then drill down
sg --pattern 'console.log($$$)' --rewrite 'logger.info($$$)' --lang js # sg: structural replace
fd -g '*.test.ts' --changed-within 1d # fd: -g for compound suffixes (NOT -e)
fd -g '*_test.go' -X rg 'func Test' # fd+rg: find files, verify contents
rga 'quarterly revenue' docs/ # rga: search inside PDFs/archives
tokei --sort code # tokei: language stats
scc --wide # scc: complexity + COCOMO-t--lang-erg -c-g '!vendor/'fd -E node_modules--jsonrg -t ts.tsxfd -e ts-t tsxgh| Topic | File |
|---|---|
| rg flags, patterns, recipes | references/ripgrep-patterns.md |
| ast-grep patterns by language | references/ast-grep-patterns.md |
| fd flags, usage, fd+rg combos | references/fd-guide.md |
| rga formats, usage, caching | references/rga-guide.md |
| tokei and scc usage | references/code-metrics.md |
| Search targeting strategies | references/search-strategies.md |
| Tool comparison and decision guide | references/tool-comparison.md |
| Remote context handoff guide | references/remote-handoff.md |