{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/spotlight",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotlight",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/spotlight-search.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/spotlight",
    "agentPageUrl": "https://openagent3.xyz/skills/spotlight/agent",
    "manifestUrl": "https://openagent3.xyz/skills/spotlight/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/spotlight/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Spotlight Search",
        "body": "Search local files using macOS Spotlight indexing system."
      },
      {
        "title": "When to Use",
        "body": "Use this skill when:\n\nUser asks to search files or directories on macOS\nNeed to find documents containing specific text\nSearching large document collections (faster than grep)\nNeed to search inside PDFs, Word docs, or other indexed formats"
      },
      {
        "title": "Quick Start",
        "body": "scripts/spotlight-search.sh <directory> <query> [--limit N]\n\nExamples:\n\nscripts/spotlight-search.sh ~/Documents \"machine learning\"\nscripts/spotlight-search.sh ~/research \"neural networks\" --limit 10\nscripts/spotlight-search.sh ~/Downloads \"meeting notes\" --limit 5"
      },
      {
        "title": "Search Features",
        "body": "Fast: Uses system-level Spotlight index (no file scanning)\nContent-aware: Searches inside PDF, docx, txt, md, etc.\nMultilingual: Supports Chinese, Japanese, and all languages\nMetadata: Returns file path, type, and size"
      },
      {
        "title": "Output Format",
        "body": "🔍 Searching in /path/to/directory for: query\n\n✅ Found N results (showing up to M):\n\n📄 /full/path/to/file.pdf [pdf, 2.3M]\n📄 /full/path/to/document.txt [txt, 45K]\n📁 /full/path/to/folder/"
      },
      {
        "title": "Supported File Types",
        "body": "Spotlight automatically indexes:\n\nText files (txt, md, csv, json, xml, etc.)\nDocuments (pdf, docx, pages, rtf, etc.)\nCode files (py, js, java, c, etc.)\nEmails and contacts\nImages (with embedded metadata/OCR)"
      },
      {
        "title": "Limitations",
        "body": "macOS only: Requires Spotlight indexing\nIndexed directories only: External drives may not be indexed\nKeyword search: Not semantic (use embedding-based search for semantic queries)\nPrivacy: Respects Spotlight privacy settings (excluded directories won't appear)"
      },
      {
        "title": "Check Indexing Status",
        "body": "# Check if a volume is indexed\nmdutil -s /path/to/volume\n\n# Enable indexing (requires admin)\nsudo mdutil -i on /path/to/volume"
      },
      {
        "title": "Integration with LLM Workflows",
        "body": "Pattern: Search + Extract + Summarize\n\nUse spotlight-search.sh to find relevant files\nUse read tool to extract content from top results\nSummarize or answer user's question based on extracted content\n\nExample workflow:\n\nUser: \"Find all documents about machine learning in my research folder\"\n\n1. Run: spotlight-search.sh ~/research \"machine learning\" --limit 10\n2. Read top 3-5 results with read tool\n3. Summarize findings for user"
      },
      {
        "title": "Advanced Query Syntax",
        "body": "Spotlight supports advanced query operators:\n\n# Exact phrase\nspotlight-search.sh ~/Documents \"\\\"machine learning\\\"\"\n\n# AND operator\nspotlight-search.sh ~/Documents \"neural AND networks\"\n\n# OR operator\nspotlight-search.sh ~/Documents \"AI OR artificial intelligence\"\n\n# Metadata queries\nspotlight-search.sh ~/Documents \"kMDItemContentType == 'com.adobe.pdf'\""
      },
      {
        "title": "Troubleshooting",
        "body": "No results found:\n\nCheck if directory is indexed: mdutil -s /path\nWait for indexing to complete (new files may take minutes)\nVerify Spotlight is enabled in System Preferences\n\nIncorrect results:\n\nSpotlight uses fuzzy matching and synonyms\nUse exact phrase search: \"exact phrase\"\nCheck privacy settings (some folders may be excluded)"
      },
      {
        "title": "Performance",
        "body": "Instant: Pre-indexed, no file scanning needed\nScales well: Handles millions of files\nLow CPU: No processing overhead (vs grep/ripgrep)\n\nComparison:\n\nToolSpeedContent SearchMultilingualSpotlight⚡ Instant✅ Yes✅ Yesgrep/ripgrep🐢 Slow✅ Yes✅ Yesfind⚡ Fast❌ NoN/A"
      },
      {
        "title": "Platform Notes",
        "body": "macOS only: This skill requires macOS Spotlight\nLinux alternative: Use grep -r or ripgrep\nWindows alternative: Use Windows Search or Everything search"
      }
    ],
    "body": "Spotlight Search\n\nSearch local files using macOS Spotlight indexing system.\n\nWhen to Use\n\nUse this skill when:\n\nUser asks to search files or directories on macOS\nNeed to find documents containing specific text\nSearching large document collections (faster than grep)\nNeed to search inside PDFs, Word docs, or other indexed formats\nQuick Start\nscripts/spotlight-search.sh <directory> <query> [--limit N]\n\n\nExamples:\n\nscripts/spotlight-search.sh ~/Documents \"machine learning\"\nscripts/spotlight-search.sh ~/research \"neural networks\" --limit 10\nscripts/spotlight-search.sh ~/Downloads \"meeting notes\" --limit 5\n\nSearch Features\nFast: Uses system-level Spotlight index (no file scanning)\nContent-aware: Searches inside PDF, docx, txt, md, etc.\nMultilingual: Supports Chinese, Japanese, and all languages\nMetadata: Returns file path, type, and size\nOutput Format\n🔍 Searching in /path/to/directory for: query\n\n✅ Found N results (showing up to M):\n\n📄 /full/path/to/file.pdf [pdf, 2.3M]\n📄 /full/path/to/document.txt [txt, 45K]\n📁 /full/path/to/folder/\n\nSupported File Types\n\nSpotlight automatically indexes:\n\nText files (txt, md, csv, json, xml, etc.)\nDocuments (pdf, docx, pages, rtf, etc.)\nCode files (py, js, java, c, etc.)\nEmails and contacts\nImages (with embedded metadata/OCR)\nLimitations\nmacOS only: Requires Spotlight indexing\nIndexed directories only: External drives may not be indexed\nKeyword search: Not semantic (use embedding-based search for semantic queries)\nPrivacy: Respects Spotlight privacy settings (excluded directories won't appear)\nCheck Indexing Status\n# Check if a volume is indexed\nmdutil -s /path/to/volume\n\n# Enable indexing (requires admin)\nsudo mdutil -i on /path/to/volume\n\nIntegration with LLM Workflows\n\nPattern: Search + Extract + Summarize\n\nUse spotlight-search.sh to find relevant files\nUse read tool to extract content from top results\nSummarize or answer user's question based on extracted content\n\nExample workflow:\n\nUser: \"Find all documents about machine learning in my research folder\"\n\n1. Run: spotlight-search.sh ~/research \"machine learning\" --limit 10\n2. Read top 3-5 results with read tool\n3. Summarize findings for user\n\nAdvanced Query Syntax\n\nSpotlight supports advanced query operators:\n\n# Exact phrase\nspotlight-search.sh ~/Documents \"\\\"machine learning\\\"\"\n\n# AND operator\nspotlight-search.sh ~/Documents \"neural AND networks\"\n\n# OR operator\nspotlight-search.sh ~/Documents \"AI OR artificial intelligence\"\n\n# Metadata queries\nspotlight-search.sh ~/Documents \"kMDItemContentType == 'com.adobe.pdf'\"\n\nTroubleshooting\n\nNo results found:\n\nCheck if directory is indexed: mdutil -s /path\nWait for indexing to complete (new files may take minutes)\nVerify Spotlight is enabled in System Preferences\n\nIncorrect results:\n\nSpotlight uses fuzzy matching and synonyms\nUse exact phrase search: \"exact phrase\"\nCheck privacy settings (some folders may be excluded)\nPerformance\nInstant: Pre-indexed, no file scanning needed\nScales well: Handles millions of files\nLow CPU: No processing overhead (vs grep/ripgrep)\n\nComparison:\n\nTool\tSpeed\tContent Search\tMultilingual\nSpotlight\t⚡ Instant\t✅ Yes\t✅ Yes\ngrep/ripgrep\t🐢 Slow\t✅ Yes\t✅ Yes\nfind\t⚡ Fast\t❌ No\tN/A\nPlatform Notes\nmacOS only: This skill requires macOS Spotlight\nLinux alternative: Use grep -r or ripgrep\nWindows alternative: Use Windows Search or Everything search"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Li-Hongmin/spotlight",
    "publisherUrl": "https://clawhub.ai/Li-Hongmin/spotlight",
    "owner": "Li-Hongmin",
    "version": "2.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}