Should trigger: "Find all markdown files under docs quickly."
Should trigger: "List only directories matching test recursively."
Should not trigger: "Transform JSON output from an API."
1---2name: tool-fd-23description: tool-fd4---5# tool-fd67## When To Use89- Locate files by name pattern, extension, or type.10- Replace verbose find commands for common file discovery tasks.11- Feed clean path lists into tools like fzf, xargs, and sd.1213## Trusted Commands1415```bash16fd "pattern"17fd -e py18fd -g "pyproject.toml"19fd --hidden "pattern"20fd -t f "pattern"21fd -t d "pattern"22fd -e md -x wc -l {}23```2425## Safe Defaults2627- Use `-t f` or `-t d` to constrain result type.28- Use `-g` for glob semantics and plain expectations.29- Prefer `fd` and fallback to `fdfind` on Debian/Ubuntu.3031## Common Pitfalls3233- fd uses regex by default, not shell glob patterns.34- Ignored files are skipped unless explicitly included.35- Distro binary naming differences (`fd` vs `fdfind`) can break scripts.3637## Output Interpretation3839- One path per line, relative to the search root.40- Empty output with exit 0 can be valid for narrow patterns.4142## Why It Matters For Agents4344- `-x` enables safe per-file batch actions without manual loops.45- It is a high-signal way to enumerate candidate files quickly.4647## Repo Conventions4849- Prefer fd over recursive listing for path discovery.50- Respect ignore rules unless task scope says otherwise.5152## Trigger Examples5354- Should trigger: "Find all markdown files under docs quickly."55- Should trigger: "List only directories matching `test` recursively."56- Should not trigger: "Transform JSON output from an API."
Run npx skillmds@latest add niksavis/tool-fd-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
tool-fd It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
niksavis (@niksavis) published this skill. Their other Agent Skills are listed on their SkillMD profile.