spotlight-indexing

Generate Core Spotlight indexing infrastructure for Swift macOS and iOS apps.

27|5|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/bocan/bocan-music --skill spotlight-indexing-bocan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spotlight-indexing
Source: https://github.com/bocan/bocan-music/tree/main/.claude/skills/generators/spotlight-indexing
Command: npx skills add https://github.com/bocan/bocan-music --skill spotlight-indexing-bocan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually implementing Core Spotlight indexing for app content is time-consuming and error-prone, requiring boilerplate code for index management, attribute configuration, and deep link routing. This Skill automates the generation of production-ready Spotlight indexing infrastructure, eliminating manual work and ensuring best practices are followed.

Core Features & Use Cases

  • Full Core Spotlight Integration: Generates thread-safe index management, rich attribute sets, and batch/incremental indexing support for macOS and iOS apps.
  • Siri Suggestions & Deep Linking: Includes NSUserActivity handling for Siri recommendations and automatic routing from Spotlight result taps to the correct app screen.
  • Use Case: For a Swift music player app, use this Skill to index songs, artists, and albums so users can search for and open their favorite tracks directly from the system Spotlight without launching the app first.

Quick Start

Use the spotlight-indexing skill to add system-wide search for your app's content, including deep links to open items directly from Spotlight results.

Frequently Asked Questions about spotlight-indexing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make my iOS app content searchable in Spotlight?

Make iOS app content searchable in Spotlight by generating Core Spotlight indexing infrastructure. This includes configuring rich attribute sets, managing thread-safe batch or incremental index updates, and handling deep link routing from Spotlight taps to specific app screens.

How does Siri Suggestions integration work with Core Spotlight?

Siri Suggestions integration with Core Spotlight works by utilizing NSUserActivity continuation handling. When your app content is indexed, the system leverages NSUserActivity to provide Siri recommendations and automatically route users directly to the correct app screen when they tap a Spotlight result.

Can I use Core Spotlight indexing for both macOS and iOS apps?

Yes, you can use Core Spotlight indexing for both macOS and iOS Swift apps. The generated indexing infrastructure applies to both platforms, providing thread-safe index operations, rich attribute configuration, and deep link routing for system-wide search discoverability across your Apple ecosystem applications.

What's the best way to handle Spotlight deep linking in Swift?

The best way to handle Spotlight deep linking in Swift is to generate Core Spotlight indexing infrastructure that includes NSUserActivity continuation handling. This approach automatically routes Spotlight result taps to the correct app screen, ensuring users land exactly where they expect without manual routing boilerplate.

How do I manage batch and incremental indexing for Core Spotlight?

Manage batch and incremental indexing for Core Spotlight by generating thread-safe index management infrastructure. This handles the full index lifecycle maintenance, allowing you to efficiently add, update, or remove searchable items in bulk or incrementally without manually writing boilerplate code for index operations.