跳到正文
TakoAPI
返回技能列表

spotlight

由 li-hongmin 提供

Coding Agents & IDEs
356下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Search files and content using macOS Spotlight indexing (mdfind)

描述

该技能的功能

Searches local files and directories on macOS using the Spotlight index via mdfind. Finds text content inside PDFs, Word documents, markdown files, code, and other indexed formats. Only works on macOS with Spotlight enabled.

Uses macOS's pre-built Spotlight index so searches return instantly without scanning files, unlike grep or ripgrep which must read every file.

何时使用

  • Find all PDFs mentioning a specific project name in Downloads
  • Search research folder for papers containing a technical term
  • Locate meeting notes across multiple directories
  • Find code files referencing a function or variable name
  • Search documents in multiple languages without extra setup

示例工作流

输入

User asks: 'Find all documents about machine learning in my research folder'

智能体
  1. 1

    Run spotlight-search.sh ~/research "machine learning" --limit 10

  2. 2

    Receive list of matching file paths with types and sizes

  3. 3

    Read content from the top 3-5 results using the read tool

  4. 4

    Synthesize findings into a summary for the user

输出

A summary of relevant documents found, with file paths and key content excerpts

安装

clawhub install li-hongmin/spotlight

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

链接