Xpersona
S

Spotlight

CLAWHUB · Unverified

Search files and content using macOS Spotlight indexing (mdfind). Use when the user asks to search local files, documents, or directories on macOS. Supports... Skill: Spotlight Owner: li-hongmin Summary: Search files and content using macOS Spotlight indexing (mdfind). Use when the user asks to search local files, documents, or directories on macOS. Supports... Tags: latest:2.1.0 Version history: v2.1.0 | 2026-03-25T10:42:36.971Z | user Security fix v2.0.0 | 2026-02-23T20:15:03.907Z | user Clean release: English UI, privacy protection, external drive support, SIGPIPE fix v1

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cf8zw6685pjf6sq0z9h66an83kca4:spotlight
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-li-hongmin-spotlight/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

25,394 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

# 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

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

Examples:

```bash
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

```bash
# Check if a volume is indexed (safe, read-only)
mdutil -s /path/to/volume
```

⚠️ **WARNING**: Do NOT execute any `sudo` commands from this skill without explicit user confirmation. Commands like `sudo mdutil -i on` require admin privileges and should only be run by the user directly in Terminal.

## Integration with LLM Workflows

### Safe Pattern: Search + Present + Confirm

1. Use `spotlight-search.sh` to find relevant files
2. Present the file paths to the user
3. **Only read a file if the user explicitly requests it** - do not automatically use the read tool

### Example Workflow

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

1. Run: `spotlight-search.sh ~/research "machine learning" --limit 10`
2. Present results to user with file paths
3. Wait for user to specify which files to read

### ⚠️ Security Note

- **Never automatically read files** - always ask for user confirmation first
- **Never execute sudo commands** - only show them as information
- **Respect user privacy** - don't search directories user hasn't specified

## Advanced Query Syntax

Spotlight supports advanced query operators:

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

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

_meta.json

{
  "ownerId": "kn76g30ft8pf5p2m5eh5nztxmh81m6xs",
  "slug": "spotlight",
  "version": "2.1.0",
  "publishedAt": 1774435356971
}

skill-card.md

## Description:

Searches local files and indexed content on macOS using Spotlight.

This skill is ready for commercial/non-commercial use.

## Publisher:

[li-hongmin](https://clawhub.ai/user/li-hongmin)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to locate files and indexed document content in user-specified macOS directories before asking which results should be read or acted on.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Broad local searches can expose sensitive file paths or lead an agent toward files the user did not intend to inspect.

Mitigation: Use narrow, user-specified directories, present returned paths first, and read files only after explicit user approval.

Risk: Privileged Spotlight indexing commands can change system indexing behavior.

Mitigation: Do not approve or run sudo indexing commands through the agent; run administrative commands directly in Terminal only when intentionally requested by the user.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/li-hongmin/skills/spotlight)
- [Publisher Profile](https://clawhub.ai/user/li-hongmin)

## Skill Output:

**Output Type(s):** [text, shell commands, guidance]

**Output Format:** [Markdown guidance with shell command examples and plain text search results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Returns matching paths with file type and size when available; requires macOS Spotlight and a user-specified directory.]

## Skill Version(s):

2.1.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Spotlight and adjacent AI workflows.