Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

spotlight

bởi li-hongmin

Coding Agents & IDEs
356Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Search files and content using macOS Spotlight indexing (mdfind)

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install li-hongmin/spotlight

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết