CLI Tool Preferences (dev-shell-tools)
ALWAYS prefer modern CLI tools over traditional alternatives. These are pre-approved in permissions.
File Search & Navigation
| Instead of |
Use |
Why |
find |
fd |
5x faster, simpler syntax, respects .gitignore |
grep |
rg (ripgrep) |
10x faster, respects .gitignore, better defaults |
ls |
eza |
Git status, icons, tree view built-in |
cat |
bat |
Syntax highlighting, line numbers, git integration |
cd + manual |
z/zoxide |
Jump to frecent directories |
tree |
broot or eza --tree |
Interactive, filterable |
Examples
fd "\.ts$"
fd -e py
rg "TODO"
rg -t ts "function"
eza -la --git
eza --tree --level=2
bat src/index.ts
Data Processing
| Instead of |
Use |
Why |
sed |
sd |
Simpler syntax, no escaping headaches |
| Manual JSON |
jq |
Structured queries, transformations |
| Manual YAML |
yq |
Same as jq but for YAML/TOML |
sd 'oldText' 'newText' file.txt
jq '.dependencies | keys' package.json
yq '.services | keys' docker-compose.yml
Document Conversion
| Instead of |
Use |
Why |
| PyMuPDF/pdfplumber |
markitdown |
One tool for PDF, Word, Excel, PowerPoint |
| python-docx |
markitdown |
Consistent markdown output |
| Manual OCR |
markitdown |
Built-in image text extraction |
markitdown document.pdf
markitdown report.docx
markitdown data.xlsx
markitdown slides.pptx
markitdown screenshot.png
Git Operations
| Instead of |
Use |
Why |
git diff |
delta or difft |
Syntax highlighting, side-by-side |
git log/status/add |
lazygit |
Full TUI, faster workflow |
| GitHub web |
gh |
CLI for PRs, issues, actions |
git diff | delta
difft file1.ts file2.ts
gh pr create
gh pr list
Code Analysis
| Task |
Tool |
| Line counts |
tokei |
| AST search |
ast-grep / sg |
| Benchmarks |
hyperfine |
tokei --compact
sg -p 'console.log($$$)' -l js
hyperfine 'fd . -e ts' 'find . -name "*.ts"'
System Monitoring
| Instead of |
Use |
Why |
du -h |
dust |
Visual tree sorted by size |
top/htop |
btm (bottom) |
Graphs, cleaner UI (optional) |
dust
dust -d 2
Note: ps is fine for shell process checks. Use procs only when you need full system process monitoring with CPU/memory stats.
Interactive Selection
| Task |
Tool |
| Fuzzy file find |
fzf + fd |
| Interactive grep |
fzf + rg |
| History search |
Ctrl+R (fzf) |
| Git branch select |
git branch | fzf |
fd --type f | fzf | xargs bat
rg --line-number . | fzf --preview 'bat --color=always {1} --highlight-line {2}'
git checkout $(git branch | fzf)
procs | fzf | awk '{print $1}' | xargs kill
Documentation
| Instead of |
Use |
Why |
man <cmd> |
tldr <cmd> |
98% smaller, practical examples only |
tldr git-rebase
tldr tar
Python
| Instead of |
Use |
Why |
pip |
uv |
10-100x faster installs |
python -m venv |
uv venv |
Faster venv creation |
uv venv .venv
uv pip install -r requirements.txt
Task Running
Prefer just over Makefiles:
just
just test
Web Fetching (URL Retrieval)
When fetching web content, use this hierarchy based on benchmarked performance:
| Priority |
Tool |
Speed |
Use Case |
| 1 |
WebFetch |
Instant |
First attempt - built-in |
| 2 |
r.jina.ai/URL |
0.5s avg |
Default fallback - 5-10x faster than alternatives |
| 3 |
firecrawl <url> |
4-5s avg |
Anti-bot bypass, Cloudflare, heavy JS |
| 4 |
markitdown <url> |
2-3s avg |
Simple static pages (or local files) |
curl https://r.jina.ai/https://example.com
curl https://s.jina.ai/your%20search%20query
firecrawl https://blocked-site.com
firecrawl https://example.com --json
markitdown https://example.com
markitdown document.pdf
Decision Tree:
- Try
WebFetch first (instant, free)
- If blocked → Try Jina:
r.jina.ai/URL (fastest, 10/10 success rate)
- If anti-bot/Cloudflare → Try
firecrawl <url> (designed for bypass)
- For local files (PDF, Word, Excel) → Use
markitdown
Reference
Tools from: https://github.com/0xDarkMatter/claude-mods/tree/main/tools
Install all tools:
.\tools\install-windows.ps1
./tools/install-unix.sh