- Home
- Skills
- Brettatoms
- Agent Skills
- File Nav
file-nav_skill
- JavaScript
0
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill brettatoms/agent-skills --skill file-nav- SKILL.md5.5 KB
Overview
This skill helps you navigate and find files quickly using fd, a fast and user-friendly alternative to find. It provides practical commands and options to list directory contents, filter by type or extension, control search depth, and execute actions on matching files. Use it to explore project structure, locate configuration or test files, and perform batch operations on results.
How this skill works
The skill builds on fd’s regex-first search model and exposes common flags for targeted file discovery: type filters (-t), extension filters (-e), depth control (--max-depth/--min-depth), and inclusion/exclusion of hidden or gitignored files (-H, -I, -u, -E). It also shows output modes (null-separated, long format), ways to run commands on matches (-x), and patterns for glob vs regex searches (-g). Recommendations focus on combining fd with other CLI tools like rg, xargs, wc, and shell commands.
When to use it
- Finding files or directories by name or pattern across a project
- Listing directory contents with depth control, like a recursive ls
- Exploring a project’s top-level or nested structure
- Filtering files by extension, type, size, or modification time
- Running commands on batches of matching files (delete, chmod, count)
Best practices
- Specify a starting directory to narrow the search and improve speed
- Use extension (-e) and type (-t) filters to avoid scanning irrelevant files
- Limit search depth (--max-depth) in large repositories
- Exclude heavy folders (e.g., -E node_modules -E .git) to speed up results
- Combine fd -0 with xargs -0 or use -x for safe command execution on matches
Example use cases
- Show top-level project structure: fd . --max-depth 1
- Find all TypeScript sources: fd -e ts -e tsx -e js -e jsx
- Locate config files: fd -g "*.{json,yaml,yml,edn,toml}" --max-depth 2
- Find recently modified files: fd --changed-within 1d
- Delete all .log files: fd -e log -x rm
FAQ
Install it via your package manager (brew on macOS, apt/pacman on Linux) or cargo; on Debian/Ubuntu the binary is named fdfind and you can alias fd=fdfind.
When should I use fd instead of ripgrep (rg)?
Use fd to find files and list directory structure. Use rg to search file contents. Combine them when you need to find files by name and then search inside them.