# When you need to call tools from the shell, **use this rubric**:
- Find Files: `fd`
- Find Text: `rg` (ripgrep)
- Find Code Structure (TS/TSX): `ast-grep`
- **Default to TypeScript:**
- `.ts` → `ast-grep --lang ts -p '<pattern>'`
- `.tsx` (React) → `ast-grep --lang tsx -p '<pattern>'`
- For other languages, set `--lang` appropriately (e.g., `--lang swift`).
- Select among matches: pipe to `fzf`
- JSON: `jq`
- YAML/XML: `yq`
If ast-grep is available, avoid tools `rg` or `grep` unless a plain‑text search is explicitly requested.