agentleFS
SingleDemoSingleDemo/everything-search-skill/SKILL.md

everything-search

Skill0 starsChanged 3 months agoMITView on GitHub

Fast whole-drive file/folder name search on Windows via Everything's NTFS MFT index (es.exe CLI, bundled in bin/). Use whenever locating files or folders by name, extension, path, size, or modified date across all drives, the user profile, or anywhere outside the current project — returns in ~0.1s where find/Glob traversal takes minutes. Not for file content search (use rg/grep instead) or small known-directory lookups (use Glob/find directly).

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. Mayuqi-crypto/everything-search-skill★ 55same name
    2. MorningStar0709/trae-agent-enhancements★ 17same name
    3. WhizZest/Everything-Search★ 3same name
    4. bigSuai/everything-search-skill★ 2same name
    5. jimbrig/skillz★ 1same name
    6. Today20092/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Files
SKILL.md

Everything Search — Windows 全盘文件秒搜

通过 Everything(NTFS MFT 索引)做全盘文件名/路径/属性搜索,毫秒级返回(实测全盘 90 万+ 文件查询 ≈0.15s)。若 bin/es.exe 不存在,先运行 bash scripts/setup.sh 从 voidtools 官网下载(仅首次需要)。

何时用 / 何时不用

  • 在全盘、用户目录、多块盘(C/D/F...)按文件名、扩展名、路径、大小、修改日期找文件 → 用本 skill
  • 在当前项目的已知子目录里找文件 → 普通 Glob/find 足够
  • 按文件内容搜索 → 用 rg/grep(Everything 1.4 只索引文件名和属性,不索引内容;content: 语法极慢勿用)
  • 混合场景:先用本 skill 按名筛出候选路径,再对少量文件用 rg 搜内容

用法

优先用包装脚本(自动定位 es.exe、自动拉起未运行的 Everything、默认限 100 条结果):

bash scripts/find-fast.sh readme.md                      # 全盘找 readme.md
bash scripts/find-fast.sh -n 20 "ext:pdf path:downloads" # Downloads 下的 pdf
bash scripts/find-fast.sh -count c:                      # 全盘文件总数
bash scripts/find-fast.sh -json -n 5 微信                # JSON 输出,中文文件名
bash scripts/find-fast.sh -sort size-descending -n 10 size:>1gb   # 最大的文件

也可直接调用 es.exe(全部选项见 es.exe -h):

"C:\Users\admin\.zcode\skills\everything-search\bin\es.exe" -n 30 -s "查询词"

es.exe 常用选项

选项说明
-n N / -count N最多返回 N 条(防刷屏,必加)
-get-result-count只输出结果总数
-s按完整路径排序
-sort name[-descending]name/path/size/extension/date-modified/date-created/...
-path <dir>只在指定目录下搜(Windows 路径)
-json / -csv / -tsv结构化输出(配 -no-header 去表头)
-name -size -dm -dc -path-column增加显示列
-timeout <ms>等待 Everything 数据库加载的超时
-no-result-error无结果时返回非零退出码

Everything 查询语法(常用子集)

  • 多个词 = AND;| = OR;!词 = 排除;"两个词" = 短语;默认匹配文件名子串
  • file: 只文件 / folder: 只文件夹;/ad 只文件夹 / /a-d 只文件(DIR 风格)
  • ext:pdf;jpg 多扩展名;path:downloads 匹配路径;查询词含 \ 时按路径匹配(如 c:\Users\admin readme)
  • 日期: dm:today dm:last7days dm:>2025-01-01;大小: size:>10mb size:1mb..100mb
  • 修饰符: case: wholeword: wildcards: regex:(如 regex:^config\..*\.json$)
  • 输出为 Windows 路径(C:\...),Git Bash 里用 cygpath -u 转成 POSIX 路径

编码注意

es.exe 标准输出为系统 ANSI 编码(本机为 GBK)。直接展示或与 cmd/PowerShell 混用正常;若要把含中文的输出喂给 UTF-8 工具,用 -json 输出并用 PowerShell 解析,或 iconv -f GBK -t UTF-8 转换。

依赖与降级

  • 需要 Everything(含 Everything.exe 服务)已安装并在后台运行;包装脚本检测到未运行会自动启动它
  • es.exe 或 Everything 缺失 → 回退 fd / rg --files / find(无索引遍历,全盘需数分钟量级),并提示用户安装
  • es.exe 来源: 运行 bash scripts/setup.sh 自动从 https://www.voidtools.com/downloads/ 下载(ES-1.1.0.37,免费闭源,与 Everything 同厂;本仓库不打包其二进制)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.