# Send Spotlight to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "spotlight",
    "name": "Spotlight",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Li-Hongmin/spotlight",
    "canonicalUrl": "https://clawhub.ai/Li-Hongmin/spotlight",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/spotlight",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotlight",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/spotlight-search.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "spotlight",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-09T09:21:21.850Z",
      "expiresAt": "2026-05-16T09:21:21.850Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotlight",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotlight",
        "contentDisposition": "attachment; filename=\"spotlight-2.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "spotlight"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/spotlight"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/spotlight",
    "downloadUrl": "https://openagent3.xyz/downloads/spotlight",
    "agentUrl": "https://openagent3.xyz/skills/spotlight/agent",
    "manifestUrl": "https://openagent3.xyz/skills/spotlight/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/spotlight/agent.md"
  }
}
```
## Documentation

### Spotlight Search

Search local files using macOS Spotlight indexing system.

### When to Use

Use this skill when:

User asks to search files or directories on macOS
Need to find documents containing specific text
Searching large document collections (faster than grep)
Need to search inside PDFs, Word docs, or other indexed formats

### Quick Start

scripts/spotlight-search.sh <directory> <query> [--limit N]

Examples:

scripts/spotlight-search.sh ~/Documents "machine learning"
scripts/spotlight-search.sh ~/research "neural networks" --limit 10
scripts/spotlight-search.sh ~/Downloads "meeting notes" --limit 5

### Search Features

Fast: Uses system-level Spotlight index (no file scanning)
Content-aware: Searches inside PDF, docx, txt, md, etc.
Multilingual: Supports Chinese, Japanese, and all languages
Metadata: Returns file path, type, and size

### Output Format

🔍 Searching in /path/to/directory for: query

✅ Found N results (showing up to M):

📄 /full/path/to/file.pdf [pdf, 2.3M]
📄 /full/path/to/document.txt [txt, 45K]
📁 /full/path/to/folder/

### Supported File Types

Spotlight automatically indexes:

Text files (txt, md, csv, json, xml, etc.)
Documents (pdf, docx, pages, rtf, etc.)
Code files (py, js, java, c, etc.)
Emails and contacts
Images (with embedded metadata/OCR)

### Limitations

macOS only: Requires Spotlight indexing
Indexed directories only: External drives may not be indexed
Keyword search: Not semantic (use embedding-based search for semantic queries)
Privacy: Respects Spotlight privacy settings (excluded directories won't appear)

### Check Indexing Status

# Check if a volume is indexed
mdutil -s /path/to/volume

# Enable indexing (requires admin)
sudo mdutil -i on /path/to/volume

### Integration with LLM Workflows

Pattern: Search + Extract + Summarize

Use spotlight-search.sh to find relevant files
Use read tool to extract content from top results
Summarize or answer user's question based on extracted content

Example workflow:

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

1. Run: spotlight-search.sh ~/research "machine learning" --limit 10
2. Read top 3-5 results with read tool
3. Summarize findings for user

### Advanced Query Syntax

Spotlight supports advanced query operators:

# Exact phrase
spotlight-search.sh ~/Documents "\\"machine learning\\""

# AND operator
spotlight-search.sh ~/Documents "neural AND networks"

# OR operator
spotlight-search.sh ~/Documents "AI OR artificial intelligence"

# Metadata queries
spotlight-search.sh ~/Documents "kMDItemContentType == 'com.adobe.pdf'"

### Troubleshooting

No results found:

Check if directory is indexed: mdutil -s /path
Wait for indexing to complete (new files may take minutes)
Verify Spotlight is enabled in System Preferences

Incorrect results:

Spotlight uses fuzzy matching and synonyms
Use exact phrase search: "exact phrase"
Check privacy settings (some folders may be excluded)

### Performance

Instant: Pre-indexed, no file scanning needed
Scales well: Handles millions of files
Low CPU: No processing overhead (vs grep/ripgrep)

Comparison:

ToolSpeedContent SearchMultilingualSpotlight⚡ Instant✅ Yes✅ Yesgrep/ripgrep🐢 Slow✅ Yes✅ Yesfind⚡ Fast❌ NoN/A

### Platform Notes

macOS only: This skill requires macOS Spotlight
Linux alternative: Use grep -r or ripgrep
Windows alternative: Use Windows Search or Everything search
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Li-Hongmin
- Version: 2.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-09T09:21:21.850Z
- Expires at: 2026-05-16T09:21:21.850Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/spotlight)
- [Send to Agent page](https://openagent3.xyz/skills/spotlight/agent)
- [JSON manifest](https://openagent3.xyz/skills/spotlight/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/spotlight/agent.md)
- [Download page](https://openagent3.xyz/downloads/spotlight)