跳到正文
TakoAPI
返回技能列表

fd-find

由 arnarsson 提供

CLI Utilities
2.6k下载量由 clawskills.sh 提供
1星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

A fast and user-friendly alternative to 'find' - simple syntax, smart.

描述

该技能的功能

fd is a command-line file search tool that replaces `find` with simpler syntax and smarter defaults. It respects `.gitignore` by default, uses smart case matching, and traverses directories in parallel. Supports filtering by extension, type, size, modification time, and regex patterns.

Faster than `find`, requires no `-name`/`-type` boilerplate for common searches, and skips `node_modules` and build artifacts automatically via gitignore support.

何时使用

  • Find all TypeScript files across a monorepo
  • Delete log files older than 30 days
  • Locate files over 100MB consuming disk space
  • Batch convert all images in a directory using -x
  • Search for config files modified in the last hour

示例工作流

输入

User asks: count total lines across all Python files changed in the last 2 days

智能体
  1. 1

    Run fd -e py --changed-within 2d to list recently modified Python files

  2. 2

    Append -x wc -l to count lines per file in parallel

  3. 3

    Pipe output to awk '{sum+=$1} END {print sum}' to total the counts

输出

Single integer representing total lines across matching files

前置要求

  • fd binary — install via `brew install fd` (macOS) or `apt install fd-find` (Linux)

安装

clawhub install arnarsson/fd-find

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接